MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / AbyssEngine

Method AbyssEngine

src/Abyss/AbyssEngine.cpp:24–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace Abyss {
23
24AbyssEngine::AbyssEngine()
25 : _running(true), _mouseOverGameWindow(false), _window(nullptr, SDL_DestroyWindow), _renderer(nullptr, SDL_DestroyRenderer),
26 _renderTexture(nullptr, SDL_DestroyTexture), _currentScene(nullptr), _nextScene(nullptr), _renderRect(), _locale("latin"), _lang("eng") {
27 av_log_set_level(AV_LOG_FATAL);
28
29 Singletons::setFileProvider(this);
30 Singletons::setRendererProvider(this);
31 Singletons::setMouseProvider(this);
32 Singletons::setSoundEffectProvider(this);
33
34 Common::Log::Initialize();
35 Common::Log::info("Abyss Engine");
36 initializeSDL();
37 initializeImGui();
38 initializeAudio();
39 updateRenderRect();
40
41 setBackgroundMusicVolumeLevel(0.8f);
42 setVideoVolumeLevel(0.8f);
43 setMasterVolumeLevel(0.8f);
44 setSoundEffectsVolumeLevel(1.0f);
45}
46
47AbyssEngine::~AbyssEngine() {
48 Common::Log::info("Shutting down...");

Callers

nothing calls this directly

Calls 2

InitializeFunction · 0.85
infoFunction · 0.85

Tested by

no test coverage detected