sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
draw_primitives.h
Go to the documentation of this file.
1
6
7#ifndef __DRAW_PRIMITIVES_H__
8#define __DRAW_PRIMITIVES_H__
9
10#include <tamtypes.h>
11
13#define PRIM_POINT 0x00
14#define PRIM_LINE 0x01
15#define PRIM_LINE_STRIP 0x02
16#define PRIM_TRIANGLE 0x03
17#define PRIM_TRIANGLE_STRIP 0x04
18#define PRIM_TRIANGLE_FAN 0x05
19#define PRIM_SPRITE 0x06
20
22#define PRIM_SHADE_FLAT 0
23#define PRIM_SHADE_GOURAUD 1
24
26#define PRIM_MAP_ST 0
27#define PRIM_MAP_UV 1
28
30#define PRIM_UNFIXED 0
31#define PRIM_FIXED 1
32
34#define PRIM_OVERRIDE_ENABLE 0
35#define PRIM_OVERRIDE_DISABLE 1
36
37typedef struct {
38 unsigned char type;
39 unsigned char shading;
40 unsigned char mapping;
41 unsigned char fogging;
42 unsigned char blending;
43 unsigned char antialiasing;
44 unsigned char mapping_type;
45 unsigned char colorfix;
46} prim_t;
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
53extern qword_t *draw_primitive_xyoffset(qword_t *q, int context, float x, float y);
54
56extern qword_t *draw_primitive_override(qword_t *q, int mode);
57
59extern qword_t *draw_primitive_override_setting(qword_t *q, int context, prim_t *prim);
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* __DRAW_PRIMITIVES_H__ */
qword_t * draw_primitive_override(qword_t *q, int mode)
qword_t * draw_primitive_override_setting(qword_t *q, int context, prim_t *prim)
qword_t * draw_primitive_xyoffset(qword_t *q, int context, float x, float y)