passing the renderer to the editor

This commit is contained in:
scawful
2022-06-14 09:38:37 -04:00
parent efc45bccd3
commit 449ddad839

View File

@@ -20,6 +20,7 @@ void Controller::onEntry() {
CreateWindow();
CreateRenderer();
CreateGuiContext();
editor_.SetupScreen(sdl_renderer_);
ImGuiIO &io = ImGui::GetIO();
io.KeyMap[ImGuiKey_Backspace] = SDL_GetScancodeFromKey(SDLK_BACKSPACE);
io.KeyMap[ImGuiKey_Enter] = SDL_GetScancodeFromKey(SDLK_RETURN);