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