opengles-0.7.0: OpenGL ES 2.0 and 3.0 with EGL 1.4

Safe HaskellNone
LanguageHaskell2010

Graphics.OpenGLES.Framebuffer

Contents

Synopsis

Whole Framebuffer Operations

Clearing the Buffers

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

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

Fine Control of Buffer Updates

Renderbuffer

glRenderbuffer :: forall a b. InternalFormat a b => Int32 -> GL (V2 Int32) -> GL (Renderbuffer b) Source

New Renderbuffer with specified sample count and dimentions.

Framebuffer

data CR Source

Constructors

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

class Attachable a b Source

Minimal complete definition

glAttachToFramebuffer

Framebuffer Settings

viewport :: V4 Int32 -> GL () Source

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