MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / main

Function main

examples/StandaloneMain/main_tinyrenderer_single_example.cpp:384–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382};
383
384int main(int argc, char* argv[])
385{
386 TinyRendererGUIHelper noGfx(640, 480);
387
388 CommonExampleOptions options(&noGfx);
389 CommonExampleInterface* example = StandaloneExampleCreateFunc(options);
390
391 example->initPhysics();
392 example->resetCamera();
393
394 for (int i = 0; i < 1000; i++)
395 {
396 printf("Simulating step %d\n", i);
397 example->stepSimulation(1.f / 60.f);
398 example->renderScene();
399 }
400 example->exitPhysics();
401
402 delete example;
403
404 return 0;
405}

Callers

nothing calls this directly

Calls 5

initPhysicsMethod · 0.45
resetCameraMethod · 0.45
stepSimulationMethod · 0.45
renderSceneMethod · 0.45
exitPhysicsMethod · 0.45

Tested by

no test coverage detected