add preliminary glut replacement test for Bullet 2.x demos
This commit is contained in:
14
Demos3/BasicDemoConsole/main.cpp
Normal file
14
Demos3/BasicDemoConsole/main.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "../../Demos/BasicDemo/BasicDemoPhysicsSetup.h"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
BasicDemoPhysicsSetup physicsSetup;
|
||||
GraphicsPhysicsBridge br;
|
||||
physicsSetup.initPhysics(br);
|
||||
physicsSetup.stepSimulation(1./60.);
|
||||
physicsSetup.exitPhysics();
|
||||
|
||||
printf("hello\n");
|
||||
}
|
||||
26
Demos3/BasicDemoConsole/premake4.lua
Normal file
26
Demos3/BasicDemoConsole/premake4.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
project "App_BasicDemoConsole"
|
||||
|
||||
kind "ConsoleApp"
|
||||
targetdir "../../bin"
|
||||
|
||||
includedirs {"../../src"}
|
||||
configuration { "Windows" }
|
||||
-- links { "opengl32","glu32","gdi32","winmm", "user32" }
|
||||
files { "../../build3/bullet.rc" }
|
||||
-- configuration {"MacOSX"}
|
||||
--print "hello"
|
||||
-- linkoptions { "-framework Carbon -framework OpenGL -framework AGL -framework Glut" }
|
||||
-- configuration {"not Windows", "not MacOSX"}
|
||||
-- links {"GL","GLU","glut"}
|
||||
configuration{}
|
||||
|
||||
links {
|
||||
"BulletDynamics", "BulletCollision", "LinearMath"
|
||||
}
|
||||
|
||||
files {
|
||||
"*.cpp" ,
|
||||
"*.h",
|
||||
"../../Demos/BasicDemo/BasicDemoPhysicsSetup.cpp",
|
||||
"../../Demos/BasicDemo/BasicDemoPhysicsSetup.h"
|
||||
}
|
||||
Reference in New Issue
Block a user