add SimpleOpenGL3App, used in ImplicitCloth demo. The Bullet 3.x demos should use this as a template, it will clean up some of the mess.
67 lines
1.4 KiB
Lua
67 lines
1.4 KiB
Lua
|
|
project "Test_Gwen_OpenGL"
|
|
|
|
kind "ConsoleApp"
|
|
flags {"Unicode"}
|
|
|
|
defines { "GWEN_COMPILE_STATIC" , "_HAS_EXCEPTIONS=0", "_STATIC_CPPLIB" }
|
|
|
|
targetdir "../../bin"
|
|
|
|
includedirs
|
|
{
|
|
|
|
"..",
|
|
".",
|
|
}
|
|
|
|
initOpenGL()
|
|
initGlew()
|
|
|
|
links {
|
|
"gwen",
|
|
}
|
|
|
|
|
|
files {
|
|
"../FontFiles/OpenSans.cpp",
|
|
"../OpenGLWindow/TwFonts.cpp",
|
|
"../OpenGLWindow/TwFonts.h",
|
|
"../OpenGLWindow/LoadShader.cpp",
|
|
"../OpenGLWindow/LoadShader.h",
|
|
"../OpenGLWindow/GLPrimitiveRenderer.cpp",
|
|
"../OpenGLWindow/GLPrimitiveRenderer.h",
|
|
"../OpenGLWindow/GwenOpenGL3CoreRenderer.h",
|
|
"../OpenGLTrueTypeFont/fontstash.cpp",
|
|
"../OpenGLTrueTypeFont/fontstash.h",
|
|
"../OpenGLTrueTypeFont/opengl_fontstashcallbacks.cpp",
|
|
"../OpenGLTrueTypeFont/opengl_fontstashcallbacks.h",
|
|
"../../btgui/Timing/b3Clock.cpp",
|
|
"../../btgui/Timing/b3Clock.h",
|
|
"**.cpp",
|
|
"**.h",
|
|
}
|
|
if os.is("Windows") then
|
|
files {
|
|
"../OpenGLWindow/Win32OpenGLWindow.cpp",
|
|
"../OpenGLWindow/Win32OpenGLWindow.h",
|
|
"../OpenGLWindow/Win32Window.cpp",
|
|
"../OpenGLWindow/Win32Window.h",
|
|
}
|
|
end
|
|
if os.is("Linux") then
|
|
links ("X11")
|
|
files{
|
|
"../OpenGLWindow/X11OpenGLWindow.h",
|
|
"../OpenGLWindow/X11OpenGLWindow.cpp"
|
|
}
|
|
end
|
|
if os.is("MacOSX") then
|
|
links{"Cocoa.framework"}
|
|
print("hello!")
|
|
files{
|
|
"../OpenGLWindow/MacOpenGLWindow.mm",
|
|
"../OpenGLWindow/MacOpenGLWindow.h",
|
|
}
|
|
end
|