This commit is contained in:
erwincoumans
2016-05-07 16:19:43 -07:00
18 changed files with 247 additions and 53 deletions

View File

@@ -71,20 +71,24 @@ int main(int argc, char* argv[])
OpenGLGuiHelper gui(app,false);
CommonExampleOptions options(&gui);
example = StandaloneExampleCreateFunc(options);
example->initPhysics();
example = StandaloneExampleCreateFunc(options);
example->initPhysics();
example->resetCamera();
do
{
app->m_instancingRenderer->init();
app->m_instancingRenderer->updateCamera();
app->m_instancingRenderer->updateCamera(app->getUpAxis());
example->stepSimulation(1./60.);
example->renderScene();
app->drawGrid();
DrawGridData dg;
dg.upAxis = app->getUpAxis();
app->drawGrid(dg);
app->swapBuffer();
} while (!app->m_window->requestedExit());