Changeset 399 for trunk/src/gl/gl_device.cc
- Timestamp:
- 06/13/15 11:47:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r398 r399 24 24 } 25 25 26 program gl_device::create_program( string_ ref vs_source, string_reffs_source )26 program gl_device::create_program( string_view vs_source, string_view fs_source ) 27 27 { 28 28 program result = m_programs.create(); … … 41 41 // this is a temporary function that will be removed once we find a way to 42 42 // pass binary file data around 43 image_data* gl_device::create_image_data( string_ reffilename )43 image_data* gl_device::create_image_data( string_view filename ) 44 44 { 45 45 load_sdl_image_library(); … … 264 264 } 265 265 266 bool nv::gl_device::compile( gl_program_info* p, string_ ref vertex_program, string_reffragment_program )266 bool nv::gl_device::compile( gl_program_info* p, string_view vertex_program, string_view fragment_program ) 267 267 { 268 268 if (!compile( GL_VERTEX_SHADER, vertex_program, p->glidv )) { return false; } … … 407 407 } 408 408 409 bool nv::gl_device::compile( uint32 sh_type, string_ refshader_code, unsigned& glid )409 bool nv::gl_device::compile( uint32 sh_type, string_view shader_code, unsigned& glid ) 410 410 { 411 411 glid = glCreateShader( sh_type );
Note: See TracChangeset
for help on using the changeset viewer.