Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- allocate :: (HasSwapchain swapchain, HasRenderPass renderpass) => swapchain -> renderpass -> Word32 -> ResourceT (StageRIO st) ReleaseKey
- allocateWithFonts :: (HasSwapchain swapchain, HasRenderPass renderpass, Traversable t) => swapchain -> renderpass -> Word32 -> t FontSource -> ResourceT (StageRIO st) (ReleaseKey, t Font)
- allocateWith :: (HasSwapchain swapchain, HasRenderPass renderpass) => swapchain -> renderpass -> Word32 -> ResourceT (StageRIO st) a -> ResourceT (StageRIO st) (ReleaseKey, a)
- allocateLoop :: Bool -> ResourceT (StageRIO st) ()
- beforeLoop :: Bool -> StageRIO st ()
- afterLoop :: StageRIO st ()
- capturingKeyboard :: MonadIO m => m () -> m ()
- capturingMouse :: MonadIO m => m () -> m ()
- mkDrawData :: MonadIO m => m a -> m (a, DrawData)
- draw :: MonadIO m => DrawData -> CommandBuffer -> m ()
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 #
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.
capturingKeyboard :: MonadIO m => m () -> m () Source #
capturingMouse :: MonadIO m => m () -> m () Source #
mkDrawData :: MonadIO m => m a -> m (a, DrawData) Source #