PSPSDK 2025-06-26
Loading...
Searching...
No Matches
guInternal.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * Copyright (c) 2005 Jesper Svennevid
7 */
8
9#ifndef __guInternal_h__
10#define __guInternal_h__
11
12#include "pspgu.h"
13
14typedef void (*GuCallback)(int);
15
28
29typedef struct
30{
31 unsigned int *start;
32 unsigned int *current;
35
36typedef struct
37{
40 int scissor_start[2];
41 int scissor_end[2];
49 int sprite_mode[4];
50 unsigned int clear_color;
51 unsigned int clear_stencil;
52 unsigned int clear_depth;
54} GuContext;
55
56typedef struct
57{
64 int width;
65 int height;
67
68extern GuContext gu_contexts[3];
69extern int ge_list_executed[2];
70extern void *ge_edram_address;
73extern int gu_curr_context;
74extern int gu_init;
75extern int gu_display_on;
76extern int gu_call_mode;
77extern int gu_states;
79
80extern unsigned int *gu_object_stack[];
81extern int gu_object_stack_depth;
82
83void callbackSig(int id, void *arg);
84void callbackFin(int id, void *arg);
85
86typedef enum GECommand
87{
88 /* No operation */
89 NOP = 0x0,
90 /* Vertex data */
91 VADDR = 0x1,
92 /* Index data */
93 IADDR = 0x2,
94 /* Draw Primitive */
95 PRIM = 0x4,
96 /* Draw Bezier surface */
97 BEZIER = 0x5,
98 /* Draw Spline surface */
99 SPLINE = 0x6,
100 /* Bounding Box */
102 /* Jump */
103 JUMP = 0x8,
104 /* Conditional Jump */
105 BJUMP = 0x9,
106 /* List Call */
107 CALL = 0xa,
108 /* List Return */
109 RET = 0xb,
110 /* End reading */
111 END = 0xc,
112 /* Signal interrupt */
113 SIGNAL = 0xe,
114 /* Finish drawing */
115 FINISH = 0xf,
116 /* Address base */
117 BASE = 0x10,
118 /* Vertex type */
119 VERTEX_TYPE = 0x12,
120 /* Offset address */
121 OFFSET_ADDR = 0x13,
122 /* Origin address */
123 ORIGIN = 0x14,
124 /* Drawing region 1, origin */
125 REGION1 = 0x15,
126 /* Drawing region 2, end */
127 REGION2 = 0x16,
128
129 /* Lighting enable */
131 /* Light 0 enable */
133 /* Light 1 enable */
135 /* Light 2 enable */
137 /* Light 3 enable */
139 /* Clipping enable */
141 /* Culling enable */
143 /* Texture mapping enable */
145 /* Fog enable */
146 FOG_ENABLE = 0x1f,
147 /* Dithering enable */
149 /* Alpha blending enable */
151 /* Alpha testing enable */
153 /* Z testing enable */
155 /* Stencil testing enable */
157 /* Anti-aliasing enable */
159 /* Patch culling enable */
161 /* Color testing enable */
163 /* Logical operation enable */
165
166 /* Bone matrix number */
168 /* Bone matrix data */
170 /* Morph weight 0 */
172 /* Morph weight 1 */
174 /* Morph weight 2 */
176 /* Morph weight 3 */
178 /* Morph weight 4 */
180 /* Morph weight 5 */
182 /* Morph weight 6 */
184 /* Morph weight 7 */
186
187 /* Patch division count */
189 /* Patch primitive type */
191 /* Patch facing */
193 /* World matrix number */
195 /* World matrix data */
197 /* View matrix number */
199 /* View matrix data */
201 /* Projection matrix number */
203 /* Projection matrix data */
205 /* Texture generation matrix number */
207 /* Texture generation matrix data */
209
210 /* Viewport X scale */
212 /* Viewport Y scale */
214 /* Viewport Z scale */
216 /* Viewport X center */
218 /* Viewport Y center */
220 /* Viewport Z center */
222 /* Texture scale U */
223 TEX_SCALE_U = 0x48,
224 /* Texture scale V */
225 TEX_SCALE_V = 0x49,
226 /* Texture offset U */
228 /* Texture offset V */
230 /* Screen Offset X */
231 OFFSET_X = 0x4c,
232 /* Screen Offset Y */
233 OFFSET_Y = 0x4d,
234
235 /* Shade mode */
236 SHADE_MODE = 0x50,
237 /* Normal reverse */
239 /* Material color */
241 /* Material emissive */
243 /* Ambient color */
245 /* Material diffuse */
247 /* Material specular */
249 /* Ambient alpha */
251 /* Material specular coefficient */
253 /* Ambient light color */
255 /* Ambient light alpha */
257 /* Light mode */
258 LIGHT_MODE = 0x5e,
259
260 /* Light type 0 */
261 LIGHT_TYPE0 = 0x5f,
262 /* Light type 1 */
263 LIGHT_TYPE1 = 0x60,
264 /* Light type 2 */
265 LIGHT_TYPE2 = 0x61,
266 /* Light type 3 */
267 LIGHT_TYPE3 = 0x62,
268 /* Light 0 X */
269 LIGHT0_X = 0x63,
270 /* Light 0 Y */
271 LIGHT0_Y = 0x64,
272 /* Light 0 Z */
273 LIGHT0_Z = 0x65,
274 /* Light 1 X */
275 LIGHT1_X = 0x66,
276 /* Light 1 Y */
277 LIGHT1_Y = 0x67,
278 /* Light 1 Z */
279 LIGHT1_Z = 0x68,
280 /* Light 2 X */
281 LIGHT2_X = 0x69,
282 /* Light 2 Y */
283 LIGHT2_Y = 0x6a,
284 /* Light 2 Z */
285 LIGHT2_Z = 0x6b,
286 /* Light 3 X */
287 LIGHT3_X = 0x6c,
288 /* Light 3 Y */
289 LIGHT3_Y = 0x6d,
290 /* Light 3 Z */
291 LIGHT3_Z = 0x6e,
292
293 /* Light 0 direction X */
295 /* Light 0 direction Y */
297 /* Light 0 direction Z */
299 /* Light 1 direction X */
301 /* Light 1 direction Y */
303 /* Light 1 direction Z */
305 /* Light 2 direction X */
307 /* Light 2 direction Y */
309 /* Light 2 direction Z */
311 /* Light 3 direction X */
313 /* Light 3 direction Y */
315 /* Light 3 direction Z */
317
318 /* Light 0 constant attenuation */
320 /* Light 0 linear attenuation */
322 /* Light 0 quadratic attenuation */
324 /* Light 1 constant attenuation */
326 /* Light 1 linear attenuation */
328 /* Light 1 quadratic attenuation */
330 /* Light 2 constant attenuation */
332 /* Light 2 linear attenuation */
334 /* Light 2 quadratic attenuation */
336 /* Light 3 constant attenuation */
338 /* Light 3 linear attenuation */
340 /* Light 3 quadratic attenuation */
342
343 /* Light 0 exponent attenuation */
345 /* Light 1 exponent attenuation */
347 /* Light 2 exponent attenuation */
349 /* Light 3 exponent attenuation */
351
352 /* Light 0 cutoff attenuation */
354 /* Light 1 cutoff attenuation */
356 /* Light 2 cutoff attenuation */
358 /* Light 3 cutoff attenuation */
360
361 /* Light 0 ambient */
363 /* Light 0 diffuse */
365 /* Light 0 specular */
367 /* Light 1 ambient */
369 /* Light 1 diffuse */
371 /* Light 1 specular */
373 /* Light 2 ambient */
375 /* Light 2 diffuse */
377 /* Light 2 specular */
379 /* Light 3 ambient */
381 /* Light 3 diffuse */
383 /* Light 3 specular */
385
386 /* Culling */
387 CULL = 0x9b,
388
389 /* Frame buffer pointer */
391 /* Frame buffer width */
393 /* Z buffer pointer */
394 Z_BUF_PTR = 0x9e,
395 /* Z buffer width */
396 Z_BUF_WIDTH = 0x9f,
397
398 /* Texture address 0 */
399 TEX_ADDR0 = 0xa0,
400 /* Texture address 1 */
401 TEX_ADDR1 = 0xa1,
402 /* Texture address 2 */
403 TEX_ADDR2 = 0xa2,
404 /* Texture address 3 */
405 TEX_ADDR3 = 0xa3,
406 /* Texture address 4 */
407 TEX_ADDR4 = 0xa4,
408 /* Texture address 5 */
409 TEX_ADDR5 = 0xa5,
410 /* Texture address 6 */
411 TEX_ADDR6 = 0xa6,
412 /* Texture address 7 */
413 TEX_ADDR7 = 0xa7,
414 /* Texture buffer width 0 */
416 /* Texture buffer width 1 */
418 /* Texture buffer width 2 */
420 /* Texture buffer width 3 */
422 /* Texture buffer width 4 */
424 /* Texture buffer width 5 */
426 /* Texture buffer width 6 */
428 /* Texture buffer width 7 */
430
431 /* CLUT buffer pointer */
433 /* CLUT buffer width */
435
436 /* Transfer source */
438 /* Transfer source width */
440 /* Transfer destination */
442 /* Transfer destination width */
444
445 /* Texture size 0 */
446 TEX_SIZE0 = 0xb8,
447 /* Texture size 1 */
448 TEX_SIZE1 = 0xb9,
449 /* Texture size 2 */
450 TEX_SIZE2 = 0xba,
451 /* Texture size 3 */
452 TEX_SIZE3 = 0xbb,
453 /* Texture size 4 */
454 TEX_SIZE4 = 0xbc,
455 /* Texture size 5 */
456 TEX_SIZE5 = 0xbd,
457 /* Texture size 6 */
458 TEX_SIZE6 = 0xbe,
459 /* Texture size 7 */
460 TEX_SIZE7 = 0xbf,
461
462 /* Texture map mode */
464 /* Texture shade mapping */
466 /* Texture mode */
467 TEX_MODE = 0xc2,
468 /* Texture format */
469 TEX_FORMAT = 0xc3,
470 /* Load CLUT */
471 CLUT_LOAD = 0xc4,
472 /* CLUT format */
473 CLUT_FORMAT = 0xc5,
474 /* Texture filter */
475 TEX_FILTER = 0xc6,
476 /* Texture wrap */
477 TEX_WRAP = 0xc7,
478 /* Texture level */
479 TEX_LEVEL = 0xc8,
480 /* Texture function */
481 TEX_FUNC = 0xc9,
482 /* Texture environment color */
484 /* Texture flush */
485 TEX_FLUSH = 0xcb,
486 /* Texture sync */
487 TEX_SYNC = 0xcc,
488
489 /* Fog 1 */
490 FOG1 = 0xcd,
491 /* Fog 2 */
492 FOG2 = 0xce,
493 /* Fog color */
494 FOG_COLOR = 0xcf,
495 /* Texture LOD slope */
497
498 /* Frame buffer pixel format */
500 /* Clear mode */
501 CLEAR_MODE = 0xd3,
502 /* Scissor 1 */
503 SCISSOR1 = 0xd4,
504 /* Scissor 2 */
505 SCISSOR2 = 0xd5,
506
507 /* Minimum Z */
508 MIN_Z = 0xd6,
509 /* Maximum Z */
510 MAX_Z = 0xd7,
511 /* Color test */
512 COLOR_TEST = 0xd8,
513 /* Color reference */
514 COLOR_REF = 0xd9,
515 /* Color test mask */
517 /* Alpha test */
518 ALPHA_TEST = 0xdb,
519 /* Stencil test */
521 /* Stencil operation */
522 STENCIL_OP = 0xdd,
523 /* Z test */
524 Z_TEST = 0xde,
525 /* Blend mode */
526 BLEND_MODE = 0xdf,
527 /* Blend fixed A */
529 /* Blend fixed B */
531 /* Dither 0 */
532 DITH0 = 0xe2,
533 /* Dither 1 */
534 DITH1 = 0xe3,
535 /* Dither 2 */
536 DITH2 = 0xe4,
537 /* Dither 3 */
538 DITH3 = 0xe5,
539
540 /* Logical operation */
541 LOGIC_OP = 0xe6,
542 /* Z mask */
543 Z_MASK = 0xe7,
544 /* Mask color */
545 MASK_COLOR = 0xe8,
546 /* Mask alpha */
547 MASK_ALPHA = 0xe9,
548
549 /* Transfer start */
551 /* Transfer source offset */
553 /* Transfer destination offset */
555 /* Transfer format */
557 /* Transfer size */
559
560 /* Transfer flip */
562 /* Transfer out size */
564 /* Transfer out format */
566 /* Vertex weight */
568 /* Vertex weight address */
570 /* Vertex weight size */
572 /* Vertex weight type */
574 /* Vertex weight model */
576 /* Vertex weight normalize */
578 /* Vertex weight offset */
580 /* Vertex weight scale */
582 /* Vertex weight matrix */
584 /* Vertex weight matrix address */
586 /* Vertex weight matrix size */
588 /* Vertex weight matrix type */
590 /* Vertex weight matrix model */
592 /* Vertex weight matrix normalize */
595
596static inline void sendCommandi(GECommand cmd, int argument)
597{
598 *(gu_list->current++) = (cmd << 24) | (argument & 0xffffff);
599}
600
601static inline void sendCommandf(GECommand cmd, float argument)
602{
603 union
604 {
605 float f;
606 unsigned int i;
607 } t;
608 t.f = argument;
609
610 sendCommandi(cmd, t.i >> 8);
611}
612
613static inline int _sceGuUpdateStallAddr(void) {
614 if (gu_curr_context == GU_DIRECT) {
615 // Just if there are no objects in the stack (no guBeginObject)
617 int res;
619 if (res < 0) {
620 return res;
621 }
622 }
623 }
624 return 0;
625}
626
627#endif
int gu_init
Definition guInternal.c:17
int gu_display_on
Definition guInternal.c:18
void callbackFin(int id, void *arg)
Definition sceGuInit.c:290
void callbackSig(int id, void *arg)
Definition sceGuInit.c:297
int gu_curr_context
Definition guInternal.c:16
GuDrawBuffer gu_draw_buffer
Definition guInternal.c:21
GECommand
Definition guInternal.h:87
@ REGION2
Definition guInternal.h:127
@ TEX_BUF_WIDTH6
Definition guInternal.h:427
@ VIEW_MATRIX_NUMBER
Definition guInternal.h:198
@ BLEND_MODE
Definition guInternal.h:526
@ VERTEX_TYPE
Definition guInternal.h:119
@ STENCIL_TEST_ENABLE
Definition guInternal.h:156
@ VADDR
Definition guInternal.h:91
@ TEX_BUF_WIDTH4
Definition guInternal.h:423
@ TEX_LOD_SLOPE
Definition guInternal.h:496
@ LIGHT3_Y
Definition guInternal.h:289
@ VIEW_MATRIX_DATA
Definition guInternal.h:200
@ LIGHT0_X
Definition guInternal.h:269
@ LIGHT2_DIRECTION_Y
Definition guInternal.h:308
@ PATCH_DIVISION
Definition guInternal.h:188
@ VERTEX_WEIGHT_ADDR
Definition guInternal.h:569
@ MORPH_WEIGHT6
Definition guInternal.h:183
@ TEX_BUF_WIDTH3
Definition guInternal.h:421
@ ANTI_ALIAS_ENABLE
Definition guInternal.h:158
@ TEX_ADDR0
Definition guInternal.h:399
@ TEX_FORMAT
Definition guInternal.h:469
@ MORPH_WEIGHT2
Definition guInternal.h:175
@ JUMP
Definition guInternal.h:103
@ LIGHT1_X
Definition guInternal.h:275
@ Z_BUF_PTR
Definition guInternal.h:394
@ LIGHT3_LINEAR_ATTEN
Definition guInternal.h:339
@ AMBIENT_LIGHT_COLOR
Definition guInternal.h:254
@ LIGHT0_EXPONENT_ATTEN
Definition guInternal.h:344
@ WORLD_MATRIX_NUMBER
Definition guInternal.h:194
@ MATERIAL_COLOR
Definition guInternal.h:240
@ FOG1
Definition guInternal.h:490
@ LIGHT0_Y
Definition guInternal.h:271
@ AMBIENT_COLOR
Definition guInternal.h:244
@ VERTEX_WEIGHT_MATRIX_ADDR
Definition guInternal.h:585
@ TEX_SHADE_MAPPING
Definition guInternal.h:465
@ VERTEX_WEIGHT_MATRIX_NORMALIZE
Definition guInternal.h:593
@ LIGHT3_DIRECTION_Z
Definition guInternal.h:316
@ LIGHTING_ENABLE
Definition guInternal.h:130
@ PATCH_PRIMITIVE
Definition guInternal.h:190
@ LIGHT1_DIRECTION_Y
Definition guInternal.h:302
@ DEPTH_CLIP_ENABLE
Definition guInternal.h:140
@ TEX_MODE
Definition guInternal.h:467
@ VIEWPORT_Z_CENTER
Definition guInternal.h:221
@ LIGHT3_DIRECTION_X
Definition guInternal.h:312
@ LIGHT0_CONSTANT_ATTEN
Definition guInternal.h:319
@ TEX_SIZE4
Definition guInternal.h:454
@ TEX_OFFSET_V
Definition guInternal.h:229
@ LIGHT3_CUTOFF_ATTEN
Definition guInternal.h:359
@ COLOR_REF
Definition guInternal.h:514
@ TEXTURE_ENABLE
Definition guInternal.h:144
@ VERTEX_WEIGHT_SIZE
Definition guInternal.h:571
@ AMBIENT_ALPHA
Definition guInternal.h:250
@ Z_MASK
Definition guInternal.h:543
@ LIGHT_ENABLE2
Definition guInternal.h:136
@ LIGHT3_DIRECTION_Y
Definition guInternal.h:314
@ SIGNAL
Definition guInternal.h:113
@ TRANSFER_START
Definition guInternal.h:550
@ MASK_ALPHA
Definition guInternal.h:547
@ TEX_SIZE7
Definition guInternal.h:460
@ DITHER_ENABLE
Definition guInternal.h:148
@ SPLINE
Definition guInternal.h:99
@ TEX_MAP_MODE
Definition guInternal.h:463
@ TEX_ADDR6
Definition guInternal.h:411
@ LIGHT1_QUADRATIC_ATTEN
Definition guInternal.h:329
@ LIGHT1_DIRECTION_Z
Definition guInternal.h:304
@ TEX_SIZE1
Definition guInternal.h:448
@ TEX_FUNC
Definition guInternal.h:481
@ SHADE_MODE
Definition guInternal.h:236
@ BOUNDING_BOX
Definition guInternal.h:101
@ PROJ_MATRIX_DATA
Definition guInternal.h:204
@ TEX_SIZE0
Definition guInternal.h:446
@ TGEN_MATRIX_DATA
Definition guInternal.h:208
@ CLUT_BUF_PTR
Definition guInternal.h:432
@ LIGHT2_Y
Definition guInternal.h:283
@ CULL
Definition guInternal.h:387
@ STENCIL_OP
Definition guInternal.h:522
@ DITH3
Definition guInternal.h:538
@ TRANSFER_SIZE
Definition guInternal.h:558
@ TRANSFER_DST_OFFSET
Definition guInternal.h:554
@ LIGHT1_LINEAR_ATTEN
Definition guInternal.h:327
@ TRANSFER_SRC_W
Definition guInternal.h:439
@ LIGHT2_AMBIENT
Definition guInternal.h:374
@ CLUT_LOAD
Definition guInternal.h:471
@ LIGHT2_LINEAR_ATTEN
Definition guInternal.h:333
@ FOG2
Definition guInternal.h:492
@ VERTEX_WEIGHT_MATRIX_TYPE
Definition guInternal.h:589
@ ALPHA_TEST_ENABLE
Definition guInternal.h:152
@ TEX_WRAP
Definition guInternal.h:477
@ VERTEX_WEIGHT_MATRIX_MODEL
Definition guInternal.h:591
@ LIGHT_ENABLE0
Definition guInternal.h:132
@ LIGHT1_DIRECTION_X
Definition guInternal.h:300
@ LIGHT1_CUTOFF_ATTEN
Definition guInternal.h:355
@ TEX_FLUSH
Definition guInternal.h:485
@ LIGHT2_CUTOFF_ATTEN
Definition guInternal.h:357
@ PATCH_FACING
Definition guInternal.h:192
@ LIGHT1_Y
Definition guInternal.h:277
@ LIGHT0_LINEAR_ATTEN
Definition guInternal.h:321
@ ORIGIN
Definition guInternal.h:123
@ VERTEX_WEIGHT_OFFSET
Definition guInternal.h:579
@ TEX_FILTER
Definition guInternal.h:475
@ CULL_FACE_ENABLE
Definition guInternal.h:142
@ VIEWPORT_Z_SCALE
Definition guInternal.h:215
@ TEX_LEVEL
Definition guInternal.h:479
@ LIGHT0_QUADRATIC_ATTEN
Definition guInternal.h:323
@ MORPH_WEIGHT7
Definition guInternal.h:185
@ FRAME_BUF_PTR
Definition guInternal.h:390
@ BLEND_FIXED_A
Definition guInternal.h:528
@ TEX_OFFSET_U
Definition guInternal.h:227
@ TEX_BUF_WIDTH2
Definition guInternal.h:419
@ VIEWPORT_X_CENTER
Definition guInternal.h:217
@ LIGHT0_DIRECTION_Z
Definition guInternal.h:298
@ TRANSFER_FLIP
Definition guInternal.h:561
@ TEX_ADDR5
Definition guInternal.h:409
@ LIGHT3_EXPONENT_ATTEN
Definition guInternal.h:350
@ TEX_SCALE_V
Definition guInternal.h:225
@ ALPHA_TEST
Definition guInternal.h:518
@ VERTEX_WEIGHT_SCALE
Definition guInternal.h:581
@ FINISH
Definition guInternal.h:115
@ BLEND_FIXED_B
Definition guInternal.h:530
@ TGEN_MATRIX_NUMBER
Definition guInternal.h:206
@ LIGHT0_CUTOFF_ATTEN
Definition guInternal.h:353
@ MASK_COLOR
Definition guInternal.h:545
@ LOGIC_OP
Definition guInternal.h:541
@ DITH0
Definition guInternal.h:532
@ VIEWPORT_Y_SCALE
Definition guInternal.h:213
@ LIGHT_TYPE2
Definition guInternal.h:265
@ OFFSET_ADDR
Definition guInternal.h:121
@ FRAMEBUF_PIX_FORMAT
Definition guInternal.h:499
@ TRANSFER_DST_W
Definition guInternal.h:443
@ MATERIAL_SPECULAR
Definition guInternal.h:248
@ VIEWPORT_Y_CENTER
Definition guInternal.h:219
@ LIGHT3_DIFFUSE
Definition guInternal.h:382
@ TRANSFER_OUT_SIZE
Definition guInternal.h:563
@ REGION1
Definition guInternal.h:125
@ BEZIER
Definition guInternal.h:97
@ LIGHT_ENABLE3
Definition guInternal.h:138
@ MATERIAL_EMISSIVE
Definition guInternal.h:242
@ STENCIL_TEST
Definition guInternal.h:520
@ IADDR
Definition guInternal.h:93
@ LIGHT1_Z
Definition guInternal.h:279
@ MATERIAL_SPECULAR_COEF
Definition guInternal.h:252
@ BONE_MATRIX_NUMBER
Definition guInternal.h:167
@ SCISSOR2
Definition guInternal.h:505
@ BASE
Definition guInternal.h:117
@ LIGHT2_SPECULAR
Definition guInternal.h:378
@ TEX_SYNC
Definition guInternal.h:487
@ TRANSFER_SRC
Definition guInternal.h:437
@ LIGHT1_CONSTANT_ATTEN
Definition guInternal.h:325
@ MORPH_WEIGHT3
Definition guInternal.h:177
@ LIGHT2_Z
Definition guInternal.h:285
@ LIGHT3_X
Definition guInternal.h:287
@ LIGHT_TYPE1
Definition guInternal.h:263
@ VERTEX_WEIGHT_MODEL
Definition guInternal.h:575
@ TRANSFER_SRC_OFFSET
Definition guInternal.h:552
@ BONE_MATRIX_DATA
Definition guInternal.h:169
@ RET
Definition guInternal.h:109
@ COLOR_TESTMASK
Definition guInternal.h:516
@ FRAME_BUF_WIDTH
Definition guInternal.h:392
@ LIGHT0_DIRECTION_X
Definition guInternal.h:294
@ TEX_BUF_WIDTH0
Definition guInternal.h:415
@ TEX_SIZE3
Definition guInternal.h:452
@ VERTEX_WEIGHT
Definition guInternal.h:567
@ FOG_ENABLE
Definition guInternal.h:146
@ MORPH_WEIGHT1
Definition guInternal.h:173
@ FOG_COLOR
Definition guInternal.h:494
@ CALL
Definition guInternal.h:107
@ VERTEX_WEIGHT_TYPE
Definition guInternal.h:573
@ TEX_ADDR7
Definition guInternal.h:413
@ CLEAR_MODE
Definition guInternal.h:501
@ LIGHT3_CONSTANT_ATTEN
Definition guInternal.h:337
@ TEX_BUF_WIDTH1
Definition guInternal.h:417
@ TRANSFER_FORMAT
Definition guInternal.h:556
@ LIGHT3_SPECULAR
Definition guInternal.h:384
@ BJUMP
Definition guInternal.h:105
@ LOGIC_OP_ENABLE
Definition guInternal.h:164
@ LIGHT0_SPECULAR
Definition guInternal.h:366
@ LIGHT2_X
Definition guInternal.h:281
@ ALPHA_BLEND_ENABLE
Definition guInternal.h:150
@ Z_TEST
Definition guInternal.h:524
@ TEX_SCALE_U
Definition guInternal.h:223
@ LIGHT0_DIFFUSE
Definition guInternal.h:364
@ TEX_SIZE5
Definition guInternal.h:456
@ LIGHT2_DIRECTION_X
Definition guInternal.h:306
@ MORPH_WEIGHT0
Definition guInternal.h:171
@ TEX_ADDR4
Definition guInternal.h:407
@ DITH1
Definition guInternal.h:534
@ VERTEX_WEIGHT_MATRIX
Definition guInternal.h:583
@ LIGHT3_AMBIENT
Definition guInternal.h:380
@ LIGHT3_Z
Definition guInternal.h:291
@ LIGHT3_QUADRATIC_ATTEN
Definition guInternal.h:341
@ PATCH_CULL_ENABLE
Definition guInternal.h:160
@ COLOR_TEST
Definition guInternal.h:512
@ MATERIAL_DIFFUSE
Definition guInternal.h:246
@ TEX_ADDR1
Definition guInternal.h:401
@ OFFSET_Y
Definition guInternal.h:233
@ TEX_BUF_WIDTH7
Definition guInternal.h:429
@ TRANSFER_DST
Definition guInternal.h:441
@ SCISSOR1
Definition guInternal.h:503
@ LIGHT_MODE
Definition guInternal.h:258
@ VIEWPORT_X_SCALE
Definition guInternal.h:211
@ LIGHT0_AMBIENT
Definition guInternal.h:362
@ MIN_Z
Definition guInternal.h:508
@ LIGHT2_DIRECTION_Z
Definition guInternal.h:310
@ Z_TEST_ENABLE
Definition guInternal.h:154
@ END
Definition guInternal.h:111
@ TEX_ADDR2
Definition guInternal.h:403
@ LIGHT2_DIFFUSE
Definition guInternal.h:376
@ LIGHT2_EXPONENT_ATTEN
Definition guInternal.h:348
@ LIGHT0_Z
Definition guInternal.h:273
@ TRANSFER_OUT_FORMAT
Definition guInternal.h:565
@ WORLD_MATRIX_DATA
Definition guInternal.h:196
@ PRIM
Definition guInternal.h:95
@ VERTEX_WEIGHT_NORMALIZE
Definition guInternal.h:577
@ TEX_SIZE6
Definition guInternal.h:458
@ LIGHT1_EXPONENT_ATTEN
Definition guInternal.h:346
@ Z_BUF_WIDTH
Definition guInternal.h:396
@ LIGHT1_DIFFUSE
Definition guInternal.h:370
@ LIGHT1_AMBIENT
Definition guInternal.h:368
@ VERTEX_WEIGHT_MATRIX_SIZE
Definition guInternal.h:587
@ MAX_Z
Definition guInternal.h:510
@ CLUT_FORMAT
Definition guInternal.h:473
@ LIGHT2_CONSTANT_ATTEN
Definition guInternal.h:331
@ MORPH_WEIGHT4
Definition guInternal.h:179
@ TEX_BUF_WIDTH5
Definition guInternal.h:425
@ TEX_ADDR3
Definition guInternal.h:405
@ TEX_ENV_COLOR
Definition guInternal.h:483
@ PROJ_MATRIX_NUMBER
Definition guInternal.h:202
@ LIGHT1_SPECULAR
Definition guInternal.h:372
@ NORMAL_REVERSE
Definition guInternal.h:238
@ LIGHT2_QUADRATIC_ATTEN
Definition guInternal.h:335
@ NOP
Definition guInternal.h:89
@ LIGHT_TYPE3
Definition guInternal.h:267
@ AMBIENT_LIGHT_ALPHA
Definition guInternal.h:256
@ COLOR_TEST_ENABLE
Definition guInternal.h:162
@ MORPH_WEIGHT5
Definition guInternal.h:181
@ OFFSET_X
Definition guInternal.h:231
@ DITH2
Definition guInternal.h:536
@ LIGHT0_DIRECTION_Y
Definition guInternal.h:296
@ LIGHT_ENABLE1
Definition guInternal.h:134
@ LIGHT_TYPE0
Definition guInternal.h:261
@ TEX_SIZE2
Definition guInternal.h:450
@ CLUT_BUF_WIDTH
Definition guInternal.h:434
int gu_states
Definition guInternal.c:20
GuDisplayList * gu_list
Definition guInternal.c:15
unsigned int * gu_object_stack[]
Definition guInternal.c:22
GuSettings gu_settings
Definition guInternal.c:14
GuContext gu_contexts[3]
Definition guInternal.c:11
int gu_object_stack_depth
Definition guInternal.c:23
int gu_call_mode
Definition guInternal.c:19
void(* GuCallback)(int)
Definition guInternal.h:14
int ge_list_executed[2]
Definition guInternal.c:12
void * ge_edram_address
Definition guInternal.c:13
int sceGeListUpdateStallAddr(int qid, void *stall)
Update the stall address for the specified queue.
#define GU_DIRECT
Definition pspgu.h:288
void(* GuSwapBuffersCallback)(void **display, void **render)
Definition pspgu.h:343
Definition guInternal.h:37
int fragment_2x
Definition guInternal.h:45
GuDisplayList list
Definition guInternal.h:38
unsigned int clear_color
Definition guInternal.h:50
int near_plane
Definition guInternal.h:42
unsigned int clear_depth
Definition guInternal.h:52
int texture_proj_map_mode
Definition guInternal.h:47
int texture_mode
Definition guInternal.h:53
int scissor_enable
Definition guInternal.h:39
int texture_map_mode
Definition guInternal.h:48
unsigned int clear_stencil
Definition guInternal.h:51
int texture_function
Definition guInternal.h:46
int far_plane
Definition guInternal.h:43
int depth_offset
Definition guInternal.h:44
Definition guInternal.h:30
unsigned int * start
Definition guInternal.h:31
unsigned int * current
Definition guInternal.h:32
int parent_context
Definition guInternal.h:33
Definition guInternal.h:57
int width
Definition guInternal.h:64
int depth_width
Definition guInternal.h:63
int height
Definition guInternal.h:65
void * frame_buffer
Definition guInternal.h:60
void * depth_buffer
Definition guInternal.h:62
int pixel_size
Definition guInternal.h:58
void * disp_buffer
Definition guInternal.h:61
int frame_width
Definition guInternal.h:59
Definition guInternal.h:17
int kernel_event_flag
Definition guInternal.h:22
int ge_callback_id
Definition guInternal.h:23
int swapBuffersBehaviour
Definition guInternal.h:26
GuCallback sig
Definition guInternal.h:18
int signal_offset
Definition guInternal.h:21
GuSwapBuffersCallback swapBuffersCallback
Definition guInternal.h:25
GuCallback fin
Definition guInternal.h:19