PS2SDK
PS2 Homebrew Libraries
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>
+ Include dependency graph for draw.h:
+ This graph shows which files directly or indirectly include this file:

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.

Function Documentation

◆ draw_setup_environment()

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

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

Definition at line 11 of file draw.c.

◆ 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 
)

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)

Signal that drawing is finished

Definition at line 189 of file draw.c.

◆ draw_wait_finish()

void draw_wait_finish ( void  )

Wait until finish event occurs

Definition at line 201 of file draw.c.

References GS_REG_CSR.

◆ draw_texture_transfer()

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

Creates a dma chain filled with image information

Definition at line 224 of file draw.c.

◆ draw_texture_flush()

qword_t* draw_texture_flush ( qword_t *  q)

Flush the texture cache

Definition at line 209 of file draw.c.