| 181 | } |
| 182 | |
| 183 | void AbyssEngine::initializeImGui() const { |
| 184 | IMGUI_CHECKVERSION(); |
| 185 | ImGui::CreateContext(); |
| 186 | ImGuiIO &io = ImGui::GetIO(); |
| 187 | io.IniFilename = nullptr; |
| 188 | ImGui::StyleColorsDark(); |
| 189 | ImGui_ImplSDL2_InitForSDLRenderer(_window.get(), _renderer.get()); |
| 190 | ImGui_ImplSDLRenderer2_Init(_renderer.get()); |
| 191 | io.MouseDrawCursor = false; |
| 192 | ImGui::SetMouseCursor(ImGuiMouseCursor_None); |
| 193 | } |
| 194 | |
| 195 | void AbyssEngine::updateRenderRect() { |
| 196 | // update the game's render rect so that it scales up to fit the window, using vertical or horizontal letterboxing |
nothing calls this directly
no outgoing calls
no test coverage detected