From: TravisCI-DocBuilder Date: Wed, 25 Nov 2015 20:50:25 +0000 (+0000) Subject: Doc generated from commit 416cc3879749159969b63774db31fa29bb517045 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=176198cd092b951dccd98850d760ebc2c4d99cd9;p=corbenik%2Fctrulib.git Doc generated from commit 416cc3879749159969b63774db31fa29bb517045 --- diff --git a/enums_8h.html b/enums_8h.html index fb99345..5079b49 100644 --- a/enums_8h.html +++ b/enums_8h.html @@ -229,9 +229,33 @@ Enumerations
  GPU_ETC1A4 = 0xC
- } Supported pixel formats. More...
+ } Supported texture formats. More...
  +enum  GPU_COLORBUF {
+  GPU_RB_RGBA8 = 0, +
+  GPU_RB_RGB8 = 1, +
+  GPU_RB_RGBA5551 = 2, +
+  GPU_RB_RGB565 = 3, +
+  GPU_RB_RGBA4 = 4 +
+ } Supported color buffer formats. More...
+  + +enum  GPU_DEPTHBUF {
+  GPU_RB_DEPTH16 = 0, +
+  GPU_RB_DEPTH24 = 2, +
+  GPU_RB_DEPTH24_STENCIL8 = 3 +
+ } Supported depth buffer formats. More...
+  + enum  GPU_TESTFUNC {
  GPU_NEVER = 0,
@@ -384,6 +408,16 @@ Enumerations } Logical operations. More...
  +enum  GPU_FRAGOPMODE {
+  GPU_FRAGOPMODE_GL = 0, +
+  GPU_FRAGOPMODE_GAS_ACC = 1, +
+  GPU_FRAGOPMODE_SHADOW = 3 +
+ } Fragment operation modes. More...
+  + enum  GPU_FORMATS {
  GPU_BYTE = 0,
@@ -741,6 +775,37 @@ Enumerations + + + +
+
+ + + + +
enum GPU_COLORBUF
+
+ +

Supported color buffer formats.

+ + + + + + +
Enumerator
GPU_RB_RGBA8  +

8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha

+
GPU_RB_RGB8  +

8-bit Red + 8-bit Green + 8-bit Blue

+
GPU_RB_RGBA5551  +

5-bit Red + 5-bit Green + 5-bit Blue + 1-bit Alpha

+
GPU_RB_RGB565  +

5-bit Red + 6-bit Green + 5-bit Blue

+
GPU_RB_RGBA4  +

4-bit Red + 4-bit Green + 4-bit Blue + 4-bit Alpha

+
+
@@ -809,6 +874,31 @@ Enumerations + + + +
+
+ + + + +
enum GPU_DEPTHBUF
+
+ +

Supported depth buffer formats.

+ + + + +
Enumerator
GPU_RB_DEPTH16  +

16-bit Depth

+
GPU_RB_DEPTH24  +

24-bit Depth

+
GPU_RB_DEPTH24_STENCIL8  +

24-bit Depth + 8-bit Stencil

+
+
@@ -837,6 +927,31 @@ Enumerations + + + +
+
+ + + + +
enum GPU_FRAGOPMODE
+
+ +

Fragment operation modes.

+ + + + +
Enumerator
GPU_FRAGOPMODE_GL  +

OpenGL mode.

+
GPU_FRAGOPMODE_GAS_ACC  +

Gas mode (?).

+
GPU_FRAGOPMODE_SHADOW  +

Shadow mode (?).

+
+
@@ -1404,7 +1519,7 @@ Enumerations
-

Supported pixel formats.

+

Supported texture formats.

Enumerator
GPU_RGBA8 

8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha

diff --git a/enums_8h_source.html b/enums_8h_source.html index 873ae51..061d5e3 100644 --- a/enums_8h_source.html +++ b/enums_8h_source.html @@ -132,7 +132,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
40  GPU_TEXUNIT2 = 0x4, ///< Texture unit 2.
41 } GPU_TEXUNIT;
42 
-
43 /// Supported pixel formats.
+
43 /// Supported texture formats.
44 typedef enum
45 {
46  GPU_RGBA8 = 0x0, ///< 8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha
@@ -150,494 +150,534 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
58  GPU_ETC1A4 = 0xC, ///< ETC1 texture compression + 4-bit Alpha
59 } GPU_TEXCOLOR;
60 
-
61 /// Test functions.
-
62 typedef enum
+
61 /// Supported color buffer formats.
+
62 typedef enum
63 {
-
64  GPU_NEVER = 0, ///< Never pass.
-
65  GPU_ALWAYS = 1, ///< Always pass.
-
66  GPU_EQUAL = 2, ///< Pass if equal.
-
67  GPU_NOTEQUAL = 3, ///< Pass if not equal.
-
68  GPU_LESS = 4, ///< Pass if less than.
-
69  GPU_LEQUAL = 5, ///< Pass if less than or equal.
-
70  GPU_GREATER = 6, ///< Pass if greater than.
-
71  GPU_GEQUAL = 7, ///< Pass if greater than or equal.
- -
73 
-
74 /// Scissor test modes.
-
75 typedef enum
-
76 {
-
77  GPU_SCISSOR_DISABLE = 0, ///< Disable.
-
78  GPU_SCISSOR_INVERT = 1, ///< Exclude pixels inside the scissor box.
-
79  // 2 is the same as 0
-
80  GPU_SCISSOR_NORMAL = 3, ///< Exclude pixels outside of the scissor box.
- -
82 
-
83 /// Stencil operations.
-
84 typedef enum
-
85 {
-
86  GPU_STENCIL_KEEP = 0, ///< Keep old value. (old_stencil)
-
87  GPU_STENCIL_ZERO = 1, ///< Zero. (0)
-
88  GPU_STENCIL_REPLACE = 2, ///< Replace value. (ref)
-
89  GPU_STENCIL_INCR = 3, ///< Increment value. (old_stencil + 1 saturated to [0, 255])
-
90  GPU_STENCIL_DECR = 4, ///< Decrement value. (old_stencil - 1 saturated to [0, 255])
-
91  GPU_STENCIL_INVERT = 5, ///< Invert value. (~old_stencil)
-
92  GPU_STENCIL_INCR_WRAP = 6, ///< Increment value. (old_stencil + 1)
-
93  GPU_STENCIL_DECR_WRAP = 7, ///< Decrement value. (old_stencil - 1)
- -
95 
-
96 /// Pixel write mask.
-
97 typedef enum
-
98 {
-
99  GPU_WRITE_RED = 0x01, ///< Write red.
-
100  GPU_WRITE_GREEN = 0x02, ///< Write green.
-
101  GPU_WRITE_BLUE = 0x04, ///< Write blue.
-
102  GPU_WRITE_ALPHA = 0x08, ///< Write alpha.
-
103  GPU_WRITE_DEPTH = 0x10, ///< Write depth.
-
104 
-
105  GPU_WRITE_COLOR = 0x0F, ///< Write all color components.
-
106  GPU_WRITE_ALL = 0x1F, ///< Write all components.
-
107 } GPU_WRITEMASK;
-
108 
-
109 /// Blend modes.
-
110 typedef enum
-
111 {
-
112  GPU_BLEND_ADD = 0, ///< Add colors.
-
113  GPU_BLEND_SUBTRACT = 1, ///< Subtract colors.
-
114  GPU_BLEND_REVERSE_SUBTRACT = 2, ///< Reverse-subtract colors.
-
115  GPU_BLEND_MIN = 3, ///< Use the minimum color.
-
116  GPU_BLEND_MAX = 4, ///< Use the maximum color.
- -
118 
-
119 /// Blend factors.
-
120 typedef enum
-
121 {
-
122  GPU_ZERO = 0, ///< Zero.
-
123  GPU_ONE = 1, ///< One.
-
124  GPU_SRC_COLOR = 2, ///< Source color.
-
125  GPU_ONE_MINUS_SRC_COLOR = 3, ///< Source color - 1.
-
126  GPU_DST_COLOR = 4, ///< Destination color.
-
127  GPU_ONE_MINUS_DST_COLOR = 5, ///< Destination color - 1.
-
128  GPU_SRC_ALPHA = 6, ///< Source alpha.
-
129  GPU_ONE_MINUS_SRC_ALPHA = 7, ///< Source alpha - 1.
-
130  GPU_DST_ALPHA = 8, ///< Destination alpha.
-
131  GPU_ONE_MINUS_DST_ALPHA = 9, ///< Destination alpha - 1.
-
132  GPU_CONSTANT_COLOR = 10, ///< Constant color.
-
133  GPU_ONE_MINUS_CONSTANT_COLOR = 11, ///< Constant color - 1.
-
134  GPU_CONSTANT_ALPHA = 12, ///< Constant alpha.
-
135  GPU_ONE_MINUS_CONSTANT_ALPHA = 13, ///< Constant alpha - 1.
-
136  GPU_SRC_ALPHA_SATURATE = 14, ///< Saturated alpha.
- -
138 
-
139 /// Logical operations.
-
140 typedef enum
-
141 {
-
142  GPU_LOGICOP_CLEAR = 0, ///< Clear.
-
143  GPU_LOGICOP_AND = 1, ///< Bitwise AND.
-
144  GPU_LOGICOP_AND_REVERSE = 2, ///< Reverse bitwise AND.
-
145  GPU_LOGICOP_COPY = 3, ///< Copy.
-
146  GPU_LOGICOP_SET = 4, ///< Set.
-
147  GPU_LOGICOP_COPY_INVERTED = 5, ///< Inverted copy.
-
148  GPU_LOGICOP_NOOP = 6, ///< No operation.
-
149  GPU_LOGICOP_INVERT = 7, ///< Invert.
-
150  GPU_LOGICOP_NAND = 8, ///< Bitwise NAND.
-
151  GPU_LOGICOP_OR = 9, ///< Bitwise OR.
-
152  GPU_LOGICOP_NOR = 10, ///< Bitwise NOR.
-
153  GPU_LOGICOP_XOR = 11, ///< Bitwise XOR.
-
154  GPU_LOGICOP_EQUIV = 12, ///< Equivalent.
-
155  GPU_LOGICOP_AND_INVERTED = 13, ///< Inverted bitwise AND.
-
156  GPU_LOGICOP_OR_REVERSE = 14, ///< Reverse bitwise OR.
-
157  GPU_LOGICOP_OR_INVERTED = 15, ///< Inverted bitwize OR.
-
158 } GPU_LOGICOP;
-
159 
-
160 /// Supported component formats.
-
161 typedef enum
-
162 {
-
163  GPU_BYTE = 0, ///< 8-bit byte.
-
164  GPU_UNSIGNED_BYTE = 1, ///< 8-bit unsigned byte.
-
165  GPU_SHORT = 2, ///< 16-bit short.
-
166  GPU_FLOAT = 3, ///< 32-bit float.
-
167 } GPU_FORMATS;
-
168 
-
169 /// Cull modes.
-
170 typedef enum
-
171 {
-
172  GPU_CULL_NONE = 0, ///< Disabled.
-
173  GPU_CULL_FRONT_CCW = 1, ///< Front, counter-clockwise.
-
174  GPU_CULL_BACK_CCW = 2, ///< Back, counter-clockwise.
-
175 } GPU_CULLMODE;
-
176 
-
177 /// Creates a VBO attribute parameter from its index, size, and format.
-
178 #define GPU_ATTRIBFMT(i, n, f) (((((n)-1)<<2)|((f)&3))<<((i)*4))
-
179 
-
180 /// Texture combiner sources.
-
181 typedef enum
-
182 {
-
183  GPU_PRIMARY_COLOR = 0x00, ///< Primary color.
-
184  GPU_FRAGMENT_PRIMARY_COLOR = 0x01, ///< Primary fragment color.
-
185  GPU_FRAGMENT_SECONDARY_COLOR = 0x02, ///< Secondary fragment color.
-
186  GPU_TEXTURE0 = 0x03, ///< Texture unit 0.
-
187  GPU_TEXTURE1 = 0x04, ///< Texture unit 1.
-
188  GPU_TEXTURE2 = 0x05, ///< Texture unit 2.
-
189  GPU_TEXTURE3 = 0x06, ///< Texture unit 3.
-
190  GPU_PREVIOUS_BUFFER = 0x0D, ///< Previous buffer.
-
191  GPU_CONSTANT = 0x0E, ///< Constant value.
-
192  GPU_PREVIOUS = 0x0F, ///< Previous value.
-
193 } GPU_TEVSRC;
+
64  GPU_RB_RGBA8 = 0, ///< 8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha
+
65  GPU_RB_RGB8 = 1, ///< 8-bit Red + 8-bit Green + 8-bit Blue
+
66  GPU_RB_RGBA5551 = 2, ///< 5-bit Red + 5-bit Green + 5-bit Blue + 1-bit Alpha
+
67  GPU_RB_RGB565 = 3, ///< 5-bit Red + 6-bit Green + 5-bit Blue
+
68  GPU_RB_RGBA4 = 4, ///< 4-bit Red + 4-bit Green + 4-bit Blue + 4-bit Alpha
+
69 } GPU_COLORBUF;
+
70 
+
71 /// Supported depth buffer formats.
+
72 typedef enum
+
73 {
+
74  GPU_RB_DEPTH16 = 0, ///< 16-bit Depth
+
75  GPU_RB_DEPTH24 = 2, ///< 24-bit Depth
+
76  GPU_RB_DEPTH24_STENCIL8 = 3, ///< 24-bit Depth + 8-bit Stencil
+
77 } GPU_DEPTHBUF;
+
78 
+
79 /// Test functions.
+
80 typedef enum
+
81 {
+
82  GPU_NEVER = 0, ///< Never pass.
+
83  GPU_ALWAYS = 1, ///< Always pass.
+
84  GPU_EQUAL = 2, ///< Pass if equal.
+
85  GPU_NOTEQUAL = 3, ///< Pass if not equal.
+
86  GPU_LESS = 4, ///< Pass if less than.
+
87  GPU_LEQUAL = 5, ///< Pass if less than or equal.
+
88  GPU_GREATER = 6, ///< Pass if greater than.
+
89  GPU_GEQUAL = 7, ///< Pass if greater than or equal.
+ +
91 
+
92 /// Scissor test modes.
+
93 typedef enum
+
94 {
+
95  GPU_SCISSOR_DISABLE = 0, ///< Disable.
+
96  GPU_SCISSOR_INVERT = 1, ///< Exclude pixels inside the scissor box.
+
97  // 2 is the same as 0
+
98  GPU_SCISSOR_NORMAL = 3, ///< Exclude pixels outside of the scissor box.
+ +
100 
+
101 /// Stencil operations.
+
102 typedef enum
+
103 {
+
104  GPU_STENCIL_KEEP = 0, ///< Keep old value. (old_stencil)
+
105  GPU_STENCIL_ZERO = 1, ///< Zero. (0)
+
106  GPU_STENCIL_REPLACE = 2, ///< Replace value. (ref)
+
107  GPU_STENCIL_INCR = 3, ///< Increment value. (old_stencil + 1 saturated to [0, 255])
+
108  GPU_STENCIL_DECR = 4, ///< Decrement value. (old_stencil - 1 saturated to [0, 255])
+
109  GPU_STENCIL_INVERT = 5, ///< Invert value. (~old_stencil)
+
110  GPU_STENCIL_INCR_WRAP = 6, ///< Increment value. (old_stencil + 1)
+
111  GPU_STENCIL_DECR_WRAP = 7, ///< Decrement value. (old_stencil - 1)
+
112 } GPU_STENCILOP;
+
113 
+
114 /// Pixel write mask.
+
115 typedef enum
+
116 {
+
117  GPU_WRITE_RED = 0x01, ///< Write red.
+
118  GPU_WRITE_GREEN = 0x02, ///< Write green.
+
119  GPU_WRITE_BLUE = 0x04, ///< Write blue.
+
120  GPU_WRITE_ALPHA = 0x08, ///< Write alpha.
+
121  GPU_WRITE_DEPTH = 0x10, ///< Write depth.
+
122 
+
123  GPU_WRITE_COLOR = 0x0F, ///< Write all color components.
+
124  GPU_WRITE_ALL = 0x1F, ///< Write all components.
+
125 } GPU_WRITEMASK;
+
126 
+
127 /// Blend modes.
+
128 typedef enum
+
129 {
+
130  GPU_BLEND_ADD = 0, ///< Add colors.
+
131  GPU_BLEND_SUBTRACT = 1, ///< Subtract colors.
+
132  GPU_BLEND_REVERSE_SUBTRACT = 2, ///< Reverse-subtract colors.
+
133  GPU_BLEND_MIN = 3, ///< Use the minimum color.
+
134  GPU_BLEND_MAX = 4, ///< Use the maximum color.
+ +
136 
+
137 /// Blend factors.
+
138 typedef enum
+
139 {
+
140  GPU_ZERO = 0, ///< Zero.
+
141  GPU_ONE = 1, ///< One.
+
142  GPU_SRC_COLOR = 2, ///< Source color.
+
143  GPU_ONE_MINUS_SRC_COLOR = 3, ///< Source color - 1.
+
144  GPU_DST_COLOR = 4, ///< Destination color.
+
145  GPU_ONE_MINUS_DST_COLOR = 5, ///< Destination color - 1.
+
146  GPU_SRC_ALPHA = 6, ///< Source alpha.
+
147  GPU_ONE_MINUS_SRC_ALPHA = 7, ///< Source alpha - 1.
+
148  GPU_DST_ALPHA = 8, ///< Destination alpha.
+
149  GPU_ONE_MINUS_DST_ALPHA = 9, ///< Destination alpha - 1.
+
150  GPU_CONSTANT_COLOR = 10, ///< Constant color.
+
151  GPU_ONE_MINUS_CONSTANT_COLOR = 11, ///< Constant color - 1.
+
152  GPU_CONSTANT_ALPHA = 12, ///< Constant alpha.
+
153  GPU_ONE_MINUS_CONSTANT_ALPHA = 13, ///< Constant alpha - 1.
+
154  GPU_SRC_ALPHA_SATURATE = 14, ///< Saturated alpha.
+ +
156 
+
157 /// Logical operations.
+
158 typedef enum
+
159 {
+
160  GPU_LOGICOP_CLEAR = 0, ///< Clear.
+
161  GPU_LOGICOP_AND = 1, ///< Bitwise AND.
+
162  GPU_LOGICOP_AND_REVERSE = 2, ///< Reverse bitwise AND.
+
163  GPU_LOGICOP_COPY = 3, ///< Copy.
+
164  GPU_LOGICOP_SET = 4, ///< Set.
+
165  GPU_LOGICOP_COPY_INVERTED = 5, ///< Inverted copy.
+
166  GPU_LOGICOP_NOOP = 6, ///< No operation.
+
167  GPU_LOGICOP_INVERT = 7, ///< Invert.
+
168  GPU_LOGICOP_NAND = 8, ///< Bitwise NAND.
+
169  GPU_LOGICOP_OR = 9, ///< Bitwise OR.
+
170  GPU_LOGICOP_NOR = 10, ///< Bitwise NOR.
+
171  GPU_LOGICOP_XOR = 11, ///< Bitwise XOR.
+
172  GPU_LOGICOP_EQUIV = 12, ///< Equivalent.
+
173  GPU_LOGICOP_AND_INVERTED = 13, ///< Inverted bitwise AND.
+
174  GPU_LOGICOP_OR_REVERSE = 14, ///< Reverse bitwise OR.
+
175  GPU_LOGICOP_OR_INVERTED = 15, ///< Inverted bitwize OR.
+
176 } GPU_LOGICOP;
+
177 
+
178 /// Fragment operation modes.
+
179 typedef enum
+
180 {
+
181  GPU_FRAGOPMODE_GL = 0, ///< OpenGL mode.
+
182  GPU_FRAGOPMODE_GAS_ACC = 1, ///< Gas mode (?).
+
183  GPU_FRAGOPMODE_SHADOW = 3, ///< Shadow mode (?).
+ +
185 
+
186 /// Supported component formats.
+
187 typedef enum
+
188 {
+
189  GPU_BYTE = 0, ///< 8-bit byte.
+
190  GPU_UNSIGNED_BYTE = 1, ///< 8-bit unsigned byte.
+
191  GPU_SHORT = 2, ///< 16-bit short.
+
192  GPU_FLOAT = 3, ///< 32-bit float.
+
193 } GPU_FORMATS;
194 
-
195 /// Texture RGB combiner operands.
-
196 typedef enum
+
195 /// Cull modes.
+
196 typedef enum
197 {
-
198  GPU_TEVOP_RGB_SRC_COLOR = 0x00, ///< Source color.
-
199  GPU_TEVOP_RGB_ONE_MINUS_SRC_COLOR = 0x01, ///< Source color - 1.
-
200  GPU_TEVOP_RGB_SRC_ALPHA = 0x02, ///< Source alpha.
-
201  GPU_TEVOP_RGB_ONE_MINUS_SRC_ALPHA = 0x03, ///< Source alpha - 1.
-
202  GPU_TEVOP_RGB_SRC_R = 0x04, ///< Source red.
-
203  GPU_TEVOP_RGB_ONE_MINUS_SRC_R = 0x05, ///< Source red - 1.
-
204  GPU_TEVOP_RGB_0x06 = 0x06, ///< Unknown.
-
205  GPU_TEVOP_RGB_0x07 = 0x07, ///< Unknown.
-
206  GPU_TEVOP_RGB_SRC_G = 0x08, ///< Source green.
-
207  GPU_TEVOP_RGB_ONE_MINUS_SRC_G = 0x09, ///< Source green - 1.
-
208  GPU_TEVOP_RGB_0x0A = 0x0A, ///< Unknown.
-
209  GPU_TEVOP_RGB_0x0B = 0x0B, ///< Unknown.
-
210  GPU_TEVOP_RGB_SRC_B = 0x0C, ///< Source blue.
-
211  GPU_TEVOP_RGB_ONE_MINUS_SRC_B = 0x0D, ///< Source blue - 1.
-
212  GPU_TEVOP_RGB_0x0E = 0x0E, ///< Unknown.
-
213  GPU_TEVOP_RGB_0x0F = 0x0F, ///< Unknown.
-
214 } GPU_TEVOP_RGB;
-
215 
-
216 /// Texture Alpha combiner operands.
-
217 typedef enum
-
218 {
-
219  GPU_TEVOP_A_SRC_ALPHA = 0x00, ///< Source alpha.
-
220  GPU_TEVOP_A_ONE_MINUS_SRC_ALPHA = 0x01, ///< Source alpha - 1.
-
221  GPU_TEVOP_A_SRC_R = 0x02, ///< Source red.
-
222  GPU_TEVOP_A_ONE_MINUS_SRC_R = 0x03, ///< Source red - 1.
-
223  GPU_TEVOP_A_SRC_G = 0x04, ///< Source green.
-
224  GPU_TEVOP_A_ONE_MINUS_SRC_G = 0x05, ///< Source green - 1.
-
225  GPU_TEVOP_A_SRC_B = 0x06, ///< Source blue.
-
226  GPU_TEVOP_A_ONE_MINUS_SRC_B = 0x07, ///< Source blue - 1.
-
227 } GPU_TEVOP_A;
-
228 
-
229 /// Texture combiner functions.
-
230 typedef enum
-
231 {
-
232  GPU_REPLACE = 0x00, ///< Replace.
-
233  GPU_MODULATE = 0x01, ///< Modulate.
-
234  GPU_ADD = 0x02, ///< Add.
-
235  GPU_ADD_SIGNED = 0x03, ///< Signed add.
-
236  GPU_INTERPOLATE = 0x04, ///< Interpolate.
-
237  GPU_SUBTRACT = 0x05, ///< Subtract.
-
238  GPU_DOT3_RGB = 0x06, ///< Dot3. RGB only.
-
239  GPU_MULTIPLY_ADD = 0x08, ///< Multiply then add.
-
240  GPU_ADD_MULTIPLY = 0x09, ///< Add then multiply.
- -
242 
-
243 /// Texture scale factors.
-
244 typedef enum
-
245 {
-
246  GPU_TEVSCALE_1 = 0x0, ///< 1x
-
247  GPU_TEVSCALE_2 = 0x1, ///< 2x
-
248  GPU_TEVSCALE_4 = 0x2, ///< 4x
-
249 } GPU_TEVSCALE;
-
250 
-
251 /// Creates a texture combiner source parameter from three sources.
-
252 #define GPU_TEVSOURCES(a,b,c) (((a))|((b)<<4)|((c)<<8))
-
253 /// Creates a texture combiner operand parameter from three operands.
-
254 #define GPU_TEVOPERANDS(a,b,c) (((a))|((b)<<4)|((c)<<8))
-
255 
-
256 /// Creates a light environment layer configuration parameter.
-
257 #define GPU_LIGHT_ENV_LAYER_CONFIG(n) ((n)+((n)==7))
-
258 /// Light shadow disable bits in GPUREG_LIGHT_CONFIG1.
-
259 #define GPU_LC1_SHADOWBIT(n) BIT(n)
-
260 /// Light spot disable bits in GPUREG_LIGHT_CONFIG1.
-
261 #define GPU_LC1_SPOTBIT(n) BIT((n)+8)
-
262 /// LUT disable bits in GPUREG_LIGHT_CONFIG1.
-
263 #define GPU_LC1_LUTBIT(n) BIT((n)+16)
-
264 /// Light distance attenuation disable bits in GPUREG_LIGHT_CONFIG1.
-
265 #define GPU_LC1_ATTNBIT(n) BIT((n)+24)
-
266 /// Creates a light permutation parameter.
-
267 #define GPU_LIGHTPERM(i,n) ((n) << (i))
-
268 /// Creates a light LUT input parameter.
-
269 #define GPU_LIGHTLUTINPUT(i,n) ((n) << ((i)*4))
-
270 /// Creates a light LUT index parameter.
-
271 #define GPU_LIGHTLUTIDX(c,i,o) ((o) | ((i) << 8) | ((c) << 11))
-
272 /// Creates a light color parameter from red, green, and blue components.
-
273 #define GPU_LIGHTCOLOR(r,g,b) (((b) & 0xFF) | (((g) << 10) & 0xFF) | (((r) << 20) & 0xFF))
-
274 
-
275 /// Fresnel options.
-
276 typedef enum
-
277 {
-
278  GPU_NO_FRESNEL = 0, ///< None.
-
279  GPU_PRI_ALPHA_FRESNEL = 1, ///< Primary alpha.
-
280  GPU_SEC_ALPHA_FRESNEL = 2, ///< Secondary alpha.
-
281  GPU_PRI_SEC_ALPHA_FRESNEL = 3, ///< Primary and secondary alpha.
- -
283 
-
284 /// Bump map modes.
-
285 typedef enum
-
286 {
-
287  GPU_BUMP_NOT_USED = 0, ///< Disabled.
-
288  GPU_BUMP_AS_BUMP = 1, ///< Bump as bump mapping.
-
289  GPU_BUMP_AS_TANG = 2, ///< Bump as tangent/normal mapping.
-
290 } GPU_BUMPMODE;
-
291 
-
292 /// LUT IDs.
-
293 typedef enum
-
294 {
-
295  GPU_LUT_D0 = 0, ///< D0 LUT.
-
296  GPU_LUT_D1 = 1, ///< D1 LUT.
-
297  GPU_LUT_SP = 2, ///< Spotlight LUT.
-
298  GPU_LUT_FR = 3, ///< Fresnel LUT.
-
299  GPU_LUT_RB = 4, ///< Reflection-Blue LUT.
-
300  GPU_LUT_RG = 5, ///< Reflection-Green LUT.
-
301  GPU_LUT_RR = 6, ///< Reflection-Red LUT.
-
302  GPU_LUT_DA = 7, ///< Distance attenuation LUT.
- -
304 
-
305 /// LUT inputs.
-
306 typedef enum
-
307 {
-
308  GPU_LUTINPUT_NH = 0, ///< Normal*HalfVector
-
309  GPU_LUTINPUT_VH = 1, ///< View*HalfVector
-
310  GPU_LUTINPUT_NV = 2, ///< Normal*View
-
311  GPU_LUTINPUT_LN = 3, ///< LightVector*Normal
-
312  GPU_LUTINPUT_SP = 4, ///< -LightVector*SpotlightVector
-
313  GPU_LUTINPUT_CP = 5, ///< cosine of phi
- -
315 
-
316 /// LUT scalers.
-
317 typedef enum
-
318 {
-
319  GPU_LUTSCALER_1x = 0, ///< 1x scale.
-
320  GPU_LUTSCALER_2x = 1, ///< 2x scale.
-
321  GPU_LUTSCALER_4x = 2, ///< 4x scale.
-
322  GPU_LUTSCALER_8x = 3, ///< 8x scale.
-
323  GPU_LUTSCALER_0_25x = 6, ///< 0.25x scale.
-
324  GPU_LUTSCALER_0_5x = 7, ///< 0.5x scale.
- -
326 
-
327 /// LUT selection.
-
328 typedef enum
-
329 {
-
330  GPU_LUTSELECT_COMMON = 0, ///< LUTs that are common to all lights.
-
331  GPU_LUTSELECT_SP = 1, ///< Spotlight LUT.
-
332  GPU_LUTSELECT_DA = 2, ///< Distance attenuation LUT.
- -
334 
-
335 /// Supported primitives.
-
336 typedef enum
-
337 {
-
338  GPU_TRIANGLES = 0x0000, ///< Triangles.
-
339  GPU_TRIANGLE_STRIP = 0x0100, ///< Triangle strip.
-
340  GPU_TRIANGLE_FAN = 0x0200, ///< Triangle fan.
-
341  GPU_GEOMETRY_PRIM = 0x0300, ///< Geometry shader primitive.
- -
343 
-
344 /// Shader types.
-
345 typedef enum
-
346 {
-
347  GPU_VERTEX_SHADER = 0x0, ///< Vertex shader.
-
348  GPU_GEOMETRY_SHADER = 0x1, ///< Geometry shader.
- -
Constant color - 1.
Definition: enums.h:133
-
Dot3. RGB only.
Definition: enums.h:238
-
Write all components.
Definition: enums.h:106
-
Normal*View.
Definition: enums.h:310
-
Secondary fragment color.
Definition: enums.h:185
+
198  GPU_CULL_NONE = 0, ///< Disabled.
+
199  GPU_CULL_FRONT_CCW = 1, ///< Front, counter-clockwise.
+
200  GPU_CULL_BACK_CCW = 2, ///< Back, counter-clockwise.
+
201 } GPU_CULLMODE;
+
202 
+
203 /// Creates a VBO attribute parameter from its index, size, and format.
+
204 #define GPU_ATTRIBFMT(i, n, f) (((((n)-1)<<2)|((f)&3))<<((i)*4))
+
205 
+
206 /// Texture combiner sources.
+
207 typedef enum
+
208 {
+
209  GPU_PRIMARY_COLOR = 0x00, ///< Primary color.
+
210  GPU_FRAGMENT_PRIMARY_COLOR = 0x01, ///< Primary fragment color.
+
211  GPU_FRAGMENT_SECONDARY_COLOR = 0x02, ///< Secondary fragment color.
+
212  GPU_TEXTURE0 = 0x03, ///< Texture unit 0.
+
213  GPU_TEXTURE1 = 0x04, ///< Texture unit 1.
+
214  GPU_TEXTURE2 = 0x05, ///< Texture unit 2.
+
215  GPU_TEXTURE3 = 0x06, ///< Texture unit 3.
+
216  GPU_PREVIOUS_BUFFER = 0x0D, ///< Previous buffer.
+
217  GPU_CONSTANT = 0x0E, ///< Constant value.
+
218  GPU_PREVIOUS = 0x0F, ///< Previous value.
+
219 } GPU_TEVSRC;
+
220 
+
221 /// Texture RGB combiner operands.
+
222 typedef enum
+
223 {
+
224  GPU_TEVOP_RGB_SRC_COLOR = 0x00, ///< Source color.
+
225  GPU_TEVOP_RGB_ONE_MINUS_SRC_COLOR = 0x01, ///< Source color - 1.
+
226  GPU_TEVOP_RGB_SRC_ALPHA = 0x02, ///< Source alpha.
+
227  GPU_TEVOP_RGB_ONE_MINUS_SRC_ALPHA = 0x03, ///< Source alpha - 1.
+
228  GPU_TEVOP_RGB_SRC_R = 0x04, ///< Source red.
+
229  GPU_TEVOP_RGB_ONE_MINUS_SRC_R = 0x05, ///< Source red - 1.
+
230  GPU_TEVOP_RGB_0x06 = 0x06, ///< Unknown.
+
231  GPU_TEVOP_RGB_0x07 = 0x07, ///< Unknown.
+
232  GPU_TEVOP_RGB_SRC_G = 0x08, ///< Source green.
+
233  GPU_TEVOP_RGB_ONE_MINUS_SRC_G = 0x09, ///< Source green - 1.
+
234  GPU_TEVOP_RGB_0x0A = 0x0A, ///< Unknown.
+
235  GPU_TEVOP_RGB_0x0B = 0x0B, ///< Unknown.
+
236  GPU_TEVOP_RGB_SRC_B = 0x0C, ///< Source blue.
+
237  GPU_TEVOP_RGB_ONE_MINUS_SRC_B = 0x0D, ///< Source blue - 1.
+
238  GPU_TEVOP_RGB_0x0E = 0x0E, ///< Unknown.
+
239  GPU_TEVOP_RGB_0x0F = 0x0F, ///< Unknown.
+
240 } GPU_TEVOP_RGB;
+
241 
+
242 /// Texture Alpha combiner operands.
+
243 typedef enum
+
244 {
+
245  GPU_TEVOP_A_SRC_ALPHA = 0x00, ///< Source alpha.
+
246  GPU_TEVOP_A_ONE_MINUS_SRC_ALPHA = 0x01, ///< Source alpha - 1.
+
247  GPU_TEVOP_A_SRC_R = 0x02, ///< Source red.
+
248  GPU_TEVOP_A_ONE_MINUS_SRC_R = 0x03, ///< Source red - 1.
+
249  GPU_TEVOP_A_SRC_G = 0x04, ///< Source green.
+
250  GPU_TEVOP_A_ONE_MINUS_SRC_G = 0x05, ///< Source green - 1.
+
251  GPU_TEVOP_A_SRC_B = 0x06, ///< Source blue.
+
252  GPU_TEVOP_A_ONE_MINUS_SRC_B = 0x07, ///< Source blue - 1.
+
253 } GPU_TEVOP_A;
+
254 
+
255 /// Texture combiner functions.
+
256 typedef enum
+
257 {
+
258  GPU_REPLACE = 0x00, ///< Replace.
+
259  GPU_MODULATE = 0x01, ///< Modulate.
+
260  GPU_ADD = 0x02, ///< Add.
+
261  GPU_ADD_SIGNED = 0x03, ///< Signed add.
+
262  GPU_INTERPOLATE = 0x04, ///< Interpolate.
+
263  GPU_SUBTRACT = 0x05, ///< Subtract.
+
264  GPU_DOT3_RGB = 0x06, ///< Dot3. RGB only.
+
265  GPU_MULTIPLY_ADD = 0x08, ///< Multiply then add.
+
266  GPU_ADD_MULTIPLY = 0x09, ///< Add then multiply.
+ +
268 
+
269 /// Texture scale factors.
+
270 typedef enum
+
271 {
+
272  GPU_TEVSCALE_1 = 0x0, ///< 1x
+
273  GPU_TEVSCALE_2 = 0x1, ///< 2x
+
274  GPU_TEVSCALE_4 = 0x2, ///< 4x
+
275 } GPU_TEVSCALE;
+
276 
+
277 /// Creates a texture combiner source parameter from three sources.
+
278 #define GPU_TEVSOURCES(a,b,c) (((a))|((b)<<4)|((c)<<8))
+
279 /// Creates a texture combiner operand parameter from three operands.
+
280 #define GPU_TEVOPERANDS(a,b,c) (((a))|((b)<<4)|((c)<<8))
+
281 
+
282 /// Creates a light environment layer configuration parameter.
+
283 #define GPU_LIGHT_ENV_LAYER_CONFIG(n) ((n)+((n)==7))
+
284 /// Light shadow disable bits in GPUREG_LIGHT_CONFIG1.
+
285 #define GPU_LC1_SHADOWBIT(n) BIT(n)
+
286 /// Light spot disable bits in GPUREG_LIGHT_CONFIG1.
+
287 #define GPU_LC1_SPOTBIT(n) BIT((n)+8)
+
288 /// LUT disable bits in GPUREG_LIGHT_CONFIG1.
+
289 #define GPU_LC1_LUTBIT(n) BIT((n)+16)
+
290 /// Light distance attenuation disable bits in GPUREG_LIGHT_CONFIG1.
+
291 #define GPU_LC1_ATTNBIT(n) BIT((n)+24)
+
292 /// Creates a light permutation parameter.
+
293 #define GPU_LIGHTPERM(i,n) ((n) << (i))
+
294 /// Creates a light LUT input parameter.
+
295 #define GPU_LIGHTLUTINPUT(i,n) ((n) << ((i)*4))
+
296 /// Creates a light LUT index parameter.
+
297 #define GPU_LIGHTLUTIDX(c,i,o) ((o) | ((i) << 8) | ((c) << 11))
+
298 /// Creates a light color parameter from red, green, and blue components.
+
299 #define GPU_LIGHTCOLOR(r,g,b) (((b) & 0xFF) | (((g) << 10) & 0xFF) | (((r) << 20) & 0xFF))
+
300 
+
301 /// Fresnel options.
+
302 typedef enum
+
303 {
+
304  GPU_NO_FRESNEL = 0, ///< None.
+
305  GPU_PRI_ALPHA_FRESNEL = 1, ///< Primary alpha.
+
306  GPU_SEC_ALPHA_FRESNEL = 2, ///< Secondary alpha.
+
307  GPU_PRI_SEC_ALPHA_FRESNEL = 3, ///< Primary and secondary alpha.
+ +
309 
+
310 /// Bump map modes.
+
311 typedef enum
+
312 {
+
313  GPU_BUMP_NOT_USED = 0, ///< Disabled.
+
314  GPU_BUMP_AS_BUMP = 1, ///< Bump as bump mapping.
+
315  GPU_BUMP_AS_TANG = 2, ///< Bump as tangent/normal mapping.
+
316 } GPU_BUMPMODE;
+
317 
+
318 /// LUT IDs.
+
319 typedef enum
+
320 {
+
321  GPU_LUT_D0 = 0, ///< D0 LUT.
+
322  GPU_LUT_D1 = 1, ///< D1 LUT.
+
323  GPU_LUT_SP = 2, ///< Spotlight LUT.
+
324  GPU_LUT_FR = 3, ///< Fresnel LUT.
+
325  GPU_LUT_RB = 4, ///< Reflection-Blue LUT.
+
326  GPU_LUT_RG = 5, ///< Reflection-Green LUT.
+
327  GPU_LUT_RR = 6, ///< Reflection-Red LUT.
+
328  GPU_LUT_DA = 7, ///< Distance attenuation LUT.
+ +
330 
+
331 /// LUT inputs.
+
332 typedef enum
+
333 {
+
334  GPU_LUTINPUT_NH = 0, ///< Normal*HalfVector
+
335  GPU_LUTINPUT_VH = 1, ///< View*HalfVector
+
336  GPU_LUTINPUT_NV = 2, ///< Normal*View
+
337  GPU_LUTINPUT_LN = 3, ///< LightVector*Normal
+
338  GPU_LUTINPUT_SP = 4, ///< -LightVector*SpotlightVector
+
339  GPU_LUTINPUT_CP = 5, ///< cosine of phi
+ +
341 
+
342 /// LUT scalers.
+
343 typedef enum
+
344 {
+
345  GPU_LUTSCALER_1x = 0, ///< 1x scale.
+
346  GPU_LUTSCALER_2x = 1, ///< 2x scale.
+
347  GPU_LUTSCALER_4x = 2, ///< 4x scale.
+
348  GPU_LUTSCALER_8x = 3, ///< 8x scale.
+
349  GPU_LUTSCALER_0_25x = 6, ///< 0.25x scale.
+
350  GPU_LUTSCALER_0_5x = 7, ///< 0.5x scale.
+ +
352 
+
353 /// LUT selection.
+
354 typedef enum
+
355 {
+
356  GPU_LUTSELECT_COMMON = 0, ///< LUTs that are common to all lights.
+
357  GPU_LUTSELECT_SP = 1, ///< Spotlight LUT.
+
358  GPU_LUTSELECT_DA = 2, ///< Distance attenuation LUT.
+ +
360 
+
361 /// Supported primitives.
+
362 typedef enum
+
363 {
+
364  GPU_TRIANGLES = 0x0000, ///< Triangles.
+
365  GPU_TRIANGLE_STRIP = 0x0100, ///< Triangle strip.
+
366  GPU_TRIANGLE_FAN = 0x0200, ///< Triangle fan.
+
367  GPU_GEOMETRY_PRIM = 0x0300, ///< Geometry shader primitive.
+ +
369 
+
370 /// Shader types.
+
371 typedef enum
+
372 {
+
373  GPU_VERTEX_SHADER = 0x0, ///< Vertex shader.
+
374  GPU_GEOMETRY_SHADER = 0x1, ///< Geometry shader.
+ +
Constant color - 1.
Definition: enums.h:151
+
Dot3. RGB only.
Definition: enums.h:264
+
Write all components.
Definition: enums.h:124
+
Normal*View.
Definition: enums.h:336
+
Secondary fragment color.
Definition: enums.h:211
8-bit Luminance + 8-bit Alpha
Definition: enums.h:51
-
Triangles.
Definition: enums.h:338
-
GPU_CULLMODE
Cull modes.
Definition: enums.h:170
-
Distance attenuation LUT.
Definition: enums.h:332
-
Exclude pixels inside the scissor box.
Definition: enums.h:78
-
D1 LUT.
Definition: enums.h:296
-
Back, counter-clockwise.
Definition: enums.h:174
-
Invert value. (~old_stencil)
Definition: enums.h:91
-
Spotlight LUT.
Definition: enums.h:297
-
Multiply then add.
Definition: enums.h:239
-
Source red - 1.
Definition: enums.h:203
-
Add then multiply.
Definition: enums.h:240
-
Source blue.
Definition: enums.h:225
-
Increment value. (old_stencil + 1 saturated to [0, 255])
Definition: enums.h:89
-
Triangle strip.
Definition: enums.h:339
-
GPU_TEVOP_RGB
Texture RGB combiner operands.
Definition: enums.h:196
+
Triangles.
Definition: enums.h:364
+
GPU_CULLMODE
Cull modes.
Definition: enums.h:196
+
Distance attenuation LUT.
Definition: enums.h:358
+
Exclude pixels inside the scissor box.
Definition: enums.h:96
+
D1 LUT.
Definition: enums.h:322
+
Back, counter-clockwise.
Definition: enums.h:200
+
Invert value. (~old_stencil)
Definition: enums.h:109
+
Spotlight LUT.
Definition: enums.h:323
+
Multiply then add.
Definition: enums.h:265
+
Source red - 1.
Definition: enums.h:229
+
Add then multiply.
Definition: enums.h:266
+
Source blue.
Definition: enums.h:251
+
Increment value. (old_stencil + 1 saturated to [0, 255])
Definition: enums.h:107
+
Triangle strip.
Definition: enums.h:365
+
GPU_TEVOP_RGB
Texture RGB combiner operands.
Definition: enums.h:222
4-bit Luminance + 4-bit Alpha
Definition: enums.h:55
-
Bump as bump mapping.
Definition: enums.h:288
-
Source blue.
Definition: enums.h:210
-
#define GPU_LIGHTLUTINPUT(i, n)
Creates a light LUT input parameter.
Definition: enums.h:269
-
Source green.
Definition: enums.h:223
-
Pass if less than.
Definition: enums.h:68
-
Add colors.
Definition: enums.h:112
-
Distance attenuation LUT.
Definition: enums.h:302
+
Bump as bump mapping.
Definition: enums.h:314
+
Source blue.
Definition: enums.h:236
+
#define GPU_LIGHTLUTINPUT(i, n)
Creates a light LUT input parameter.
Definition: enums.h:295
+
Source green.
Definition: enums.h:249
+
Pass if less than.
Definition: enums.h:86
+
24-bit Depth + 8-bit Stencil
Definition: enums.h:76
+
Add colors.
Definition: enums.h:130
+
Distance attenuation LUT.
Definition: enums.h:328
Texture unit 2.
Definition: enums.h:40
-
Use the minimum color.
Definition: enums.h:115
+
Use the minimum color.
Definition: enums.h:133
4-bit Luminance
Definition: enums.h:56
-
Write alpha.
Definition: enums.h:102
-
Source alpha.
Definition: enums.h:219
-
Source red.
Definition: enums.h:202
-
Previous buffer.
Definition: enums.h:190
-
Source red.
Definition: enums.h:221
-
4x scale.
Definition: enums.h:321
-
Destination color.
Definition: enums.h:126
-
GPU_STENCILOP
Stencil operations.
Definition: enums.h:84
-
2x
Definition: enums.h:247
-
Constant alpha.
Definition: enums.h:134
-
Pass if greater than or equal.
Definition: enums.h:71
-
GPU_FRESNELSEL
Fresnel options.
Definition: enums.h:276
-
Constant color.
Definition: enums.h:132
+
Write alpha.
Definition: enums.h:120
+
GPU_FRAGOPMODE
Fragment operation modes.
Definition: enums.h:179
+
Source alpha.
Definition: enums.h:245
+
Source red.
Definition: enums.h:228
+
OpenGL mode.
Definition: enums.h:181
+
Previous buffer.
Definition: enums.h:216
+
Source red.
Definition: enums.h:247
+
4x scale.
Definition: enums.h:347
+
Destination color.
Definition: enums.h:144
+
GPU_STENCILOP
Stencil operations.
Definition: enums.h:102
+
2x
Definition: enums.h:273
+
Constant alpha.
Definition: enums.h:152
+
Pass if greater than or equal.
Definition: enums.h:89
+
GPU_FRESNELSEL
Fresnel options.
Definition: enums.h:302
+
Constant color.
Definition: enums.h:150
Nearest-neighbor interpolation.
Definition: enums.h:22
-
GPU_BLENDEQUATION
Blend modes.
Definition: enums.h:110
-
Use the maximum color.
Definition: enums.h:116
-
Write depth.
Definition: enums.h:103
-
Source alpha - 1.
Definition: enums.h:201
-
32-bit float.
Definition: enums.h:166
-
Destination alpha.
Definition: enums.h:130
-
Primary color.
Definition: enums.h:183
-
2x scale.
Definition: enums.h:320
-
Source blue - 1.
Definition: enums.h:211
-
Secondary alpha.
Definition: enums.h:280
-
GPU_TESTFUNC
Test functions.
Definition: enums.h:62
-
Bitwise OR.
Definition: enums.h:151
+
GPU_BLENDEQUATION
Blend modes.
Definition: enums.h:128
+
Use the maximum color.
Definition: enums.h:134
+
Write depth.
Definition: enums.h:121
+
Source alpha - 1.
Definition: enums.h:227
+
32-bit float.
Definition: enums.h:192
+
Destination alpha.
Definition: enums.h:148
+
Primary color.
Definition: enums.h:209
+
8-bit Red + 8-bit Green + 8-bit Blue
Definition: enums.h:65
+
2x scale.
Definition: enums.h:346
+
Source blue - 1.
Definition: enums.h:237
+
Secondary alpha.
Definition: enums.h:306
+
GPU_TESTFUNC
Test functions.
Definition: enums.h:80
+
Bitwise OR.
Definition: enums.h:169
Clamps to border.
Definition: enums.h:30
-
Unknown.
Definition: enums.h:213
-
GPU_BLENDFACTOR
Blend factors.
Definition: enums.h:120
-
Constant value.
Definition: enums.h:191
-
Reflection-Green LUT.
Definition: enums.h:300
-
Unknown.
Definition: enums.h:204
-
GPU_LOGICOP
Logical operations.
Definition: enums.h:140
-
Fresnel LUT.
Definition: enums.h:298
-
Previous value.
Definition: enums.h:192
-
LUTs that are common to all lights.
Definition: enums.h:330
-
Subtract.
Definition: enums.h:237
-
GPU_SHADER_TYPE
Shader types.
Definition: enums.h:345
+
Unknown.
Definition: enums.h:239
+
GPU_BLENDFACTOR
Blend factors.
Definition: enums.h:138
+
Constant value.
Definition: enums.h:217
+
Reflection-Green LUT.
Definition: enums.h:326
+
Unknown.
Definition: enums.h:230
+
GPU_LOGICOP
Logical operations.
Definition: enums.h:158
+
Fresnel LUT.
Definition: enums.h:324
+
Previous value.
Definition: enums.h:218
+
GPU_COLORBUF
Supported color buffer formats.
Definition: enums.h:62
+
LUTs that are common to all lights.
Definition: enums.h:356
+
Subtract.
Definition: enums.h:263
+
Gas mode (?).
Definition: enums.h:182
+
GPU_SHADER_TYPE
Shader types.
Definition: enums.h:371
Texture unit 1.
Definition: enums.h:39
-
Pass if equal.
Definition: enums.h:66
+
Pass if equal.
Definition: enums.h:84
8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha
Definition: enums.h:46
-
Destination alpha - 1.
Definition: enums.h:131
-
Bitwise AND.
Definition: enums.h:143
-
Clear.
Definition: enums.h:142
-
GPU_SCISSORMODE
Scissor test modes.
Definition: enums.h:75
-
Never pass.
Definition: enums.h:64
-
Inverted bitwise AND.
Definition: enums.h:155
-
Texture unit 0.
Definition: enums.h:186
-
Source red - 1.
Definition: enums.h:222
-
Reverse-subtract colors.
Definition: enums.h:114
+
Destination alpha - 1.
Definition: enums.h:149
+
Bitwise AND.
Definition: enums.h:161
+
Clear.
Definition: enums.h:160
+
GPU_SCISSORMODE
Scissor test modes.
Definition: enums.h:93
+
Never pass.
Definition: enums.h:82
+
Inverted bitwise AND.
Definition: enums.h:173
+
Texture unit 0.
Definition: enums.h:212
+
Source red - 1.
Definition: enums.h:248
+
Reverse-subtract colors.
Definition: enums.h:132
+
16-bit Depth
Definition: enums.h:74
Texture unit 0.
Definition: enums.h:38
-
Increment value. (old_stencil + 1)
Definition: enums.h:92
-
Source alpha.
Definition: enums.h:128
-
LightVector*Normal.
Definition: enums.h:311
-
Destination color - 1.
Definition: enums.h:127
-
Signed add.
Definition: enums.h:235
-
16-bit short.
Definition: enums.h:165
-
Pass if not equal.
Definition: enums.h:67
-
Replace.
Definition: enums.h:232
-
Source alpha - 1.
Definition: enums.h:220
+
Increment value. (old_stencil + 1)
Definition: enums.h:110
+
Source alpha.
Definition: enums.h:146
+
LightVector*Normal.
Definition: enums.h:337
+
Destination color - 1.
Definition: enums.h:145
+
Signed add.
Definition: enums.h:261
+
16-bit short.
Definition: enums.h:191
+
Pass if not equal.
Definition: enums.h:85
+
Replace.
Definition: enums.h:258
+
Source alpha - 1.
Definition: enums.h:246
GPU_TEXTURE_FILTER_PARAM
Texture filters.
Definition: enums.h:20
-
GPU_COMBINEFUNC
Texture combiner functions.
Definition: enums.h:230
+
GPU_COMBINEFUNC
Texture combiner functions.
Definition: enums.h:256
ETC1 texture compression.
Definition: enums.h:57
-
Spotlight LUT.
Definition: enums.h:331
+
Spotlight LUT.
Definition: enums.h:357
5-bit Red + 6-bit Green + 5-bit Blue
Definition: enums.h:49
-
View*HalfVector.
Definition: enums.h:309
-
Set.
Definition: enums.h:146
-
Write red.
Definition: enums.h:99
-
Source green - 1.
Definition: enums.h:207
-
Copy.
Definition: enums.h:145
-
Source color - 1.
Definition: enums.h:199
-
Decrement value. (old_stencil - 1)
Definition: enums.h:93
+
View*HalfVector.
Definition: enums.h:335
+
Set.
Definition: enums.h:164
+
Write red.
Definition: enums.h:117
+
Source green - 1.
Definition: enums.h:233
+
Copy.
Definition: enums.h:163
+
Source color - 1.
Definition: enums.h:225
+
Decrement value. (old_stencil - 1)
Definition: enums.h:111
+
4-bit Red + 4-bit Green + 4-bit Blue + 4-bit Alpha
Definition: enums.h:68
8-bit Hi + 8-bit Lo
Definition: enums.h:52
-
GPU_FORMATS
Supported component formats.
Definition: enums.h:161
-
One.
Definition: enums.h:123
-
Pass if less than or equal.
Definition: enums.h:69
-
Bitwise NOR.
Definition: enums.h:152
-
Geometry shader primitive.
Definition: enums.h:341
-
Reverse bitwise AND.
Definition: enums.h:144
-
GPU_LIGHTLUTSCALER
LUT scalers.
Definition: enums.h:317
-
Exclude pixels outside of the scissor box.
Definition: enums.h:80
-
Reflection-Red LUT.
Definition: enums.h:301
-
Write all color components.
Definition: enums.h:105
-
Primary and secondary alpha.
Definition: enums.h:281
+
GPU_FORMATS
Supported component formats.
Definition: enums.h:187
+
One.
Definition: enums.h:141
+
Pass if less than or equal.
Definition: enums.h:87
+
Bitwise NOR.
Definition: enums.h:170
+
Geometry shader primitive.
Definition: enums.h:367
+
Reverse bitwise AND.
Definition: enums.h:162
+
GPU_LIGHTLUTSCALER
LUT scalers.
Definition: enums.h:343
+
Exclude pixels outside of the scissor box.
Definition: enums.h:98
+
Reflection-Red LUT.
Definition: enums.h:327
+
Write all color components.
Definition: enums.h:123
+
Primary and secondary alpha.
Definition: enums.h:307
4-bit Red + 4-bit Green + 4-bit Blue + 4-bit Alpha
Definition: enums.h:50
-
Source color.
Definition: enums.h:198
-
GPU_Primitive_t
Supported primitives.
Definition: enums.h:336
-
Add.
Definition: enums.h:234
-
Primary alpha.
Definition: enums.h:279
-
GPU_LIGHTLUTSELECT
LUT selection.
Definition: enums.h:328
+
Source color.
Definition: enums.h:224
+
GPU_Primitive_t
Supported primitives.
Definition: enums.h:362
+
Add.
Definition: enums.h:260
+
Primary alpha.
Definition: enums.h:305
+
GPU_LIGHTLUTSELECT
LUT selection.
Definition: enums.h:354
Clamps to edge.
Definition: enums.h:29
-
Interpolate.
Definition: enums.h:236
-
Replace value. (ref)
Definition: enums.h:88
-
Unknown.
Definition: enums.h:209
-
8-bit unsigned byte.
Definition: enums.h:164
-
Modulate.
Definition: enums.h:233
-
Triangle fan.
Definition: enums.h:340
-
Write green.
Definition: enums.h:100
-
Constant alpha - 1.
Definition: enums.h:135
-
No operation.
Definition: enums.h:148
-
Invert.
Definition: enums.h:149
-
Texture unit 3.
Definition: enums.h:189
-
0.25x scale.
Definition: enums.h:323
-
Texture unit 2.
Definition: enums.h:188
-
Geometry shader.
Definition: enums.h:348
-
Bitwise NAND.
Definition: enums.h:150
-
GPU_TEVSRC
Texture combiner sources.
Definition: enums.h:181
-
Inverted copy.
Definition: enums.h:147
-
GPU_WRITEMASK
Pixel write mask.
Definition: enums.h:97
-
Unknown.
Definition: enums.h:205
-
1x scale.
Definition: enums.h:319
-
Subtract colors.
Definition: enums.h:113
-
0.5x scale.
Definition: enums.h:324
-
Source color - 1.
Definition: enums.h:125
-
Pass if greater than.
Definition: enums.h:70
-
Vertex shader.
Definition: enums.h:347
+
Interpolate.
Definition: enums.h:262
+
Replace value. (ref)
Definition: enums.h:106
+
Unknown.
Definition: enums.h:235
+
8-bit unsigned byte.
Definition: enums.h:190
+
Modulate.
Definition: enums.h:259
+
Triangle fan.
Definition: enums.h:366
+
Write green.
Definition: enums.h:118
+
Constant alpha - 1.
Definition: enums.h:153
+
No operation.
Definition: enums.h:166
+
Invert.
Definition: enums.h:167
+
Texture unit 3.
Definition: enums.h:215
+
0.25x scale.
Definition: enums.h:349
+
Texture unit 2.
Definition: enums.h:214
+
Geometry shader.
Definition: enums.h:374
+
Bitwise NAND.
Definition: enums.h:168
+
GPU_DEPTHBUF
Supported depth buffer formats.
Definition: enums.h:72
+
GPU_TEVSRC
Texture combiner sources.
Definition: enums.h:207
+
Shadow mode (?).
Definition: enums.h:183
+
Inverted copy.
Definition: enums.h:165
+
GPU_WRITEMASK
Pixel write mask.
Definition: enums.h:115
+
5-bit Red + 5-bit Green + 5-bit Blue + 1-bit Alpha
Definition: enums.h:66
+
Unknown.
Definition: enums.h:231
+
1x scale.
Definition: enums.h:345
+
Subtract colors.
Definition: enums.h:131
+
0.5x scale.
Definition: enums.h:350
+
Source color - 1.
Definition: enums.h:143
+
Pass if greater than.
Definition: enums.h:88
+
Vertex shader.
Definition: enums.h:373
5-bit Red + 5-bit Green + 5-bit Blue + 1-bit Alpha
Definition: enums.h:48
-
Always pass.
Definition: enums.h:65
-
Texture unit 1.
Definition: enums.h:187
-
Reverse bitwise OR.
Definition: enums.h:156
-
Front, counter-clockwise.
Definition: enums.h:173
-
cosine of phi
Definition: enums.h:313
+
Always pass.
Definition: enums.h:83
+
Texture unit 1.
Definition: enums.h:213
+
Reverse bitwise OR.
Definition: enums.h:174
+
Front, counter-clockwise.
Definition: enums.h:199
+
cosine of phi
Definition: enums.h:339
GPU_TEXUNIT
Supported texture units.
Definition: enums.h:36
-
Keep old value. (old_stencil)
Definition: enums.h:86
-
Source alpha.
Definition: enums.h:200
-
Unknown.
Definition: enums.h:212
-
4x
Definition: enums.h:248
-
GPU_TEXCOLOR
Supported pixel formats.
Definition: enums.h:44
-
Source color.
Definition: enums.h:124
-
Source blue - 1.
Definition: enums.h:226
-
Bitwise XOR.
Definition: enums.h:153
-
Source green - 1.
Definition: enums.h:224
-
Normal*HalfVector.
Definition: enums.h:308
-
1x
Definition: enums.h:246
-
Write blue.
Definition: enums.h:101
-
GPU_BUMPMODE
Bump map modes.
Definition: enums.h:285
-
Primary fragment color.
Definition: enums.h:184
-
8x scale.
Definition: enums.h:322
-
8-bit byte.
Definition: enums.h:163
-
GPU_TEVOP_A
Texture Alpha combiner operands.
Definition: enums.h:217
+
Keep old value. (old_stencil)
Definition: enums.h:104
+
Source alpha.
Definition: enums.h:226
+
Unknown.
Definition: enums.h:238
+
4x
Definition: enums.h:274
+
GPU_TEXCOLOR
Supported texture formats.
Definition: enums.h:44
+
Source color.
Definition: enums.h:142
+
5-bit Red + 6-bit Green + 5-bit Blue
Definition: enums.h:67
+
8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha
Definition: enums.h:64
+
Source blue - 1.
Definition: enums.h:252
+
Bitwise XOR.
Definition: enums.h:171
+
Source green - 1.
Definition: enums.h:250
+
Normal*HalfVector.
Definition: enums.h:334
+
1x
Definition: enums.h:272
+
Write blue.
Definition: enums.h:119
+
GPU_BUMPMODE
Bump map modes.
Definition: enums.h:311
+
Primary fragment color.
Definition: enums.h:210
+
8x scale.
Definition: enums.h:348
+
8-bit byte.
Definition: enums.h:189
+
GPU_TEVOP_A
Texture Alpha combiner operands.
Definition: enums.h:243
Repeats with mirrored texture.
Definition: enums.h:32
GPU_TEXTURE_WRAP_PARAM
Texture wrap modes.
Definition: enums.h:27
-
D0 LUT.
Definition: enums.h:295
-
Saturated alpha.
Definition: enums.h:136
+
D0 LUT.
Definition: enums.h:321
+
Saturated alpha.
Definition: enums.h:154
Linear interpolation.
Definition: enums.h:23
-
Source green.
Definition: enums.h:206
-
Zero.
Definition: enums.h:122
-
Zero. (0)
Definition: enums.h:87
-
GPU_LIGHTLUTID
LUT IDs.
Definition: enums.h:293
+
Source green.
Definition: enums.h:232
+
Zero.
Definition: enums.h:140
+
Zero. (0)
Definition: enums.h:105
+
GPU_LIGHTLUTID
LUT IDs.
Definition: enums.h:319
8-bit Alpha
Definition: enums.h:54
-
Bump as tangent/normal mapping.
Definition: enums.h:289
-
Inverted bitwize OR.
Definition: enums.h:157
+
Bump as tangent/normal mapping.
Definition: enums.h:315
+
Inverted bitwize OR.
Definition: enums.h:175
Repeats texture.
Definition: enums.h:31
-
Disabled.
Definition: enums.h:172
-
Disable.
Definition: enums.h:77
-
-LightVector*SpotlightVector
Definition: enums.h:312
-
Equivalent.
Definition: enums.h:154
-
GPU_TEVSCALE
Texture scale factors.
Definition: enums.h:244
-
Source alpha - 1.
Definition: enums.h:129
+
Disabled.
Definition: enums.h:198
+
Disable.
Definition: enums.h:95
+
-LightVector*SpotlightVector
Definition: enums.h:338
+
Equivalent.
Definition: enums.h:172
+
GPU_TEVSCALE
Texture scale factors.
Definition: enums.h:270
+
Source alpha - 1.
Definition: enums.h:147
8-bit Red + 8-bit Green + 8-bit Blue
Definition: enums.h:47
-
Reflection-Blue LUT.
Definition: enums.h:299
-
None.
Definition: enums.h:278
-
Disabled.
Definition: enums.h:287
-
Decrement value. (old_stencil - 1 saturated to [0, 255])
Definition: enums.h:90
+
Reflection-Blue LUT.
Definition: enums.h:325
+
None.
Definition: enums.h:304
+
Disabled.
Definition: enums.h:313
+
Decrement value. (old_stencil - 1 saturated to [0, 255])
Definition: enums.h:108
8-bit Luminance
Definition: enums.h:53
+
24-bit Depth
Definition: enums.h:75
ETC1 texture compression + 4-bit Alpha.
Definition: enums.h:58
-
Unknown.
Definition: enums.h:208
+
Unknown.
Definition: enums.h:234