opengles-0.8.3: Functional interface for OpenGL 4.1+ and OpenGL ES 2.0+

Safe HaskellNone
LanguageHaskell2010

Graphics.OpenGLES.Framebuffer

Contents

Synopsis

Whole Framebuffer Operations

Clearing the Buffers

clear :: [RenderConfig] -> BufferMask -> GL () Source

Clear the bound Framebuffer.

clear [] colorBuffer
clear [bindFb framebuffer] (colorBuffer+depthBuffer)

clearColor :: Float -> Float -> Float -> Float -> GL () Source

Specify clear color (r,g,b,a)

clearDepth :: Float -> GL () Source

Specify clear depth

clearStencil :: Int32 -> GL () Source

Specify clear stencil

Fine Control of Buffer Updates

colorMask :: Bool -> Bool -> Bool -> Bool -> GL () Source

Color mask (r,g,b,a)

depthMask :: Bool -> GL () Source

Depth mask

stencilMask :: Word32 -> GL () Source

Stencil mask

stencilMaskSep :: CullFace -> Word32 -> GL () Source

Stencil mask by face

Renderbuffer

glRenderbuffer Source

Arguments

:: InternalFormat a b 
=> Int32

sample count (0 to disable multisampling)

-> GL (V2 Int32)

renderbuffer dimentions getter

-> GL (Renderbuffer b) 

New Renderbuffer with specified sample count and dimentions.

unsafeRenderbuffer Source

Arguments

:: Int32

sample count (0 to disable multisampling)

-> GL (V2 Int32)

renderbuffer dimentions getter

-> GLenum

internal format enum

-> GL (Renderbuffer a) 

glRenderbuffer with explicit internal format.

Framebuffer

data CR Source

Color renderable wrapper.

Constructors

forall a c . (Attachable a c, ColorRenderable c) => CR (a c) 

class Attachable a b Source

Minimal complete definition

glAttachToFramebuffer

data DepthStencil Source

Depth and Stencil renderable wrapper.

Framebuffer Settings

viewport Source

Arguments

:: V4 Int32

V4 x y w h

-> GL () 

Cliping current framebuffer. Note that origin is left-bottom.

getViewport Source

Arguments

:: GL (V4 Int32)

V4 x y w h

getDepthRange Source

Arguments

:: GL (V2 Float)

(near, far)

Set depth range (near, far)