Update platform file to fit to CMakeLists

The #defines "USE_OPENGL_ES" and "USE_OPENGL_DESKTOP" to control GLES
vs. Desktop OpenGL usage. The #define _RPI_ is used solely on Raspberry
Pi now.
This commit is contained in:
Bim Overbohm 2013-05-14 22:07:19 +02:00
parent 6d2e25aacc
commit 288eb3c1b2
2 changed files with 6 additions and 6 deletions

View file

@ -54,6 +54,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>USE_OPENGL_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>

View file

@ -1,15 +1,14 @@
//the Makefiles define these via command line
//#define _RPI_
//#define _DESKTOP_
//#define USE_OPENGL_ES
//#define USE_OPENGL_DESKTOP
#ifdef _RPI_
#ifdef USE_OPENGL_ES
#define GLHEADER <GLES/gl.h>
#endif
#ifdef _DESKTOP_
#ifdef USE_OPENGL_DESKTOP
//why the hell this naming inconsistency exists is well beyond me
#ifdef _WIN32
#ifdef WIN32
#define sleep Sleep
#endif