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

Functions for initializing PVR polygon contexts More...

Functions

void pvr_poly_cxt_col (pvr_poly_cxt_t *dst, pvr_list_t list)
 Fill in a polygon context for non-textured polygons.
 
void pvr_poly_cxt_txr (pvr_poly_cxt_t *dst, pvr_list_t list, int textureformat, int tw, int th, pvr_ptr_t textureaddr, int filtering)
 Fill in a polygon context for a textured polygon.
 
void pvr_sprite_cxt_col (pvr_sprite_cxt_t *dst, pvr_list_t list)
 Fill in a sprite context for non-textured sprites.
 
void pvr_sprite_cxt_txr (pvr_sprite_cxt_t *dst, pvr_list_t list, int textureformat, int tw, int th, pvr_ptr_t textureaddr, int filtering)
 Fill in a sprite context for a textured sprite.
 
void pvr_poly_cxt_col_mod (pvr_poly_cxt_t *dst, pvr_list_t list)
 Fill in a polygon context for non-textured polygons affected by a modifier volume.
 
void pvr_poly_cxt_txr_mod (pvr_poly_cxt_t *dst, pvr_list_t list, int textureformat, int tw, int th, pvr_ptr_t textureaddr, int filtering, int textureformat2, int tw2, int th2, pvr_ptr_t textureaddr2, int filtering2)
 Fill in a polygon context for a textured polygon affected by modifier volumes.
 

Detailed Description

Functions for initializing PVR polygon contexts

Function Documentation

◆ pvr_poly_cxt_col()

void pvr_poly_cxt_col ( pvr_poly_cxt_t * dst,
pvr_list_t list )

Fill in a polygon context for non-textured polygons.

This function fills in a pvr_poly_cxt_t with default parameters appropriate for rendering a non-textured polygon in the given list.

Parameters
dstWhere to store the polygon context.
listThe primitive list to be used.

◆ pvr_poly_cxt_col_mod()

void pvr_poly_cxt_col_mod ( pvr_poly_cxt_t * dst,
pvr_list_t list )

Fill in a polygon context for non-textured polygons affected by a modifier volume.

This function fills in a pvr_poly_cxt_t with default parameters appropriate for rendering a non-textured polygon in the given list that will be affected by modifier volumes.

Parameters
dstWhere to store the polygon context.
listThe primitive list to be used.

◆ pvr_poly_cxt_txr()

void pvr_poly_cxt_txr ( pvr_poly_cxt_t * dst,
pvr_list_t list,
int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
int filtering )

Fill in a polygon context for a textured polygon.

This function fills in a pvr_poly_cxt_t with default parameters appropriate for rendering a textured polygon in the given list.

Parameters
dstWhere to store the polygon context.
listThe primitive list to be used.
textureformatThe format of the texture used.
twThe width of the texture, in pixels.
thThe height of the texture, in pixels.
textureaddrA pointer to the texture.
filteringThe type of filtering to use.
See also
Formats
Sampling Modes

◆ pvr_poly_cxt_txr_mod()

void pvr_poly_cxt_txr_mod ( pvr_poly_cxt_t * dst,
pvr_list_t list,
int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
int filtering,
int textureformat2,
int tw2,
int th2,
pvr_ptr_t textureaddr2,
int filtering2 )

Fill in a polygon context for a textured polygon affected by modifier volumes.

This function fills in a pvr_poly_cxt_t with default parameters appropriate for rendering a textured polygon in the given list and being affected by modifier volumes.

Parameters
dstWhere to store the polygon context.
listThe primitive list to be used.
textureformatThe format of the texture used (outside).
twThe width of the texture, in pixels (outside).
thThe height of the texture, in pixels (outside).
textureaddrA pointer to the texture (outside).
filteringThe type of filtering to use (outside).
textureformat2The format of the texture used (inside).
tw2The width of the texture, in pixels (inside).
th2The height of the texture, in pixels (inside).
textureaddr2A pointer to the texture (inside).
filtering2The type of filtering to use (inside).
See also
Formats
Sampling Modes

◆ pvr_sprite_cxt_col()

void pvr_sprite_cxt_col ( pvr_sprite_cxt_t * dst,
pvr_list_t list )

Fill in a sprite context for non-textured sprites.

This function fills in a pvr_sprite_cxt_t with default parameters appropriate for rendering a non-textured sprite in the given list.

Parameters
dstWhere to store the sprite context.
listThe primitive list to be used.

◆ pvr_sprite_cxt_txr()

void pvr_sprite_cxt_txr ( pvr_sprite_cxt_t * dst,
pvr_list_t list,
int textureformat,
int tw,
int th,
pvr_ptr_t textureaddr,
int filtering )

Fill in a sprite context for a textured sprite.

This function fills in a pvr_sprite_cxt_t with default parameters appropriate for rendering a textured sprite in the given list.

Parameters
dstWhere to store the sprite context.
listThe primitive list to be used.
textureformatThe format of the texture used.
twThe width of the texture, in pixels.
thThe height of the texture, in pixels.
textureaddrA pointer to the texture.
filteringThe type of filtering to use.
See also
Formats
Sampling Modes