mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 22:00:05 +00:00
7561e6a4f9
fix build error in BasicGpuDemo Thanks to joen66 for the report here: https://github.com/erwincoumans/bullet3/issues/5
52 lines
1.1 KiB
Lua
52 lines
1.1 KiB
Lua
|
|
function initOpenGL()
|
|
configuration {}
|
|
configuration {"Windows"}
|
|
links {"opengl32","glu32"}
|
|
configuration {"MacOSX"}
|
|
links { "OpenGL.framework"}
|
|
configuration {"not Windows", "not MacOSX"}
|
|
links {"GL"}
|
|
configuration{}
|
|
end
|
|
|
|
function initGlut()
|
|
configuration {}
|
|
if os.is("Windows") then
|
|
configuration {"Windows"}
|
|
includedirs {
|
|
projectRootDir .. "btgui/OpenGLWindow/Glut"
|
|
}
|
|
libdirs { projectRootDir .. "btgui/OpenGLWindow/Glut"}
|
|
configuration {"Windows", "x32"}
|
|
links {"glut32"}
|
|
configuration {"Windows", "x64"}
|
|
links {"glut64"}
|
|
end
|
|
|
|
configuration {"MacOSX"}
|
|
links { "Glut.framework" }
|
|
configuration {"Linux"}
|
|
links {"glut","GLU"}
|
|
configuration{}
|
|
end
|
|
|
|
function initGlew()
|
|
configuration {}
|
|
if os.is("Windows") then
|
|
configuration {"Windows"}
|
|
defines { "GLEW_STATIC"}
|
|
includedirs {
|
|
projectRootDir .. "btgui/OpenGLWindow/GlewWindows"
|
|
}
|
|
files { projectRootDir .. "btgui/OpenGLWindow/GlewWindows/glew.c"}
|
|
end
|
|
if os.is("Linux") then
|
|
links{"GLEW"}
|
|
end
|
|
configuration{}
|
|
end
|
|
|
|
|
|
|