mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
Examples: enhance sdl2 surface
This commit is contained in:
parent
b3008c0543
commit
a59e03e1e7
1 changed files with 3 additions and 1 deletions
|
|
@ -41,10 +41,12 @@ int main(int, char**)
|
|||
IMGUI_CHECKVERSION();
|
||||
ImGui::CreateContext();
|
||||
ImGuiIO& io = ImGui::GetIO(); (void)io;
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
|
||||
|
||||
ImGui::StyleColorsDark();
|
||||
|
||||
ImGui_ImplSDL2_InitForSDLRenderer(window, nullptr);
|
||||
ImGui_ImplSDL2_SetGamepadMode(ImGui_ImplSDL2_GamepadMode_AutoFirst, nullptr, 0);
|
||||
ImGui_ImplSDLSurface2_Init(framebuffer);
|
||||
|
||||
bool show_demo_window = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue