mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 13:20:07 +00:00
allow to build GLFW version of Bullet examples on Linux (use premake4_linux --enable_glfw gmake)
This commit is contained in:
parent
01f58f8f02
commit
8bb40b632b
@ -339,6 +339,10 @@ end
|
|||||||
end
|
end
|
||||||
function initGlew()
|
function initGlew()
|
||||||
end
|
end
|
||||||
|
function initX11()
|
||||||
|
links {"X11", "dl","pthread"}
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
dofile ("findOpenGLGlewGlut.lua")
|
dofile ("findOpenGLGlewGlut.lua")
|
||||||
|
Binary file not shown.
@ -139,8 +139,10 @@ SimpleOpenGL2App::SimpleOpenGL2App(const char* title, int width, int height)
|
|||||||
#ifndef NO_GLEW
|
#ifndef NO_GLEW
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
#ifndef B3_USE_GLFW
|
||||||
//some Linux implementations need the 'glewExperimental' to be true
|
//some Linux implementations need the 'glewExperimental' to be true
|
||||||
glewExperimental = GL_TRUE;
|
glewExperimental = GL_TRUE;
|
||||||
|
#endif//B3_USE_GLFW
|
||||||
#endif //_WIN32
|
#endif //_WIN32
|
||||||
|
|
||||||
#ifndef B3_USE_GLFW
|
#ifndef B3_USE_GLFW
|
||||||
|
@ -324,8 +324,10 @@ SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height, boo
|
|||||||
#ifndef NO_GLEW
|
#ifndef NO_GLEW
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
#ifndef B3_USE_GLFW
|
||||||
//some Linux implementations need the 'glewExperimental' to be true
|
//some Linux implementations need the 'glewExperimental' to be true
|
||||||
glewExperimental = GL_TRUE;
|
glewExperimental = GL_TRUE;
|
||||||
|
#endif //B3_USE_GLFW
|
||||||
#endif //_WIN32
|
#endif //_WIN32
|
||||||
|
|
||||||
#ifndef B3_USE_GLFW
|
#ifndef B3_USE_GLFW
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
|
||||||
|
#ifndef B3_USE_GLFW
|
||||||
|
|
||||||
#include "X11OpenGLWindow.h"
|
#include "X11OpenGLWindow.h"
|
||||||
#include "OpenGLInclude.h"
|
#include "OpenGLInclude.h"
|
||||||
|
|
||||||
@ -1121,3 +1124,4 @@ int X11OpenGLWindow::fileOpenDialog(char* filename, int maxNameLength)
|
|||||||
return len;
|
return len;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user