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> <Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking> <FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions> <IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>USE_OPENGL_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile> </ClCompile>
<Link> <Link>
<GenerateDebugInformation>true</GenerateDebugInformation> <GenerateDebugInformation>true</GenerateDebugInformation>

View file

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