add example to use BasicDemo with an OpenGL Window, without example browser

This commit is contained in:
Erwin Coumans
2016-04-27 09:43:49 -07:00
parent 924456548e
commit a3767193ce
2 changed files with 69 additions and 0 deletions

View File

@@ -20,3 +20,38 @@ files {
"**.h",
}
project "App_BasicExampleGui"
if _OPTIONS["ios"] then
kind "WindowedApp"
else
kind "ConsoleApp"
end
defines {"USE_GUI"}
includedirs {"../../src"}
links {
"BulletDynamics","BulletCollision", "LinearMath", "OpenGL_Window","Bullet3Common"
}
initOpenGL()
initGlew()
language "C++"
files {
"**.cpp",
"**.h",
"../ExampleBrowser/OpenGLGuiHelper.cpp",
"../ExampleBrowser/GL_ShapeDrawer.cpp"
}
if os.is("Linux") then initX11() end
if os.is("MacOSX") then
links{"Cocoa.framework"}
end