mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06: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>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>USE_OPENGL_DESKTOP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue