MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / InitEngine

Function InitEngine

src/Core/ObEngineCore.cpp:17–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace obe
16{
17 void InitEngine(unsigned int surfaceWidth, unsigned int surfaceHeight)
18 {
19 Debug::InitLogger();
20 Debug::Log->debug("<ObEngine> Storing Obe.vili in cache");
21
22 Debug::Log->info("Using ObEngineCore (Version : {} ({}:{}))",
23 Config::OBENGINE_VERSION, Config::OBENGINE_GIT_BRANCH,
24 Config::OBENGINE_GIT_HASH);
25
26 Transform::UnitVector::Init(surfaceWidth, surfaceHeight);
27 Debug::Log->debug("<ObEngine> Initialising Position Transformers");
28 Graphics::InitPositionTransformer();
29
30 Debug::Log->debug("<ObEngine> Mounting paths");
31 System::MountablePath::LoadMountFile();
32
33 Debug::Log->debug("<ObEngine> Initialising NullTexture");
34 Graphics::MakeNullTexture();
35
36 Debug::Log->info("<ObEngine> Initialisation over !");
37 }
38}

Callers 1

mainFunction · 0.85

Calls 5

InitLoggerFunction · 0.85
InitPositionTransformerFunction · 0.85
MakeNullTextureFunction · 0.85
debugMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected