PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
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
36typedef 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
48extern "C" {
49#endif
50
52qword_t *draw_primitive_xyoffset(qword_t *q, int context, float x, float y);
53
55qword_t *draw_primitive_override(qword_t *q, int mode);
56
58qword_t *draw_primitive_override_setting(qword_t *q, int context, prim_t *prim);
59
60#ifdef __cplusplus
61}
62#endif
63
64#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)