imgui_impl_glfw.h 1.0 KB

1234567891011121314151617181920
  1. // ImGui GLFW binding with OpenGL
  2. // https://github.com/ocornut/imgui
  3. struct GLFWwindow;
  4. bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks);
  5. void ImGui_ImplGlfw_Shutdown();
  6. void ImGui_ImplGlfw_NewFrame();
  7. // Use if you want to reset your rendering device without losing ImGui state.
  8. void ImGui_ImplGlfw_InvalidateDeviceObjects();
  9. bool ImGui_ImplGlfw_CreateDeviceObjects();
  10. // GLFW callbacks (installed by default if you enable 'install_callbacks' during initialization)
  11. // Provided here if you want to chain callbacks.
  12. // You can also handle inputs yourself and use those as a reference.
  13. void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window, int button, int action, int mods);
  14. void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window, double xoffset, double yoffset);
  15. void ImGui_ImplGlFw_KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods);
  16. void ImGui_ImplGlfw_CharCallback(GLFWwindow* window, unsigned int c);