Renderer

Functions

Nil <- setBackgroundColor (GColor color)
Sets the background color

Nil <- enableLighting ()
Enables lighting

Nil <- diasbleLighting ()
Disables lighting. Typically used when using functions in the 'Draw' module.

Nil <- enableDepthTest ()
Enables the depth test; objects won't render if they are behind other objects.

Nil <- disableDepthTest ()
Disables the depth test; objects will render even if they are behind other objects.

Nil <- enableColorBufferClear ()
Enables color buffer clearing only; depth buffer clearing is disabled. This is typically used in multi-pass rendering.

Nil <- enableDepthBufferClear ()
Enables depth buffer clearing only; color buffer clearing is disabled. This allows for the screen to act as a general drawing canvas.

Nil <- enableBufferClear ()
Enables both depth buffer and color buffer clearing. This is the default.

Nil <- disableBufferClear ()
Disables both depth buffer and color buffer clearing. This allows for effects such as the infamous 'Pipes' screensaver.