KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Compiled headers for polygons and sprites More...
Topics | |
Constants and Masks | |
Polygon header constants and masks | |
TA Command Values | |
Command values for submitting data to the TA | |
Data Structures | |
struct | pvr_poly_hdr_cmd_t |
PVR header command. More... | |
struct | pvr_poly_hdr_mode1_t |
PVR header mode1. More... | |
struct | pvr_poly_hdr_mode2_t |
PVR header mode2. More... | |
struct | pvr_poly_hdr_mode3_t |
PVR header mode3. More... | |
struct | pvr_poly_hdr_t |
PVR polygon header. More... | |
Macros | |
#define | pvr_poly_ic_hdr pvr_poly_hdr |
PVR polygon header with intensity color. | |
#define | pvr_poly_mod_hdr pvr_poly_hdr |
PVR polygon header to be used with modifier volumes. | |
#define | pvr_sprite_hdr pvr_poly_hdr |
PVR polygon header specifically for sprites. | |
#define | pvr_mod_hdr pvr_poly_hdr |
Modifier volume header. | |
#define | pvr_to_pvr_txr_ptr(addr) to_pvr_txr_ptr(addr) |
Get texture address form VRAM address. | |
Typedefs | |
typedef pvr_poly_hdr_t | pvr_poly_ic_hdr_t |
typedef pvr_poly_hdr_t | pvr_poly_mod_hdr_t |
typedef pvr_poly_hdr_t | pvr_sprite_hdr_t |
typedef pvr_poly_hdr_t | pvr_mod_hdr_t |
typedef uint32_t | pvr_txr_ptr_t |
Texture address. | |
Functions | |
static pvr_txr_ptr_t | to_pvr_txr_ptr (pvr_ptr_t addr) |
Get texture address from VRAM address. | |
Compiled headers for polygons and sprites
Structs relative to PVR headers
#define pvr_mod_hdr pvr_poly_hdr |
Modifier volume header.
This is the header that should be submitted when dealing with setting a modifier volume.
#define pvr_poly_ic_hdr pvr_poly_hdr |
PVR polygon header with intensity color.
This is the equivalent of pvr_poly_hdr_t, but for use with intensity color.
#define pvr_poly_mod_hdr pvr_poly_hdr |
PVR polygon header to be used with modifier volumes.
This is the equivalent of a pvr_poly_hdr_t for use when a polygon is to be used with modifier volumes.
#define pvr_sprite_hdr pvr_poly_hdr |
PVR polygon header specifically for sprites.
This is the equivalent of a pvr_poly_hdr_t for use when a quad/sprite is to be rendered. Note that the color data is here, not in the vertices.
#define pvr_to_pvr_txr_ptr | ( | addr | ) | to_pvr_txr_ptr(addr) |
Get texture address form VRAM address.
Alias macro for to_pvr_txr_ptr().
typedef pvr_poly_hdr_t pvr_mod_hdr_t |
typedef pvr_poly_hdr_t pvr_poly_ic_hdr_t |
typedef pvr_poly_hdr_t pvr_poly_mod_hdr_t |
typedef pvr_poly_hdr_t pvr_sprite_hdr_t |
typedef uint32_t pvr_txr_ptr_t |
Texture address.
This type represents an address of a texture in VRAM, pre-processed to be used in headers.
enum pvr_blend_mode_t |
Blending modes.
These are all the blending modes that can be done with regard to alpha blending on the PVR.
enum pvr_clip_mode_t |
enum pvr_color_fmts_t |
enum pvr_cull_mode_t |
Primitive culling modes.
These culling modes can be set by polygons to determine when they are culled. They work pretty much as you'd expect them to if you've ever used any 3D hardware before.
Enumerator | |
---|---|
PVR_CULLING_NONE | Disable culling. |
PVR_CULLING_SMALL | Cull if small. |
PVR_CULLING_CCW | Cull if counterclockwise. |
PVR_CULLING_CW | Cull if clockwise. |
enum pvr_depthcmp_mode_t |
Depth comparison modes.
These set the depth function used for comparisons.
enum pvr_filter_mode_t |
enum pvr_fog_type_t |
enum pvr_hdr_type_t |
enum pvr_list_type_t |
PVR rendering lists.
Each primitive submitted to the PVR must be placed in one of these lists, depending on its characteristics.
enum pvr_pixel_mode_t |
Texture formats.
These are the texture formats that the PVR supports.
enum pvr_strip_len_t |
Texture color calculation modes.
The shading mode specifies how the pixel value used as the "foreground" or "source" for blending is computed.
Here, "tex" represents the pixel value from the texture, and "col" represents the pixel value from the polygon's color. RGB() represents the color channels, A() represents the alpha channel, and ARGB() represents the whole pixel (color + alpha).
Note that the offset color (aka. oargb), if specular lighting is enabled, is added to the result. Its alpha channel is ignored.
enum pvr_uv_size_t |
|
inlinestatic |
Get texture address from VRAM address.
This function can be used to get a texture address that can be used in a PVR header from the texture's VRAM address.
addr | The texture's address in VRAM |