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