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

Method initializeImGui

src/Abyss/AbyssEngine.cpp:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void 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
195void AbyssEngine::updateRenderRect() {
196 // update the game's render rect so that it scales up to fit the window, using vertical or horizontal letterboxing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected