|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
PVR sprite context. More...
#include <dc/pvr.h>
Data Fields | ||
| pvr_list_t | list_type | |
| Primitive list. | ||
| struct { | ||
| bool alpha | ||
| Enable alpha. More... | ||
| pvr_fog_type_t fog_type | ||
| Fog type. More... | ||
| pvr_cull_mode_t culling | ||
| Culling mode. More... | ||
| bool color_clamp | ||
| Enable color clamp. More... | ||
| pvr_clip_mode_t clip_mode | ||
| Clipping mode. More... | ||
| bool specular | ||
| Enable offset color. More... | ||
| } | gen | |
| General parameters. | ||
| struct { | ||
| pvr_blend_mode_t src | ||
| Source blending mode. More... | ||
| pvr_blend_mode_t dst | ||
| Dest blending mode. More... | ||
| bool src_enable | ||
| Source blending enable. More... | ||
| bool dst_enable | ||
| Dest blending enable. More... | ||
| } | blend | |
| struct { | ||
| pvr_depthcmp_mode_t comparison | ||
| Depth comparison mode. More... | ||
| bool write | ||
| Enable depth writes. More... | ||
| } | depth | |
| Depth comparison/write modes. | ||
| struct { | ||
| bool enable | ||
| Enable/disable texturing. More... | ||
| pvr_filter_mode_t filter | ||
| Filtering mode. More... | ||
| bool mipmap | ||
| Enable/disable mipmaps. More... | ||
| pvr_mip_bias_t mipmap_bias | ||
| Mipmap bias. More... | ||
| pvr_uv_flip_t uv_flip | ||
| Enable/disable U/V flipping. More... | ||
| pvr_uv_clamp_t uv_clamp | ||
| Enable/disable U/V clamping. More... | ||
| bool alpha | ||
| True to disable texture alpha. More... | ||
| pvr_txr_shading_mode_t env | ||
| Texture color contribution. More... | ||
| int width | ||
| Texture width (requires a power of 2) More... | ||
| int height | ||
| Texture height (requires a power of 2) More... | ||
| int format | ||
| Texture format. More... | ||
| pvr_ptr_t base | ||
| Texture pointer. More... | ||
| } | txr | |
| Texturing params. | ||
PVR sprite context.
You should use this more human readable format for specifying your sprite contexts, and then compile them into sprite headers when you are ready to start using them.
Unfortunately, it seems that Doxygen chokes up a little bit on this structure, and others like it. The documentation should still be mostly understandable though...
| bool pvr_sprite_cxt_t::alpha |
Enable alpha.
True to disable texture alpha.
| pvr_ptr_t pvr_sprite_cxt_t::base |
Texture pointer.
| struct { ... } pvr_sprite_cxt_t::blend |
| pvr_clip_mode_t pvr_sprite_cxt_t::clip_mode |
Clipping mode.
| bool pvr_sprite_cxt_t::color_clamp |
Enable color clamp.
| pvr_depthcmp_mode_t pvr_sprite_cxt_t::comparison |
Depth comparison mode.
| pvr_cull_mode_t pvr_sprite_cxt_t::culling |
Culling mode.
| struct { ... } pvr_sprite_cxt_t::depth |
Depth comparison/write modes.
| pvr_blend_mode_t pvr_sprite_cxt_t::dst |
Dest blending mode.
| bool pvr_sprite_cxt_t::dst_enable |
Dest blending enable.
| bool pvr_sprite_cxt_t::enable |
Enable/disable texturing.
| pvr_txr_shading_mode_t pvr_sprite_cxt_t::env |
Texture color contribution.
| pvr_filter_mode_t pvr_sprite_cxt_t::filter |
Filtering mode.
| pvr_fog_type_t pvr_sprite_cxt_t::fog_type |
Fog type.
| int pvr_sprite_cxt_t::format |
Texture format.
| struct { ... } pvr_sprite_cxt_t::gen |
General parameters.
| int pvr_sprite_cxt_t::height |
Texture height (requires a power of 2)
| pvr_list_t pvr_sprite_cxt_t::list_type |
Primitive list.
| bool pvr_sprite_cxt_t::mipmap |
Enable/disable mipmaps.
| pvr_mip_bias_t pvr_sprite_cxt_t::mipmap_bias |
Mipmap bias.
| bool pvr_sprite_cxt_t::specular |
Enable offset color.
| pvr_blend_mode_t pvr_sprite_cxt_t::src |
Source blending mode.
| bool pvr_sprite_cxt_t::src_enable |
Source blending enable.
| struct { ... } pvr_sprite_cxt_t::txr |
Texturing params.
| pvr_uv_clamp_t pvr_sprite_cxt_t::uv_clamp |
Enable/disable U/V clamping.
| pvr_uv_flip_t pvr_sprite_cxt_t::uv_flip |
Enable/disable U/V flipping.
| int pvr_sprite_cxt_t::width |
Texture width (requires a power of 2)
| bool pvr_sprite_cxt_t::write |
Enable depth writes.