KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API for compiling primitive contexts into headers More...
Functions | |
void | pvr_poly_compile (pvr_poly_hdr_t *dst, const pvr_poly_cxt_t *src) |
Compile a polygon context into a polygon header. | |
void | pvr_sprite_compile (pvr_sprite_hdr_t *dst, const pvr_sprite_cxt_t *src) |
Compile a sprite context into a sprite header. | |
void | pvr_mod_compile (pvr_mod_hdr_t *dst, pvr_list_t list, uint32_t mode, uint32_t cull) |
Create a modifier volume header. | |
void | pvr_poly_mod_compile (pvr_poly_mod_hdr_t *dst, const pvr_poly_cxt_t *src) |
Compile a polygon context into a polygon header that is affected by modifier volumes. | |
API for compiling primitive contexts into headers
void pvr_mod_compile | ( | pvr_mod_hdr_t * | dst, |
pvr_list_t | list, | ||
uint32_t | mode, | ||
uint32_t | cull ) |
Create a modifier volume header.
This function fills in a modifier volume header with the parameters specified. Note that unlike for polygons and sprites, there is no context step for modifiers.
dst | Where to store the modifier header. |
list | The primitive list to be used. |
mode | The mode for this modifier. |
cull | The culling mode to use. |
void pvr_poly_compile | ( | pvr_poly_hdr_t * | dst, |
const pvr_poly_cxt_t * | src ) |
Compile a polygon context into a polygon header.
This function compiles a pvr_poly_cxt_t into the form needed by the hardware for rendering. This is for use with normal polygon headers.
dst | Where to store the compiled header. |
src | The context to compile. |
void pvr_poly_mod_compile | ( | pvr_poly_mod_hdr_t * | dst, |
const pvr_poly_cxt_t * | src ) |
Compile a polygon context into a polygon header that is affected by modifier volumes.
This function works pretty similarly to pvr_poly_compile(), but compiles into the header type that is affected by a modifier volume. The context should have been created with either pvr_poly_cxt_col_mod() or pvr_poly_cxt_txr_mod().
dst | Where to store the compiled header. |
src | The context to compile. |
void pvr_sprite_compile | ( | pvr_sprite_hdr_t * | dst, |
const pvr_sprite_cxt_t * | src ) |
Compile a sprite context into a sprite header.
This function compiles a pvr_sprite_cxt_t into the form needed by the hardware for rendering. This is for use with sprite headers.
dst | Where to store the compiled header. |
src | The context to compile. |