SDLPP: add .dll target for windows
This commit is contained in:
+22
-9
@@ -1,3 +1,16 @@
|
||||
#ifndef SDLPPSCOPE
|
||||
#ifdef _WIN32
|
||||
#ifdef DLLEXPORT
|
||||
#define SDLPPSCOPE __declspec( dllexport )
|
||||
#else
|
||||
#define SDLPPSCOPE __declspec( dllimport )
|
||||
#endif
|
||||
#else
|
||||
#define SDLPPSCOPE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef SDLPP_HPP_COMMON
|
||||
#define SDLPP_HPP_COMMON
|
||||
|
||||
@@ -22,17 +35,17 @@
|
||||
|
||||
namespace SDLPP {
|
||||
|
||||
int hex2num( char c );
|
||||
SDLPPSCOPE int hex2num( char c );
|
||||
|
||||
bool init();
|
||||
bool init( uint32_t SDL_OPTIONS );
|
||||
bool init( uint32_t SDL_OPTIONS, int IMAGE_OPTIONS );
|
||||
SDLPPSCOPE bool init();
|
||||
SDLPPSCOPE bool init( uint32_t SDL_OPTIONS );
|
||||
SDLPPSCOPE bool init( uint32_t SDL_OPTIONS, int IMAGE_OPTIONS );
|
||||
|
||||
std::tuple< int, int, int, int > getColorsHEX( const std::string &color );
|
||||
SDL_Color getSDLColorHEX( const std::string &color );
|
||||
std::tuple< int, int, int, int > getColorsSDLColor( const SDL_Color &color );
|
||||
SDL_Color getSDLColorTuple( const std::tuple< int, int, int, int > &tuple );
|
||||
SDLPPSCOPE std::tuple< int, int, int, int > getColorsHEX( const std::string &color );
|
||||
SDLPPSCOPE SDL_Color getSDLColorHEX( const std::string &color );
|
||||
SDLPPSCOPE std::tuple< int, int, int, int > getColorsSDLColor( const SDL_Color &color );
|
||||
SDLPPSCOPE SDL_Color getSDLColorTuple( const std::tuple< int, int, int, int > &tuple );
|
||||
|
||||
bool getSDLEvent( SDL_Event &e );
|
||||
SDLPPSCOPE bool getSDLEvent( SDL_Event &e );
|
||||
} // end of namespace SDLPP
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user