Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Framebuffer
- = ScreenFramebuffer
- | Framebuffer {
- resource :: !(Resource Framebuffer_)
- ordIndex :: !Unique
- viewTargets :: [(Attachment, TextureTarget)]
- dimensions :: !(Int, Int)
- binder :: forall m a. (MonadIO m, MonadMask m) => m a -> m a
- setter :: IO ()
- data Attachment
- newtype Framebuffer_ = Framebuffer_ GLuint
- data TextureTarget = TextureTarget {}
- setBinding :: MonadIO m => Framebuffer -> m ()
- withBinding :: (MonadIO m, MonadMask m) => Framebuffer -> m a -> m a
- getDimensions :: MonadIO m => Framebuffer -> m (Int, Int)
Documentation
data Framebuffer Source
ScreenFramebuffer | |
Framebuffer | |
|
data Attachment Source
newtype Framebuffer_ Source
data TextureTarget Source
setBinding :: MonadIO m => Framebuffer -> m () Source
withBinding :: (MonadIO m, MonadMask m) => Framebuffer -> m a -> m a Source
getDimensions :: MonadIO m => Framebuffer -> m (Int, Int) Source
Returns the size of a framebuffer.
This is an IO
action because it can change for the screen framebuffer.