#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 #ifdef _WIN32 #include "SDL2/SDL.h" #include "SDL2/SDL_image.h" #include "SDL2/SDL_ttf.h" #else #include #include #include #endif // UNIX #include #include #include #define SDLPP_TEXT_LEFT 0x0001 #define SDLPP_TEXT_RIGHT 0x0002 #define SDLPP_TEXT_CENTER 0x0004 #define SDLPP_TEXT_TOP 0x0008 #define SDLPP_TEXT_BOTTOM 0x0010 namespace SDLPP { SDLPPSCOPE int hex2num( char c ); SDLPPSCOPE bool init(); SDLPPSCOPE bool init( uint32_t SDL_OPTIONS ); SDLPPSCOPE bool init( uint32_t SDL_OPTIONS, int IMAGE_OPTIONS ); 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 ); SDLPPSCOPE bool getSDLEvent( SDL_Event &e ); } // end of namespace SDLPP #endif