source: trunk/src/lib/sdl_image.cc @ 395

Last change on this file since 395 was 395, checked in by epyon, 10 years ago
  • bulk update copyright update include guards cleanup core/common.hh -> common.hh minor cleanups
File size: 845 bytes
RevLine 
[395]1// Copyright (C) 2012-2015 ChaosForge Ltd
[5]2// http://chaosforge.org/
3//
[395]4// This file is part of Nova libraries.
5// For conditions of distribution and use, see copying.txt file in root folder.
[5]6
7#include "nv/lib/sdl_image.hh"
8
9#if defined( NV_SDL_DYNAMIC )
10
[319]11#include "nv/core/library.hh"
[5]12
[319]13#define NV_SDL_FUN( rtype, fname, fparams ) rtype (NV_SDL_APIENTRY *fname) fparams = nullptr;
14#include <nv/lib/detail/sdl_image_functions.inc>
[168]15#undef NV_SDL_FUN
[5]16
17bool nv::load_sdl_image_library( const char* path )
18{
[109]19        static nv::library sdl_image_library;
20        if ( sdl_image_library.is_open() ) return true;
21        sdl_image_library.open( path );
[5]22
[319]23#       define NV_SDL_FUN( rtype, fname, fparams ) *(void **) (&fname) = sdl_image_library.get(#fname);
24#       include <nv/lib/detail/sdl_image_functions.inc>
[168]25#       undef NV_SDL_FUN
[5]26
27        return true;
28}
29#endif
Note: See TracBrowser for help on using the repository browser.