Changeset 501 for trunk/src/lib/gl.cc


Ignore:
Timestamp:
06/15/16 18:34:37 (9 years ago)
Author:
epyon
Message:
  • particle engine updates
  • device/context redesign
  • caching of GL state - texture bindings and programs
  • camera view_perspective and view_perspective_inv
File:
1 edited

Legend:

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

    r492 r501  
    5555
    5656
    57 static void* load_gl_ext_symbol_impl( const nv::string_view& name, nv::log_level fail_level = nv::LOG_DEBUG )
    58 {
    59         void* result = gl_ext_loader( name.data() );
    60         NV_LOG( ( result ? nv::LOG_DEBUG : fail_level ), "load_gl_ext_symbol : ", name, ( result ? " succeded." : "failed." ) );
    61         return result;
    62 }
    63 
    64 static void* load_gl_ext_symbol( const nv::string_view& name, bool iterate, const nv::string_view& ext )
    65 {
    66         void * result        = nullptr;
    67         nv::string128 test_name = name + ext;
    68         result = load_gl_ext_symbol_impl( !ext.empty() ? test_name : name );
    69         if ( result ) return result;
    70         if ( iterate )
    71         {
    72                 test_name = name + "ARB"_ls;
    73                 result = gl_ext_loader( test_name.data() );
    74                 if ( result ) return result;
    75                 test_name = name + "EXT"_ls;
    76                 result = gl_ext_loader( test_name.data() );
    77                 if ( result ) return result;
    78         }
    79         return result;
    80 }
     57// static void* load_gl_ext_symbol_impl( const nv::string_view& name, nv::log_level fail_level = nv::LOG_DEBUG )
     58// {
     59//      void* result = gl_ext_loader( name.data() );
     60//      NV_LOG( ( result ? nv::LOG_DEBUG : fail_level ), "load_gl_ext_symbol : ", name, ( result ? " succeded." : "failed." ) );
     61//      return result;
     62// }
     63
     64// static void* load_gl_ext_symbol( const nv::string_view& name, bool iterate, const nv::string_view& ext )
     65// {
     66//      void * result        = nullptr;
     67//      nv::string128 test_name = name + ext;
     68//      result = load_gl_ext_symbol_impl( !ext.empty() ? test_name : name );
     69//      if ( result ) return result;
     70//      if ( iterate )
     71//      {
     72//              test_name = name + "ARB"_ls;
     73//              result = gl_ext_loader( test_name.data() );
     74//              if ( result ) return result;
     75//              test_name = name + "EXT"_ls;
     76//              result = gl_ext_loader( test_name.data() );
     77//              if ( result ) return result;
     78//      }
     79//      return result;
     80// }
    8181
    8282bool nv::load_gl_library( const char* path, bool force_reload )
Note: See TracChangeset for help on using the changeset viewer.