Changeset 326 for trunk/src/lib/sdl.cc


Ignore:
Timestamp:
08/26/14 18:39:10 (11 years ago)
Author:
epyon
Message:
  • window_manager interface added
  • input interface added
  • sdl::window_manager and sdl::input added
  • gl_device/gl_window/gl_context made oblivious to sdl
  • currently some setup is required, application class needed
File:
1 edited

Legend:

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

    r319 r326  
    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
    2015#undef NV_SDL_FUN
    21 
    22 
    2316
    2417bool nv::load_sdl_library( const char* path )
     
    2922#       define NV_SDL_FUN( rtype, fname, fparams ) *(void **) (&fname) = sdl_library.get(#fname);
    3023#       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
    3624#       undef NV_SDL_FUN
    3725        return true;
Note: See TracChangeset for help on using the changeset viewer.