MCPcopy Create free account
hub / github.com/SpartanJ/eepp / main

Function main

src/examples/physics/physics.cpp:655–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655EE_MAIN_FUNC int main( int, char*[] ) {
656 mWindow = Engine::instance()->createWindow( WindowSettings( 1024, 768, "eepp - Physics" ),
657 ContextSettings( true ) );
658
659 if ( mWindow->isOpen() ) {
660 KM = mWindow->getInput();
661
662 mWindow->setClearColor( RGB( 255, 255, 255 ) );
663
664 physicsCreate();
665
666 mWindow->runMainLoop( &mainLoop );
667
668 physicsDestroy();
669 }
670
671 PhysicsManager::destroySingleton();
672
673 Engine::destroySingleton();
674
675 MemoryManager::showResults();
676
677 return EXIT_SUCCESS;
678}

Callers

nothing calls this directly

Calls 10

WindowSettingsClass · 0.85
ContextSettingsClass · 0.85
RGBClass · 0.85
physicsCreateFunction · 0.85
physicsDestroyFunction · 0.85
createWindowMethod · 0.80
runMainLoopMethod · 0.80
isOpenMethod · 0.45
getInputMethod · 0.45
setClearColorMethod · 0.45

Tested by

no test coverage detected