fix mac build
This commit is contained in:
@@ -14,9 +14,8 @@ subject to the following restrictions:
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "GLDebugFont.h"
|
#include "GLDebugFont.h"
|
||||||
#include "OpenGLWindow/OpenGLInclude.h"
|
|
||||||
|
|
||||||
#ifdef DONT_USE_GLUT
|
#ifdef DONT_USE_GLUT
|
||||||
|
#include "OpenGLWindow/OpenGLInclude.h"
|
||||||
#else
|
#else
|
||||||
#ifdef _WIN32//for glut.h
|
#ifdef _WIN32//for glut.h
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ project "App_BasicDemoCustomOpenGL2"
|
|||||||
"../../btgui"
|
"../../btgui"
|
||||||
}
|
}
|
||||||
|
|
||||||
defines { "DONT_USE_GLUT"}
|
defines { "DONT_USE_GLUT", "USE_OPENGL2"}
|
||||||
|
|
||||||
initOpenGL()
|
initOpenGL()
|
||||||
initGlew()
|
initGlew()
|
||||||
|
|||||||
@@ -24,7 +24,11 @@ subject to the following restrictions:
|
|||||||
//#include <OpenGL/gl.h>
|
//#include <OpenGL/gl.h>
|
||||||
//#include <OpenGL/glu.h>
|
//#include <OpenGL/glu.h>
|
||||||
//#import <Cocoa/Cocoa.h>
|
//#import <Cocoa/Cocoa.h>
|
||||||
|
#ifdef USE_OPENGL2
|
||||||
|
#include <OpenGL/gl.h>
|
||||||
|
#else
|
||||||
#include <OpenGL/gl3.h>
|
#include <OpenGL/gl3.h>
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include "GlewWindows/GL/glew.h"
|
#include "GlewWindows/GL/glew.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user