lowgl-0.2.0.0: Basic gl wrapper and reference

Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Low.Framebuffer

Synopsis

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.

Instances

Show (RBO a) 
GLObject (RBO a) 

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.

newFBO :: IO FBO

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

deleteFBO :: FBO -> IO ()

Delete an FBO.

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.

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

Create a new renderbuffer with the specified dimensions.

deleteRBO :: RBO a -> IO ()

Delete an RBO.