Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data FBO
- data RBO a
- data DefaultFramebuffer
- bindFramebuffer :: Framebuffer a => a -> IO ()
- newFBO :: IO FBO
- deleteFBO :: FBO -> IO ()
- attachTex2D :: Attachable a => Tex2D a -> IO ()
- attachCubeMap :: Attachable a => CubeMap a -> Side -> IO ()
- attachRBO :: Attachable a => RBO a -> IO ()
- newRBO :: InternalFormat a => Int -> Int -> IO (RBO a)
- deleteRBO :: RBO a -> IO ()
Documentation
data FBO
A framebuffer object is an alternative rendering destination. Once an FBO is bound to framebuffer binding target, it is possible to attach images (textures or RBOs) for color, depth, or stencil rendering.
data RBO a
An RBO is a kind of image object used for rendering. The only thing you can do with an RBO is attach it to an FBO.
data DefaultFramebuffer
The default framebuffer. Bind this to render to the screen as usual.
Use the Default instance method def
to construct it.
bindFramebuffer :: Framebuffer a => a -> IO ()
Binds an FBO or the default framebuffer to the framebuffer binding target. Replaces the framebuffer already bound there.
Create a new framebuffer object. Before the framebuffer can be used for rendering it must have a color image attachment.
attachTex2D :: Attachable a => Tex2D a -> IO ()
Attach a 2D texture to the FBO currently bound to the framebuffer binding target.
attachCubeMap :: Attachable a => CubeMap a -> Side -> IO ()
Attach one of the sides of a cubemap texture to the FBO currently bound to the framebuffer binding target.
attachRBO :: Attachable a => RBO a -> IO ()
Attach an RBO to the FBO currently bound to the framebuffer binding target.