Changeset 399 for trunk/src/gl


Ignore:
Timestamp:
06/13/15 11:47:09 (10 years ago)
Author:
epyon
Message:
  • naming cleanup
  • string_ref -> string_view (compatible with C++17 standard!)
  • *_ref and const_*_ref, renamed to _ref and _view for consistency
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_device.cc

    r398 r399  
    2424}
    2525
    26 program gl_device::create_program( string_ref vs_source, string_ref fs_source )
     26program gl_device::create_program( string_view vs_source, string_view fs_source )
    2727{
    2828        program result = m_programs.create();
     
    4141// this is a temporary function that will be removed once we find a way to
    4242// pass binary file data around
    43 image_data* gl_device::create_image_data( string_ref filename )
     43image_data* gl_device::create_image_data( string_view filename )
    4444{
    4545        load_sdl_image_library();
     
    264264}
    265265
    266 bool nv::gl_device::compile( gl_program_info* p, string_ref vertex_program, string_ref fragment_program )
     266bool nv::gl_device::compile( gl_program_info* p, string_view vertex_program, string_view fragment_program )
    267267{
    268268        if (!compile( GL_VERTEX_SHADER,   vertex_program, p->glidv ))   { return false; }
     
    407407}
    408408
    409 bool nv::gl_device::compile( uint32 sh_type, string_ref shader_code, unsigned& glid )
     409bool nv::gl_device::compile( uint32 sh_type, string_view shader_code, unsigned& glid )
    410410{
    411411        glid = glCreateShader( sh_type );
Note: See TracChangeset for help on using the changeset viewer.