Devtools - Shader editing (#1705)

* devtools: shader editing and compiling

* devtools: patch shader at runtime

* devtools: shader editing load patch even with config disabled
This commit is contained in:
Vinicius Rangel
2024-12-09 17:11:11 -03:00
committed by GitHub
parent f623613d12
commit f1b23c616e
19 changed files with 466 additions and 103 deletions

View File

@@ -168,6 +168,21 @@ void WindowSDL::InitTimers() {
SDL_AddTimer(100, &PollController, controller);
}
void WindowSDL::RequestKeyboard() {
if (keyboard_grab == 0) {
SDL_StartTextInput(window);
}
keyboard_grab++;
}
void WindowSDL::ReleaseKeyboard() {
ASSERT(keyboard_grab > 0);
keyboard_grab--;
if (keyboard_grab == 0) {
SDL_StopTextInput(window);
}
}
void WindowSDL::OnResize() {
SDL_GetWindowSizeInPixels(window, &width, &height);
ImGui::Core::OnResize();