keid-ui-dearimgui-0.1.2.0: DearImGui elements for Keid engine.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Render.ImGui

Synopsis

Documentation

allocate :: (HasSwapchain swapchain, HasRenderPass renderpass) => swapchain -> renderpass -> Word32 -> ResourceT (StageRIO st) ReleaseKey Source #

allocateWithFonts :: (HasSwapchain swapchain, HasRenderPass renderpass, Traversable t) => swapchain -> renderpass -> Word32 -> t FontSource -> ResourceT (StageRIO st) (ReleaseKey, t Font) Source #

allocateWith :: (HasSwapchain swapchain, HasRenderPass renderpass) => swapchain -> renderpass -> Word32 -> ResourceT (StageRIO st) a -> ResourceT (StageRIO st) (ReleaseKey, a) Source #

renderWith :: HasRenderPass renderpass => (t -> renderpass) -> ("subpass index" ::: Word32) -> Rendering t p st -> Rendering t p st Source #

allocateLoop :: Bool -> ResourceT (StageRIO st) () Source #

beforeLoop :: Bool -> StageRIO st () Source #

Initialize context to serve the draws in the current render loop.

You will need to trigger callbacks from DearImGui.GLFW if you're opting out of them here.

DearImgui will run your previously installed GLFW callbacks.

afterLoop :: StageRIO st () Source #

capturingKeyboard :: MonadIO m => m () -> m () Source #

capturingMouse :: MonadIO m => m () -> m () Source #

mkDrawData :: MonadIO m => m a -> m (a, DrawData) Source #