ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
draw_primitives.h
Go to the documentation of this file.
1 
6 #ifndef __DRAW_PRIMITIVES_H__
7 #define __DRAW_PRIMITIVES_H__
8 
9 #include <tamtypes.h>
10 
12 #define PRIM_POINT 0x00
13 #define PRIM_LINE 0x01
14 #define PRIM_LINE_STRIP 0x02
15 #define PRIM_TRIANGLE 0x03
16 #define PRIM_TRIANGLE_STRIP 0x04
17 #define PRIM_TRIANGLE_FAN 0x05
18 #define PRIM_SPRITE 0x06
19 
21 #define PRIM_SHADE_FLAT 0
22 #define PRIM_SHADE_GOURAUD 1
23 
25 #define PRIM_MAP_ST 0
26 #define PRIM_MAP_UV 1
27 
29 #define PRIM_UNFIXED 0
30 #define PRIM_FIXED 1
31 
33 #define PRIM_OVERRIDE_ENABLE 0
34 #define PRIM_OVERRIDE_DISABLE 1
35 
36 typedef struct {
37  unsigned char type;
38  unsigned char shading;
39  unsigned char mapping;
40  unsigned char fogging;
41  unsigned char blending;
42  unsigned char antialiasing;
43  unsigned char mapping_type;
44  unsigned char colorfix;
45 } prim_t;
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
52 qword_t *draw_primitive_xyoffset(qword_t *q, int context, float x, float y);
53 
56 
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* __DRAW_PRIMITIVES_H__ */
prim_t prim
Definition: main.c:74
u8 context
Definition: main.c:71
qword_t * draw_primitive_override_setting(qword_t *q, int context, prim_t *prim)
qword_t * draw_primitive_override(qword_t *q, int mode)
qword_t * draw_primitive_xyoffset(qword_t *q, int context, float x, float y)
s32 x
Definition: libmouse.c:34
s32 y
Definition: libmouse.c:34
s32 mode
Definition: rpc_client.c:15
unsigned char type
unsigned char blending
unsigned char antialiasing
unsigned char colorfix
unsigned char shading
unsigned char fogging
unsigned char mapping_type
unsigned char mapping