26 #include "backends/imgui/imgui.h" 31 struct _SDL_GameController;
32 typedef union SDL_Event SDL_Event;
35 IMGUI_IMPL_API
bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,
void* sdl_gl_context);
36 IMGUI_IMPL_API
bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window);
37 IMGUI_IMPL_API
bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window);
38 IMGUI_IMPL_API
bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window);
39 IMGUI_IMPL_API
bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window, SDL_Renderer* renderer);
40 IMGUI_IMPL_API
bool ImGui_ImplSDL2_InitForOther(SDL_Window* window);
41 IMGUI_IMPL_API
void ImGui_ImplSDL2_Shutdown();
42 IMGUI_IMPL_API
void ImGui_ImplSDL2_NewFrame();
43 IMGUI_IMPL_API
bool ImGui_ImplSDL2_ProcessEvent(
const SDL_Event* event);
44 IMGUI_IMPL_API
bool ImGui_ImplSDL2_Ready();
48 enum ImGui_ImplSDL2_GamepadMode { ImGui_ImplSDL2_GamepadMode_AutoFirst, ImGui_ImplSDL2_GamepadMode_AutoAll, ImGui_ImplSDL2_GamepadMode_Manual };
49 IMGUI_IMPL_API
void ImGui_ImplSDL2_SetGamepadMode(ImGui_ImplSDL2_GamepadMode mode,
struct _SDL_GameController** manual_gamepads_array = NULL,
int manual_gamepads_count = -1);
51 #endif // #ifndef IMGUI_DISABLE