MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / initEngine

Method initEngine

src/engine/GameEngine.cpp:36–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void GameEngine::initEngine(int argc, char** argv)
37{
38 BaseEngine::initEngine(argc, argv);
39
40 bx::CommandLine cmdLine(argc, (const char**)argv);
41 const char* value = nullptr;
42
43 // Initialize main render system
44 m_DefaultRenderSystem.init();
45
46 // Load a test-visual
47 if (cmdLine.hasArg('v'))
48 {
49 value = cmdLine.findOption('v');
50
51 if (value)
52 {
53 m_Args.testVisual = value;
54
55 if (m_Args.testVisual.find(".MDM") != std::string::npos)
56 m_Args.testVisual += "S";
57 }
58 }
59}
60
61void GameEngine::onFrameUpdate(double dt, uint16_t width, uint16_t height)
62{

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected