allow to build GLFW version of Bullet examples on Linux (use premake4_linux --enable_glfw gmake)

This commit is contained in:
Erwin Coumans 2018-02-20 16:21:22 -08:00
parent 01f58f8f02
commit 8bb40b632b
5 changed files with 12 additions and 0 deletions

View File

@ -339,6 +339,10 @@ end
end
function initGlew()
end
function initX11()
links {"X11", "dl","pthread"}
end
else
dofile ("findOpenGLGlewGlut.lua")

Binary file not shown.

View File

@ -139,8 +139,10 @@ SimpleOpenGL2App::SimpleOpenGL2App(const char* title, int width, int height)
#ifndef NO_GLEW
#ifndef __APPLE__
#ifndef _WIN32
#ifndef B3_USE_GLFW
//some Linux implementations need the 'glewExperimental' to be true
glewExperimental = GL_TRUE;
#endif//B3_USE_GLFW
#endif //_WIN32
#ifndef B3_USE_GLFW

View File

@ -324,8 +324,10 @@ SimpleOpenGL3App::SimpleOpenGL3App( const char* title, int width,int height, boo
#ifndef NO_GLEW
#ifndef __APPLE__
#ifndef _WIN32
#ifndef B3_USE_GLFW
//some Linux implementations need the 'glewExperimental' to be true
glewExperimental = GL_TRUE;
#endif //B3_USE_GLFW
#endif //_WIN32
#ifndef B3_USE_GLFW

View File

@ -1,3 +1,6 @@
#ifndef B3_USE_GLFW
#include "X11OpenGLWindow.h"
#include "OpenGLInclude.h"
@ -1121,3 +1124,4 @@ int X11OpenGLWindow::fileOpenDialog(char* filename, int maxNameLength)
return len;
}
#endif