sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
draw2d.h File Reference
#include <tamtypes.h>
#include <draw_types.h>

Go to the source code of this file.

Classes

struct  point_t
struct  line_t
struct  triangle_t
struct  rect_t
struct  texrect_t

Functions

void draw_enable_blending ()
void draw_disable_blending ()
qword_t * draw_point (qword_t *q, int context, point_t *point)
qword_t * draw_line (qword_t *q, int context, line_t *line)
qword_t * draw_triangle_outline (qword_t *q, int context, triangle_t *triangle)
qword_t * draw_triangle_filled (qword_t *q, int context, triangle_t *triangle)
qword_t * draw_rect_outline (qword_t *q, int context, rect_t *rect)
qword_t * draw_rect_filled (qword_t *q, int context, rect_t *rect)
qword_t * draw_rect_textured (qword_t *q, int context, texrect_t *rect)
qword_t * draw_rect_filled_strips (qword_t *q, int context, rect_t *rect)
qword_t * draw_rect_textured_strips (qword_t *q, int context, texrect_t *rect)
qword_t * draw_round_rect_filled (qword_t *q, int context, rect_t *rect)
qword_t * draw_round_rect_outline (qword_t *q, int context, rect_t *rect)
qword_t * draw_arc_outline (qword_t *q, int context, point_t *center, float radius, float angle_start, float angle_end)
qword_t * draw_arc_filled (qword_t *q, int context, point_t *center, float radius, float angle_start, float angle_end)

Detailed Description

Draw library 2D functions

Definition in file draw2d.h.

Function Documentation

◆ draw_arc_filled()

qword_t * draw_arc_filled ( qword_t * q,
int context,
point_t * center,
float radius,
float angle_start,
float angle_end )
extern

Draws multiple triangle fans

Definition at line 425 of file draw2d.c.

◆ draw_arc_outline()

qword_t * draw_arc_outline ( qword_t * q,
int context,
point_t * center,
float radius,
float angle_start,
float angle_end )
extern

Draws an arc using line primitives

Definition at line 370 of file draw2d.c.

◆ draw_disable_blending()

void draw_disable_blending ( )
extern

Disables alpha blending

Definition at line 34 of file draw2d.c.

◆ draw_enable_blending()

void draw_enable_blending ( )
extern

Enables alpha blending

Definition at line 29 of file draw2d.c.

◆ draw_line()

qword_t * draw_line ( qword_t * q,
int context,
line_t * line )
extern

Draws a single line

Definition at line 64 of file draw2d.c.

◆ draw_point()

qword_t * draw_point ( qword_t * q,
int context,
point_t * point )
extern

Draws a single point

Definition at line 39 of file draw2d.c.

◆ draw_rect_filled()

qword_t * draw_rect_filled ( qword_t * q,
int context,
rect_t * rect )
extern

Draws a single sprite

Definition at line 197 of file draw2d.c.

◆ draw_rect_filled_strips()

qword_t * draw_rect_filled_strips ( qword_t * q,
int context,
rect_t * rect )
extern

Draws multiple sprite primitives

Definition at line 248 of file draw2d.c.

◆ draw_rect_outline()

qword_t * draw_rect_outline ( qword_t * q,
int context,
rect_t * rect )
extern

Draws a rectangle using line primitives

Definition at line 159 of file draw2d.c.

◆ draw_rect_textured()

qword_t * draw_rect_textured ( qword_t * q,
int context,
texrect_t * rect )
extern

Draws a single texture mapped sprite

Definition at line 224 of file draw2d.c.

◆ draw_rect_textured_strips()

qword_t * draw_rect_textured_strips ( qword_t * q,
int context,
texrect_t * rect )
extern

Draws multiple strips to render a large texture width must be multiple of 32 - 0.9375

Definition at line 303 of file draw2d.c.

◆ draw_round_rect_filled()

qword_t * draw_round_rect_filled ( qword_t * q,
int context,
rect_t * rect )
extern

Draws filled round rectangle, buggy with partial coordinates

Definition at line 482 of file draw2d.c.

◆ draw_round_rect_outline()

qword_t * draw_round_rect_outline ( qword_t * q,
int context,
rect_t * rect )
extern

Draws a hollow round rectangle, buggy with partial coordinates

Definition at line 579 of file draw2d.c.

◆ draw_triangle_filled()

qword_t * draw_triangle_filled ( qword_t * q,
int context,
triangle_t * triangle )
extern

Draws a single triangle

Definition at line 126 of file draw2d.c.

◆ draw_triangle_outline()

qword_t * draw_triangle_outline ( qword_t * q,
int context,
triangle_t * triangle )
extern

Draws a triangle using a line strip

Definition at line 91 of file draw2d.c.