Last change
on this file since 521 was
406,
checked in by epyon, 10 years ago
|
- code compiles cleanly on maximum warning level
|
File size:
792 bytes
|
Line | |
---|
1 | // Copyright (C) 2012-2015 ChaosForge Ltd
|
---|
2 | // http://chaosforge.org/
|
---|
3 | //
|
---|
4 | // This file is part of Nova libraries.
|
---|
5 | // For conditions of distribution and use, see copying.txt file in root folder.
|
---|
6 |
|
---|
7 | #include "nv/lib/sdl.hh"
|
---|
8 |
|
---|
9 | #if defined( NV_SDL_DYNAMIC )
|
---|
10 |
|
---|
11 | #include "nv/core/library.hh"
|
---|
12 |
|
---|
13 | #define NV_SDL_FUN( rtype, fname, fparams ) rtype (NV_SDL_APIENTRY *fname) fparams = nullptr;
|
---|
14 | #include <nv/lib/detail/sdl_functions.inc>
|
---|
15 | #undef NV_SDL_FUN
|
---|
16 |
|
---|
17 | bool nv::load_sdl_library( const char* path )
|
---|
18 | {
|
---|
19 | static nv::library sdl_library;
|
---|
20 | if ( sdl_library.is_open() ) return true;
|
---|
21 | sdl_library.open( path );
|
---|
22 | # define NV_SDL_FUN( rtype, fname, fparams )void_assign( fname, sdl_library.get(#fname) );
|
---|
23 | # include <nv/lib/detail/sdl_functions.inc>
|
---|
24 | # undef NV_SDL_FUN
|
---|
25 | return true;
|
---|
26 | }
|
---|
27 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.