KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

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.
 

Detailed Description

API for compiling primitive contexts into headers

Function Documentation

◆ pvr_mod_compile()

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.

Parameters
dstWhere to store the modifier header.
listThe primitive list to be used.
modeThe mode for this modifier.
cullThe culling mode to use.
See also
Modes
Culling Modes

◆ pvr_poly_compile()

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.

Parameters
dstWhere to store the compiled header.
srcThe context to compile.

◆ pvr_poly_mod_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().

Parameters
dstWhere to store the compiled header.
srcThe context to compile.

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

Parameters
dstWhere to store the compiled header.
srcThe context to compile.