dear-imgui-2.3.0: Haskell bindings for Dear ImGui.
Safe HaskellSafe-Inferred
LanguageHaskell2010

DearImGui.GLFW

Contents

Description

GLFW specific functions backend for Dear ImGui.

Modules for initialising a backend with GLFW can be found under the corresponding backend, e.g. DearImGui.GLFW.OpenGL.

Synopsis

GLFW

glfwNewFrame :: MonadIO m => m () Source #

Wraps ImGui_ImplGlfw_NewFrame.

glfwShutdown :: MonadIO m => m () Source #

Wraps ImGui_ImplGlfw_Shutdown.

GLFW callbacks

  • When calling Init with install_callbacks=true: GLFW callbacks will be installed for you. They will call user's previously installed callbacks, if any.
  • When calling Init with install_callbacks=false: GLFW callbacks won't be installed. You will need to call those function yourself from your own GLFW callbacks.

glfwKeyCallback :: MonadIO m => Window -> CInt -> CInt -> CInt -> CInt -> m () Source #