6 #ifndef __DRAW_BUFFERS_H__
7 #define __DRAW_BUFFERS_H__
12 #define TEXTURE_COMPONENTS_RGB 0
13 #define TEXTURE_COMPONENTS_RGBA 1
16 #define TEXTURE_FUNCTION_MODULATE 0
17 #define TEXTURE_FUNCTION_DECAL 1
18 #define TEXTURE_FUNCTION_HIGHLIGHT 2
19 #define TEXTURE_FUNCTION_HIGHLIGHT2 3
22 #define CLUT_STORAGE_MODE1 0
23 #define CLUT_STORAGE_MODE2 1
26 #define CLUT_NO_LOAD 0
28 #define CLUT_LOAD_COPY_CBP0 2
29 #define CLUT_LOAD_COPY_CBP1 3
30 #define CLUT_COMPARE_CBP0 4
31 #define CLUT_COMPARE_CBP1 5
37 unsigned char function;
unsigned char draw_log2(unsigned int x)
qword_t * draw_clut_offset(qword_t *q, int cbw, int u, int v)
qword_t * draw_texturebuffer(qword_t *q, int context, texbuffer_t *texbuffer, clutbuffer_t *clut)
qword_t * draw_zbuffer(qword_t *q, int context, zbuffer_t *zbuffer)
qword_t * draw_clutbuffer(qword_t *q, int context, int psm, clutbuffer_t *clut)
qword_t * draw_framebuffer(qword_t *q, int context, framebuffer_t *frame)
unsigned int storage_mode