Changeset 171 for trunk/src/lib


Ignore:
Timestamp:
07/18/13 00:50:12 (12 years ago)
Author:
epyon
Message:
  • sdl - full 2.0 version implemented in the same header
  • sdl - nova fully runs on SDL 2.0 *also*
File:
1 edited

Legend:

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

    r170 r171  
    1313#define NV_SDL_FUN( rtype, fname, fparams ) rtype (NV_SDL_APIENTRY *fname) fparams = nullptr;
    1414#include <nv/lib/detail/sdl_functions.inc>
     15#if NV_SDL_VERSION == NV_SDL_12
     16#       include <nv/lib/detail/sdl_functions_12.inc>
     17#elif NV_SDL_VERSION == NV_SDL_20
     18#       include <nv/lib/detail/sdl_functions_20.inc>
     19#endif
    1520#undef NV_SDL_FUN
     21
     22
    1623
    1724bool nv::load_sdl_library( const char* path )
     
    2229#       define NV_SDL_FUN( rtype, fname, fparams ) *(void **) (&fname) = sdl_library.get(#fname);
    2330#       include <nv/lib/detail/sdl_functions.inc>
     31#       if NV_SDL_VERSION == NV_SDL_12
     32#               include <nv/lib/detail/sdl_functions_12.inc>
     33#       elif NV_SDL_VERSION == NV_SDL_20
     34#               include <nv/lib/detail/sdl_functions_20.inc>
     35#       endif
    2436#       undef NV_SDL_FUN
    2537        return true;
Note: See TracChangeset for help on using the changeset viewer.