lowgl-0.2.1.1: Basic gl wrapper and reference

Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Low.Framebuffer

Synopsis

Documentation

data FBO Source

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 Source

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.

Instances

Show (RBO a) 
GLObject (RBO a) 

data DefaultFramebuffer Source

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 () Source

Binds an FBO or the default framebuffer to the framebuffer binding target. Replaces the framebuffer already bound there.

newFBO :: IO FBO Source

Create a new framebuffer object. Before the framebuffer can be used for rendering it must have a color image attachment.

deleteFBO :: FBO -> IO () Source

Delete an FBO.

attachTex2D :: Attachable a => Tex2D a -> IO () Source

Attach a 2D texture to the FBO currently bound to the framebuffer binding target.

attachCubeMap :: Attachable a => CubeMap a -> Side -> IO () Source

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 () Source

Attach an RBO to the FBO currently bound to the framebuffer binding target.

newRBO :: InternalFormat a => Int -> Int -> IO (RBO a) Source

Create a new renderbuffer with the specified dimensions.

deleteRBO :: RBO a -> IO () Source

Delete an RBO.