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


Ignore:
Timestamp:
08/26/14 04:03:10 (11 years ago)
Author:
epyon
Message:
  • nova now compiles again under all three compilers with -Winsane and no warnings
File:
1 edited

Legend:

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

    r319 r323  
    1919// for wgl support
    2020#if NV_PLATFORM == NV_WINDOWS
    21 #    ifndef WIN32_LEAN_AND_MEAN
    22 #      define WIN32_LEAN_AND_MEAN 1
    23 #    endif
    2421#include <windows.h>
    25 #    undef WIN32_LEAN_AND_MEAN
    26 #endif
    27 
    28 // extern added for wgl needs only!
    29 #define NV_GL_FUN( rtype, fname, fparams ) extern "C" rtype (NV_GL_APIENTRY *fname) fparams = nullptr;
    30 #define NV_GL_FUN_REN( rtype, fname, rname, fparams ) extern "C" rtype (NV_GL_APIENTRY *rname) fparams = nullptr;
     22#endif
     23
     24#define NV_GL_FUN( rtype, fname, fparams ) rtype (NV_GL_APIENTRY *fname) fparams = nullptr;
     25#define NV_GL_FUN_REN( rtype, fname, rname, fparams ) rtype (NV_GL_APIENTRY *rname) fparams = nullptr;
    3126#define NV_GL_FUN_EXT NV_GL_FUN
    3227#include <nv/lib/detail/gl_functions.inc>
     
    4136static nv::library gl_library;
    4237static nv::gl_extensions gl_loaded_extensions = nv::gl_extensions(0);
    43 extern "C" void* (NV_GL_APIENTRY *gl_ext_loader) ( const char* ) = nullptr;
     38static void* (NV_GL_APIENTRY *gl_ext_loader) ( const char* ) = nullptr;
    4439static bool gl_library_loaded = false;
    4540static bool wgl_library_loaded = false;
     
    5247};
    5348
    54 static const char *gl_extension_ids[] = {
    55         "UNKNOWN",
    56 #define NV_GL_EXTENSION( count, id, name ) #id,
    57 #include <nv/lib/detail/gl_ext/gl_ext_info.inc>
    58 #undef NV_GL_EXTENSION
    59 };
     49// static const char *gl_extension_ids[] = {
     50//      "UNKNOWN",
     51// #define NV_GL_EXTENSION( count, id, name ) #id,
     52// #include <nv/lib/detail/gl_ext/gl_ext_info.inc>
     53// #undef NV_GL_EXTENSION
     54// };
    6055
    6156
     
    184179        wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
    185180
    186         DWORD err = GetLastError();
     181        /*DWORD err = */GetLastError();
    187182        RegisterClass(&wndClass);
    188         err = GetLastError();
     183        /*err = */GetLastError();
    189184
    190185
     
    235230}
    236231
    237 
    238232bool nv::load_gl_extension( gl_extensions extension )
    239233{
Note: See TracChangeset for help on using the changeset viewer.