PS2SDK
PS2 Homebrew Libraries
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>
+ 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.

Macro Definition Documentation

◆ DRAW_DISABLE

#define DRAW_DISABLE   0

Definition at line 24 of file draw.h.

◆ DRAW_ENABLE

#define DRAW_ENABLE   1

Definition at line 25 of file draw.h.

Function Documentation

◆ draw_setup_environment()

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

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

References draw_clear(), draw_rect_filled_strips(), GIF_REG_AD, GS_REG_PRMODE, GS_REG_PRMODECONT, and PRIM_OVERRIDE_ENABLE.

Referenced by draw_clear().

◆ draw_finish()

qword_t * draw_finish ( qword_t * q)
extern

Signal that drawing is finished

Definition at line 189 of file draw.c.

References draw_finish(), GIF_FLG_PACKED, GIF_REG_AD, and GS_REG_FINISH.

Referenced by draw_finish().

◆ draw_wait_finish()

void draw_wait_finish ( void )
extern

Wait until finish event occurs

Definition at line 201 of file draw.c.

References draw_wait_finish(), and GS_REG_CSR.

Referenced by draw_wait_finish().

◆ 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

◆ draw_texture_flush()

qword_t * draw_texture_flush ( qword_t * q)
extern

Flush the texture cache

Definition at line 209 of file draw.c.

References DMATAG_END, draw_texture_flush(), GIF_FLG_PACKED, GIF_REG_AD, and GS_REG_TEXFLUSH.

Referenced by draw_texture_flush().