| 22 | namespace Abyss { |
| 23 | |
| 24 | AbyssEngine::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 | |
| 47 | AbyssEngine::~AbyssEngine() { |
| 48 | Common::Log::info("Shutting down..."); |
nothing calls this directly
no test coverage detected