|
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_COMPONENTS_RGBA 1 |
Definition at line 13 of file draw_buffers.h.
| #define TEXTURE_FUNCTION_MODULATE 0 |
Texture Function
Definition at line 16 of file draw_buffers.h.
| #define TEXTURE_FUNCTION_DECAL 1 |
Definition at line 17 of file draw_buffers.h.
| #define TEXTURE_FUNCTION_HIGHLIGHT 2 |
Definition at line 18 of file draw_buffers.h.
| #define TEXTURE_FUNCTION_HIGHLIGHT2 3 |
Definition at line 19 of file draw_buffers.h.
| #define CLUT_STORAGE_MODE1 0 |
CLUT Storage Mode
Definition at line 22 of file draw_buffers.h.
| #define CLUT_STORAGE_MODE2 1 |
Definition at line 23 of file draw_buffers.h.
| #define CLUT_NO_LOAD 0 |
CLUT Load Control
Definition at line 26 of file draw_buffers.h.
| #define CLUT_LOAD 1 |
Definition at line 27 of file draw_buffers.h.
| #define CLUT_LOAD_COPY_CBP0 2 |
Definition at line 28 of file draw_buffers.h.
| #define CLUT_LOAD_COPY_CBP1 3 |
Definition at line 29 of file draw_buffers.h.
| #define CLUT_COMPARE_CBP0 4 |
Definition at line 30 of file draw_buffers.h.
| #define CLUT_COMPARE_CBP1 5 |
Definition at line 31 of file draw_buffers.h.
|
extern |
Returns the power of 2 needed for texture width and height
Definition at line 349 of file draw.c.
References draw_log2().
Referenced by draw_log2().
|
extern |
Framebuffer Attributes
Definition at line 33 of file draw_environment.c.
References draw_framebuffer(), GIF_FLG_PACKED, GIF_REG_AD, and GS_REG_FRAME.
Referenced by draw_framebuffer().
|
extern |
ZBuffer Attributes
Definition at line 45 of file draw_environment.c.
References draw_zbuffer(), GIF_FLG_PACKED, GIF_REG_AD, and GS_REG_ZBUF.
Referenced by draw_zbuffer().
|
extern |
TextureBuffer Attributes
Definition at line 57 of file draw_environment.c.
References draw_texturebuffer(), GIF_FLG_PACKED, GIF_REG_AD, and GS_REG_TEX0.
Referenced by draw_texturebuffer().
|
extern |
CLUT Storage Mode 1 Information
Definition at line 77 of file draw_environment.c.
References draw_clutbuffer(), GIF_FLG_PACKED, GIF_REG_AD, and GS_REG_TEX2.
Referenced by draw_clutbuffer().
|
extern |
CLUT Storage Mode 2 Information
Definition at line 95 of file draw_environment.c.
References draw_clut_offset(), GIF_FLG_PACKED, GIF_REG_AD, and GS_REG_TEXCLUT.
Referenced by draw_clut_offset().