MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / mainInitialize

Function mainInitialize

deps/physx/physx/samples/samplebase/SampleMain.cpp:55–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53static SampleCommandLine* gSampleCommandLine = NULL;
54
55void mainInitialize()
56{
57 PX_ASSERT(gSampleCommandLine);
58 const SampleCommandLine& cmdline = *gSampleCommandLine;
59 initSampleAllocator();
60 gApp = SAMPLE_NEW(PhysXSampleApplication)(cmdline);
61
62 gApp->customizeSample(gSettings);
63
64 if (gApp->isOpen())
65 gApp->close();
66
67 gApp->open(gSettings.mWidth, gSettings.mHeight, gSettings.mName, gSettings.mFullscreen);
68#if SEPARATE_EVENT_LOOP
69 gApp->start(Ps::Thread::getDefaultStackSize());
70#else
71 if(gApp->isOpen()) gApp->onOpen();
72#endif
73}
74
75void mainTerminate()
76{

Callers 1

mainFunction · 0.85

Calls 7

initSampleAllocatorFunction · 0.85
closeMethod · 0.65
openMethod · 0.65
customizeSampleMethod · 0.45
isOpenMethod · 0.45
startMethod · 0.45
onOpenMethod · 0.45

Tested by

no test coverage detected