ES-DE/es-core/src/platform.h

24 lines
525 B
C
Raw Normal View History

2014-01-24 22:21:10 +00:00
//the Makefile defines one of these:
//#define USE_OPENGL_ES
//#define USE_OPENGL_DESKTOP
2012-09-10 18:48:00 +00:00
#ifdef USE_OPENGL_ES
2012-09-10 18:48:00 +00:00
#define GLHEADER <GLES/gl.h>
#endif
#ifdef USE_OPENGL_DESKTOP
//why the hell this naming inconsistency exists is well beyond me
#ifdef WIN32
#define sleep Sleep
#endif
#define GLHEADER <SDL_opengl.h>
2012-09-10 18:48:00 +00:00
#endif
#include <string>
std::string getHomePath();
int runShutdownCommand(); // shut down the system (returns 0 if successful)
int runRestartCommand(); // restart the system (returns 0 if successful)