sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
draw.h File Reference
#include <tamtypes.h>
#include <draw_blending.h>
#include <draw_buffers.h>
#include <draw_dithering.h>
#include <draw_fog.h>
#include <draw_masking.h>
#include <draw_primitives.h>
#include <draw_sampling.h>
#include <draw_tests.h>
#include <draw_types.h>
#include <draw2d.h>
#include <draw3d.h>

Go to the source code of this file.

Macros

#define DRAW_DISABLE   0
#define DRAW_ENABLE   1

Functions

qword_t * draw_setup_environment (qword_t *q, int context, framebuffer_t *frame, zbuffer_t *z)
qword_t * draw_clear (qword_t *q, int context, float x, float y, float width, float height, int r, int g, int b)
qword_t * draw_finish (qword_t *q)
void draw_wait_finish (void)
qword_t * draw_texture_transfer (qword_t *q, void *src, int width, int height, int psm, int dest, int dest_width)
qword_t * draw_texture_flush (qword_t *q)

Detailed Description

Draw library main functions

Definition in file draw.h.

Macro Definition Documentation

◆ DRAW_DISABLE

#define DRAW_DISABLE   0

Definition at line 25 of file draw.h.

◆ DRAW_ENABLE

#define DRAW_ENABLE   1

Definition at line 26 of file draw.h.

Function Documentation

◆ draw_clear()

qword_t * draw_clear ( qword_t * q,
int context,
float x,
float y,
float width,
float height,
int r,
int g,
int b )
extern

Clear the screen based on the screen's origin, width, and height using the defined color.

Definition at line 149 of file draw.c.

◆ draw_finish()

qword_t * draw_finish ( qword_t * q)
extern

Signal that drawing is finished

Definition at line 189 of file draw.c.

◆ draw_setup_environment()

qword_t * draw_setup_environment ( qword_t * q,
int context,
framebuffer_t * frame,
zbuffer_t * z )
extern

Sets up the drawing environment based on the framebuffer and zbuffer settings

Definition at line 11 of file draw.c.

◆ draw_texture_flush()

qword_t * draw_texture_flush ( qword_t * q)
extern

Flush the texture cache

Definition at line 209 of file draw.c.

◆ draw_texture_transfer()

qword_t * draw_texture_transfer ( qword_t * q,
void * src,
int width,
int height,
int psm,
int dest,
int dest_width )
extern

Creates a dma chain filled with image information

Definition at line 224 of file draw.c.

◆ draw_wait_finish()

void draw_wait_finish ( void )
extern

Wait until finish event occurs

Definition at line 201 of file draw.c.