|
PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
Include dependency graph for draw_buffers.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | texinfo_t |
| struct | framebuffer_t |
| struct | zbuffer_t |
| struct | texbuffer_t |
| struct | clutbuffer_t |
Macros | |
| #define | TEXTURE_COMPONENTS_RGB 0 |
| #define | TEXTURE_COMPONENTS_RGBA 1 |
| #define | TEXTURE_FUNCTION_MODULATE 0 |
| #define | TEXTURE_FUNCTION_DECAL 1 |
| #define | TEXTURE_FUNCTION_HIGHLIGHT 2 |
| #define | TEXTURE_FUNCTION_HIGHLIGHT2 3 |
| #define | CLUT_STORAGE_MODE1 0 |
| #define | CLUT_STORAGE_MODE2 1 |
| #define | CLUT_NO_LOAD 0 |
| #define | CLUT_LOAD 1 |
| #define | CLUT_LOAD_COPY_CBP0 2 |
| #define | CLUT_LOAD_COPY_CBP1 3 |
| #define | CLUT_COMPARE_CBP0 4 |
| #define | CLUT_COMPARE_CBP1 5 |
Functions | |
| unsigned char | draw_log2 (unsigned int x) |
| qword_t * | draw_framebuffer (qword_t *q, int context, framebuffer_t *frame) |
| qword_t * | draw_zbuffer (qword_t *q, int context, zbuffer_t *zbuffer) |
| qword_t * | draw_texturebuffer (qword_t *q, int context, texbuffer_t *texbuffer, clutbuffer_t *clut) |
| qword_t * | draw_clutbuffer (qword_t *q, int context, int psm, clutbuffer_t *clut) |
| qword_t * | draw_clut_offset (qword_t *q, int cbw, int u, int v) |
Draw library buffer functions
Definition in file draw_buffers.h.
| struct texinfo_t |
Definition at line 33 of file draw_buffers.h.
| Data Fields | ||
|---|---|---|
| unsigned char | width | |
| unsigned char | height | |
| unsigned char | components | |
| unsigned char | function | |
| struct framebuffer_t |
Definition at line 40 of file draw_buffers.h.
| Data Fields | ||
|---|---|---|
| unsigned int | address | |
| unsigned int | width | |
| unsigned int | height | |
| unsigned int | psm | |
| unsigned int | mask | |
| struct zbuffer_t |
Definition at line 48 of file draw_buffers.h.
| Data Fields | ||
|---|---|---|
| unsigned int | enable | |
| unsigned int | method | |
| unsigned int | address | |
| unsigned int | zsm | |
| unsigned int | mask | |
| struct texbuffer_t |
Definition at line 56 of file draw_buffers.h.
Collaboration diagram for texbuffer_t:| Data Fields | ||
|---|---|---|
| unsigned int | address | |
| unsigned int | width | |
| unsigned int | psm | |
| texinfo_t | info | |
| struct clutbuffer_t |
Definition at line 63 of file draw_buffers.h.
| Data Fields | ||
|---|---|---|
| unsigned int | address | |
| unsigned int | psm | |
| unsigned int | storage_mode | |
| unsigned int | start | |
| unsigned int | load_method | |
| #define TEXTURE_COMPONENTS_RGB 0 |
Texture Color Components
Definition at line 12 of file draw_buffers.h.
| #define TEXTURE_FUNCTION_MODULATE 0 |
Texture Function
Definition at line 16 of file draw_buffers.h.
| #define CLUT_STORAGE_MODE1 0 |
CLUT Storage Mode
Definition at line 22 of file draw_buffers.h.
| #define CLUT_NO_LOAD 0 |
CLUT Load Control
Definition at line 26 of file draw_buffers.h.
| unsigned char draw_log2 | ( | unsigned int | x | ) |
| qword_t* draw_framebuffer | ( | qword_t * | q, |
| int | context, | ||
| framebuffer_t * | frame | ||
| ) |
Framebuffer Attributes
Definition at line 33 of file draw_environment.c.
| qword_t* draw_zbuffer | ( | qword_t * | q, |
| int | context, | ||
| zbuffer_t * | zbuffer | ||
| ) |
ZBuffer Attributes
Definition at line 45 of file draw_environment.c.
| qword_t* draw_texturebuffer | ( | qword_t * | q, |
| int | context, | ||
| texbuffer_t * | texbuffer, | ||
| clutbuffer_t * | clut | ||
| ) |
TextureBuffer Attributes
Definition at line 57 of file draw_environment.c.
| qword_t* draw_clutbuffer | ( | qword_t * | q, |
| int | context, | ||
| int | psm, | ||
| clutbuffer_t * | clut | ||
| ) |
CLUT Storage Mode 1 Information
Definition at line 77 of file draw_environment.c.
| qword_t* draw_clut_offset | ( | qword_t * | q, |
| int | cbw, | ||
| int | u, | ||
| int | v | ||
| ) |
CLUT Storage Mode 2 Information
Definition at line 95 of file draw_environment.c.