Render state

From ENIGMA

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
This article is an overview of render state/mode related constants.
 +
{| cellpadding=10 cellspacing=0 border=0 align=left style="width:100%;"
{| cellpadding=10 cellspacing=0 border=0 align=left style="width:100%;"
|
|
Render modes.
Render modes.
{| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:#FAD796;"
{| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:#FAD796;"
 +
| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:black; color:white;" | '''Constant'''
 +
| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:black; color:white;" | Description
 +
|-
|'''rs_fill'''
|'''rs_fill'''
 +
|Fill the entire shape.
|-
|-
|'''rs_line'''
|'''rs_line'''
 +
|Only draw the edges of each face.
|-
|-
|'''rs_point'''
|'''rs_point'''
 +
|Only draw each vertex as a single point.
|}<br>
|}<br>
|-
|-
Line 51: Line 59:
These are various operator constants used for the depth buffer.
These are various operator constants used for the depth buffer.
{| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:#FAD796;"
{| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:#FAD796;"
 +
| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:black; color:white;" | '''Constant'''
 +
| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:black; color:white;" | Description
 +
|-
|'''rs_never'''
|'''rs_never'''
|Always False
|Always False

Revision as of 05:49, 19 April 2013

This article is an overview of render state/mode related constants.

Render modes.

Constant Description
rs_fill Fill the entire shape.
rs_line Only draw the edges of each face.
rs_point Only draw each vertex as a single point.

Face modes.

rs_front
rs_back
rs_front_back

Culling orientations.

rs_clockwise
rs_counterclockwise

Quality consants, generally for use with *_hint functions.

rs_nicest
rs_fastest
rs_dontcare

Used for fog mode.

rs_exp
rs_exp2
rs_linear

These are various operator constants used for the depth buffer.

Constant Description
rs_never Always False
rs_less source Z < depth Z
rs_equal source Z = depth Z
rs_lequal source Z <= depth Z
rs_greater source Z > depth Z
rs_notequal source Z != depth Z
rs_gequal source Z >= depth Z
rs_always Always True
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox