Render state: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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. | ||
Render modes. | Render modes. | ||
{| cellpadding=5 cellspacing=0 border= | {| 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= | |- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;" | ||
| | | '''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. | |||
{| 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. | |||
{| 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. | |||
{| 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. | |||
{| 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= | {| 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= | |- cellpadding=5 cellspacing=0 border=0 style="background-color:black; color:white;" | ||
| | | '''Constant''' | ||
| '''Description''' | |||
|- | |- | ||
|'''rs_never''' | |'''rs_never''' | ||
Line 85: | Line 96: | ||
|'''rs_always''' | |'''rs_always''' | ||
|Always True | |Always True | ||
|} | |} |
Revision as of 07: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 |