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