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.
This article is an overview of render state/mode related constants.
-
{| 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;"
+
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
-
| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:black; color:white;" | '''Constant'''  
+
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"  
-
| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:black; color:white;" | Description
+
| '''Constant'''  
 +
| '''Description'''
|-
|-
|'''rs_fill'''
|'''rs_fill'''
Line 17: Line 16:
|Only draw each vertex as a single point.
|Only draw each vertex as a single point.
|}<br>
|}<br>
-
|-
+
 
-
|
+
Face modes.
Face modes.
-
{| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:#FAD796;"
+
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
 +
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
 +
| '''Constant'''
 +
| '''Description'''
 +
|-
|'''rs_front'''
|'''rs_front'''
|-
|-
Line 27: Line 29:
|'''rs_front_back'''
|'''rs_front_back'''
|}
|}
-
|-
+
 
-
|
+
Culling orientations.
Culling orientations.
-
{| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:#FAD796;"
+
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
 +
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
 +
| '''Constant'''
 +
| '''Description'''
 +
|-
|'''rs_clockwise'''
|'''rs_clockwise'''
|-
|-
|'''rs_counterclockwise'''
|'''rs_counterclockwise'''
|}
|}
-
|-
+
 
-
|
+
Quality consants, generally for use with *_hint functions.
Quality consants, generally for use with *_hint functions.
-
{| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:#FAD796;"
+
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
 +
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
 +
| '''Constant'''
 +
| '''Description'''
 +
|-
|'''rs_nicest'''
|'''rs_nicest'''
|-
|-
Line 45: Line 53:
|'''rs_dontcare'''
|'''rs_dontcare'''
|}
|}
-
|-
+
 
-
|
+
Used for fog mode.
Used for fog mode.
-
{| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:#FAD796;"
+
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
 +
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"
 +
| '''Constant'''
 +
| '''Description'''
 +
|-
|'''rs_exp'''
|'''rs_exp'''
|-
|-
Line 55: Line 66:
|'''rs_linear'''
|'''rs_linear'''
|}
|}
-
|-
+
 
-
|
+
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;"
+
{| class="wikitable" cellpadding=5 cellspacing=0 border=0 style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
-
| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:black; color:white;" | '''Constant'''  
+
|- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;"  
-
| cellpadding=5 cellspacing=0 border=1 align=left style="background-color:black; color:white;" | Description
+
| '''Constant'''  
 +
| '''Description'''
|-
|-
|'''rs_never'''
|'''rs_never'''
Line 85: Line 96:
|'''rs_always'''
|'''rs_always'''
|Always True
|Always True
-
|}
 
|}
|}

Revision as of 11:05, 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.

Constant Description
rs_front
rs_back
rs_front_back

Culling orientations.

Constant Description
rs_clockwise
rs_counterclockwise

Quality consants, generally for use with *_hint functions.

Constant Description
rs_nicest
rs_fastest
rs_dontcare

Used for fog mode.

Constant Description
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