KallistiOS git master
Independent SDK for the Sega Dreamcast
|
PVR polygon context. More...
#include <dc/pvr.h>
Data Fields | ||
int | list_type | |
Primitive list. | ||
struct { | ||
int alpha | ||
Enable or disable alpha outside modifier. More... | ||
int shading | ||
Shading type. More... | ||
int fog_type | ||
Fog type outside modifier. More... | ||
int culling | ||
Culling mode. More... | ||
int color_clamp | ||
Color clamp enable/disable outside modifier. More... | ||
int clip_mode | ||
Clipping mode. More... | ||
int modifier_mode | ||
Modifier mode. More... | ||
int specular | ||
Offset color enable/disable outside modifier. More... | ||
int alpha2 | ||
Enable/disable alpha inside modifier. More... | ||
int fog_type2 | ||
Fog type inside modifier. More... | ||
int color_clamp2 | ||
Color clamp enable/disable inside modifier. More... | ||
} | gen | |
General parameters. | ||
struct { | ||
int src | ||
Source blending mode outside modifier. More... | ||
int dst | ||
Dest blending mode outside modifier. More... | ||
int src_enable | ||
Source blending enable outside modifier. More... | ||
int dst_enable | ||
Dest blending enable outside modifier. More... | ||
int src2 | ||
Source blending mode inside modifier. More... | ||
int dst2 | ||
Dest blending mode inside modifier. More... | ||
int src_enable2 | ||
Source blending mode inside modifier. More... | ||
int dst_enable2 | ||
Dest blending mode inside modifier. More... | ||
} | blend | |
Blending parameters. | ||
struct { | ||
int color | ||
Color format in vertex. More... | ||
int uv | ||
U/V data format in vertex. More... | ||
int modifier | ||
Enable or disable modifier effect. More... | ||
} | fmt | |
Format control. | ||
struct { | ||
int comparison | ||
Depth comparison mode. More... | ||
int write | ||
Enable or disable depth writes. More... | ||
} | depth | |
Depth comparison/write modes. | ||
struct { | ||
int enable | ||
Enable/disable texturing. More... | ||
int filter | ||
Filtering mode. More... | ||
int mipmap | ||
Enable/disable mipmaps. More... | ||
int mipmap_bias | ||
Mipmap bias. More... | ||
int uv_flip | ||
Enable/disable U/V flipping. More... | ||
int uv_clamp | ||
Enable/disable U/V clamping. More... | ||
int alpha | ||
Enable/disable texture alpha. More... | ||
int 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 outside modifier. | ||
struct { | ||
int enable | ||
Enable/disable texturing. More... | ||
int filter | ||
Filtering mode. More... | ||
int mipmap | ||
Enable/disable mipmaps. More... | ||
int mipmap_bias | ||
Mipmap bias. More... | ||
int uv_flip | ||
Enable/disable U/V flipping. More... | ||
int uv_clamp | ||
Enable/disable U/V clamping. More... | ||
int alpha | ||
Enable/disable texture alpha. More... | ||
int 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... | ||
} | txr2 | |
Texturing params inside modifier. | ||
PVR polygon context.
You should use this more human readable format for specifying your polygon contexts, and then compile them into polygon headers when you are ready to start using them.
This has embedded structures in it for two reasons; the first reason is to make it easier for me to add new stuff later without breaking existing code. The second reason is to make it more readable and usable.
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...
int pvr_poly_cxt_t::alpha |
Enable or disable alpha outside modifier.
Enable/disable texture alpha.
int pvr_poly_cxt_t::alpha2 |
Enable/disable alpha inside modifier.
pvr_ptr_t pvr_poly_cxt_t::base |
Texture pointer.
struct { ... } pvr_poly_cxt_t::blend |
Blending parameters.
int pvr_poly_cxt_t::clip_mode |
Clipping mode.
int pvr_poly_cxt_t::color |
Color format in vertex.
int pvr_poly_cxt_t::color_clamp |
Color clamp enable/disable outside modifier.
int pvr_poly_cxt_t::color_clamp2 |
Color clamp enable/disable inside modifier.
int pvr_poly_cxt_t::comparison |
Depth comparison mode.
int pvr_poly_cxt_t::culling |
Culling mode.
struct { ... } pvr_poly_cxt_t::depth |
Depth comparison/write modes.
int pvr_poly_cxt_t::dst |
Dest blending mode outside modifier.
int pvr_poly_cxt_t::dst2 |
Dest blending mode inside modifier.
int pvr_poly_cxt_t::dst_enable |
Dest blending enable outside modifier.
int pvr_poly_cxt_t::dst_enable2 |
Dest blending mode inside modifier.
int pvr_poly_cxt_t::enable |
Enable/disable texturing.
int pvr_poly_cxt_t::env |
Texture color contribution.
int pvr_poly_cxt_t::filter |
Filtering mode.
struct { ... } pvr_poly_cxt_t::fmt |
Format control.
int pvr_poly_cxt_t::fog_type |
Fog type outside modifier.
int pvr_poly_cxt_t::fog_type2 |
Fog type inside modifier.
int pvr_poly_cxt_t::format |
Texture format.
struct { ... } pvr_poly_cxt_t::gen |
General parameters.
int pvr_poly_cxt_t::height |
Texture height (requires a power of 2)
int pvr_poly_cxt_t::list_type |
Primitive list.
int pvr_poly_cxt_t::mipmap |
Enable/disable mipmaps.
int pvr_poly_cxt_t::mipmap_bias |
Mipmap bias.
int pvr_poly_cxt_t::modifier |
Enable or disable modifier effect.
int pvr_poly_cxt_t::modifier_mode |
Modifier mode.
int pvr_poly_cxt_t::shading |
Shading type.
int pvr_poly_cxt_t::specular |
Offset color enable/disable outside modifier.
int pvr_poly_cxt_t::src |
Source blending mode outside modifier.
int pvr_poly_cxt_t::src2 |
Source blending mode inside modifier.
int pvr_poly_cxt_t::src_enable |
Source blending enable outside modifier.
int pvr_poly_cxt_t::src_enable2 |
Source blending mode inside modifier.
struct { ... } pvr_poly_cxt_t::txr |
Texturing params outside modifier.
struct { ... } pvr_poly_cxt_t::txr2 |
Texturing params inside modifier.
int pvr_poly_cxt_t::uv |
U/V data format in vertex.
int pvr_poly_cxt_t::uv_clamp |
Enable/disable U/V clamping.
int pvr_poly_cxt_t::uv_flip |
Enable/disable U/V flipping.
int pvr_poly_cxt_t::width |
Texture width (requires a power of 2)
int pvr_poly_cxt_t::write |
Enable or disable depth writes.