lowgl-0.3.1.1: Basic gl wrapper and reference

Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Low.Render

Contents

Synopsis

Primitives

Render various kinds of primitives to the current framebuffer using the current shader program. The integer argument is the number of vertices to read from the VBOs via the current VAO.

Primitives (by index)

Render various kinds of primitives by traversing the vertices in the order specified in the current ElementArray. The format argument indicates the size of each index in the ElementArray.

Scissor Test

enableScissorTest :: Viewport -> IO () Source

Enable the scissor test. Graphics outside the scissor box will not be rendered.

disableScissorTest :: IO () Source

Disable the scissor test.

Facet Culling

enableCulling :: Culling -> IO () Source

Enable facet culling. The argument specifies whether front faces, back faces, or both will be omitted from rendering. If both front and back faces are culled you can still render points and lines.

disableCulling :: IO () Source

Disable facet culling. Front and back faces will now be rendered.

Viewport

setViewport :: Viewport -> IO () Source

Set the viewport. The default viewport simply covers the entire window.

data Culling Source

Facet culling modes.

Instances

data Viewport Source

A rectangular section of the window.

Constructors

Viewport 

Instances

data IndexFormat Source

How indices are packed in an ElementArray buffer object.

Constructors

UByteIndices

Each index is one unsigned byte.

UShortIndices

Each index is a two byte unsigned int.

UIntIndices

Each index is a four byte unsigned int.