PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
draw2d.h
Go to the documentation of this file.
1
6#ifndef __DRAW2D_H__
7#define __DRAW2D_H__
8
9#include <tamtypes.h>
10
11#include <draw_types.h>
12
13typedef struct {
14 vertex_t v0;
15 color_t color;
16} point_t;
17
18typedef struct {
19 vertex_t v0;
20 vertex_t v1;
21 color_t color;
22} line_t;
23
24typedef struct {
25 vertex_t v0;
26 vertex_t v1;
27 vertex_t v2;
28 color_t color;
30
31typedef struct {
32 vertex_t v0;
33 vertex_t v1;
34 color_t color;
35} rect_t;
36
37typedef struct {
38 vertex_t v0;
39 texel_t t0;
40 vertex_t v1;
41 texel_t t1;
42 color_t color;
43} texrect_t;
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
51
54
56qword_t *draw_point(qword_t *q, int context, point_t *point);
57
59qword_t *draw_line(qword_t *q, int context, line_t *line);
60
62qword_t *draw_triangle_outline(qword_t *q, int context, triangle_t *triangle);
63
65qword_t *draw_triangle_filled(qword_t *q, int context,triangle_t *triangle);
66
68qword_t *draw_rect_outline(qword_t *q, int context, rect_t *rect);
69
71qword_t *draw_rect_filled(qword_t *q, int context, rect_t *rect);
72
74qword_t *draw_rect_textured(qword_t *q, int context, texrect_t *rect);
75
77qword_t *draw_rect_filled_strips(qword_t *q, int context, rect_t *rect);
78
82qword_t *draw_rect_textured_strips(qword_t *q, int context, texrect_t *rect);
83
85qword_t *draw_round_rect_filled(qword_t *q, int context, rect_t *rect);
86
88qword_t *draw_round_rect_outline(qword_t *q, int context, rect_t *rect);
89
91qword_t *draw_arc_outline(qword_t *q, int context, point_t *center, float radius, float angle_start, float angle_end);
92
94qword_t *draw_arc_filled(qword_t *q, int context, point_t *center, float radius, float angle_start, float angle_end);
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif /* __DRAW2D_H__ */
qword_t * draw_rect_filled(qword_t *q, int context, rect_t *rect)
Definition draw2d.c:197
qword_t * draw_point(qword_t *q, int context, point_t *point)
Definition draw2d.c:39
qword_t * draw_rect_textured_strips(qword_t *q, int context, texrect_t *rect)
Definition draw2d.c:303
qword_t * draw_arc_outline(qword_t *q, int context, point_t *center, float radius, float angle_start, float angle_end)
Definition draw2d.c:370
qword_t * draw_triangle_outline(qword_t *q, int context, triangle_t *triangle)
Definition draw2d.c:91
qword_t * draw_rect_outline(qword_t *q, int context, rect_t *rect)
Definition draw2d.c:159
qword_t * draw_arc_filled(qword_t *q, int context, point_t *center, float radius, float angle_start, float angle_end)
Definition draw2d.c:425
qword_t * draw_round_rect_outline(qword_t *q, int context, rect_t *rect)
Definition draw2d.c:579
void draw_enable_blending()
Definition draw2d.c:29
qword_t * draw_rect_filled_strips(qword_t *q, int context, rect_t *rect)
Definition draw2d.c:248
qword_t * draw_round_rect_filled(qword_t *q, int context, rect_t *rect)
Definition draw2d.c:482
qword_t * draw_triangle_filled(qword_t *q, int context, triangle_t *triangle)
Definition draw2d.c:126
void draw_disable_blending()
Definition draw2d.c:34
qword_t * draw_rect_textured(qword_t *q, int context, texrect_t *rect)
Definition draw2d.c:224
qword_t * draw_line(qword_t *q, int context, line_t *line)
Definition draw2d.c:64