mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 12:05:38 +00:00
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:
parent
6d2e25aacc
commit
288eb3c1b2
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue