lowgl-0.2.0.0: Basic gl wrapper and reference

Safe HaskellNone
LanguageHaskell2010

Graphics.GL.Low.Render

Synopsis

Documentation

data Culling

Facet culling modes.

Instances

data Viewport

A rectangular section of the window.

Constructors

Viewport 

Instances

data IndexFormat

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.

drawPoints :: Int -> IO ()

drawLines :: Int -> IO ()

enableScissorTest :: Viewport -> IO ()

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

disableScissorTest :: IO ()

Disable the scissor test.

enableCulling :: Culling -> IO ()

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

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

setViewport :: Viewport -> IO ()

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