sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
draw3d.h
Go to the documentation of this file.
1
6
7
#ifndef __DRAW3D_H__
8
#define __DRAW3D_H__
9
10
#include <
tamtypes.h
>
11
12
#include <
draw_primitives.h
>
13
#include <
draw_types.h
>
14
#include <
gif_tags.h
>
15
17
#define DRAW_XYZ_REGLIST \
18
((u64)GIF_REG_XYZ2) << 0 | \
19
((u64)GIF_REG_XYZ2) << 4
20
21
#define DRAW_RGBAQ_REGLIST \
22
((u64)GIF_REG_RGBAQ) << 0 | \
23
((u64)GIF_REG_XYZ2) << 4
24
25
#define DRAW_UV_REGLIST \
26
((u64)GIF_REG_UV) << 0 | \
27
((u64)GIF_REG_XYZ2) << 4
28
29
#define DRAW_RGBAQ_UV_REGLIST \
30
((u64)GIF_REG_RGBAQ) << 0 | \
31
((u64)GIF_REG_UV) << 4 | \
32
((u64)GIF_REG_XYZ2) << 8
33
34
#define DRAW_STQ_REGLIST \
35
((u64)GIF_REG_RGBAQ) << 0 | \
36
((u64)GIF_REG_ST) << 4 | \
37
((u64)GIF_REG_XYZ2) << 8
38
56
#define DRAW_STQ2_REGLIST \
57
((u64)GIF_REG_ST) << 0 | \
58
((u64)GIF_REG_RGBAQ) << 4 | \
59
((u64)GIF_REG_XYZ2) << 8
60
61
#ifdef __cplusplus
62
extern
"C"
{
63
#endif
64
66
extern
qword_t *
draw_prim_start
(qword_t *q,
int
context,
const
prim_t
*prim,
const
color_t *color);
67
69
extern
qword_t *
draw_prim_end
(qword_t *q,
int
nreg, u64 reglist);
70
72
extern
int
draw_convert_rgbq
(color_t *output,
int
count
, vertex_f_t *vertices, color_f_t *colours,
unsigned
char
alpha);
73
75
extern
int
draw_convert_rgbaq
(color_t *output,
int
count
, vertex_f_t *vertices, color_f_t *colours);
76
78
extern
int
draw_convert_st
(texel_t *output,
int
count
, vertex_f_t *vertices, texel_f_t *coords);
79
81
extern
int
draw_convert_xyz
(xyz_t *output,
float
x,
float
y,
int
z,
int
count
, vertex_f_t *vertices);
82
83
#ifdef __cplusplus
84
}
85
#endif
86
87
#endif
/* __DRAW3D_H__ */
draw_convert_st
int draw_convert_st(texel_t *output, int count, vertex_f_t *vertices, texel_f_t *coords)
Definition
draw3d.c:120
draw_convert_rgbq
int draw_convert_rgbq(color_t *output, int count, vertex_f_t *vertices, color_f_t *colours, unsigned char alpha)
Definition
draw3d.c:56
draw_prim_end
qword_t * draw_prim_end(qword_t *q, int nreg, u64 reglist)
Definition
draw3d.c:33
draw_convert_xyz
int draw_convert_xyz(xyz_t *output, float x, float y, int z, int count, vertex_f_t *vertices)
Definition
draw3d.c:147
draw_prim_start
qword_t * draw_prim_start(qword_t *q, int context, const prim_t *prim, const color_t *color)
Definition
draw3d.c:11
draw_convert_rgbaq
int draw_convert_rgbaq(color_t *output, int count, vertex_f_t *vertices, color_f_t *colours)
Definition
draw3d.c:88
draw_primitives.h
draw_types.h
gif_tags.h
prim_t
Definition
draw_primitives.h:37
tamtypes.h
count
u32 count
start sector of fragmented bd/file
Definition
usbhdfsd-common.h:1
core
draw
include
draw3d.h
Generated by
1.18.0