예제 #1
0
void ImGui_ImplSdlGL3_Shutdown()
{
    // Destroy SDL mouse cursors
    for (ImGuiMouseCursor cursor_n = 0; cursor_n < ImGuiMouseCursor_Count_; cursor_n++)
        SDL_FreeCursor(g_MouseCursors[cursor_n]);
    memset(g_MouseCursors, 0, sizeof(g_MouseCursors));

    // Destroy OpenGL objects
    ImGui_ImplSdlGL3_InvalidateDeviceObjects();
}
예제 #2
0
void ImGui_ImplSdlGL3_Shutdown()
{
    ImGui_ImplSdlGL3_InvalidateDeviceObjects();
    ImGui::Shutdown();
}
예제 #3
0
IMGUI_API void ImGui_Service_InvalidateDeviceObjects() {
	if (glMajorVersion < 3)
		return ImGui_ImplSdl_InvalidateDeviceObjects();
	else
		return ImGui_ImplSdlGL3_InvalidateDeviceObjects();
}