|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
PVR polygon context. More...
#include <dc/pvr.h>
Data Fields | ||
| pvr_list_t | list_type | |
| Primitive list. | ||
| struct { | ||
| bool alpha | ||
| Enable alpha outside modifier. More... | ||
| bool shading | ||
| Enable gourad shading. More... | ||
| pvr_fog_type_t fog_type | ||
| Fog type outside modifier. More... | ||
| pvr_cull_mode_t culling | ||
| Culling mode. More... | ||
| bool color_clamp | ||
| Enable color clamping outside modifer. More... | ||
| pvr_clip_mode_t clip_mode | ||
| Clipping mode. More... | ||
| bool modifier_mode | ||
| True normal; false: cheap shadow. More... | ||
| bool specular | ||
| Enable offset color outside modifier. More... | ||
| bool alpha2 | ||
| Enable alpha inside modifier. More... | ||
| pvr_fog_type_t fog_type2 | ||
| Fog type inside modifier. More... | ||
| bool color_clamp2 | ||
| Enable color clamping inside modifer. More... | ||
| } | gen | |
| General parameters. | ||
| struct { | ||
| pvr_blend_mode_t src | ||
| Source blending mode outside modifier. More... | ||
| pvr_blend_mode_t dst | ||
| Dest blending mode outside modifier. More... | ||
| bool src_enable | ||
| Source blending enable outside modifier. More... | ||
| bool dst_enable | ||
| Dest blending enable outside modifier. More... | ||
| pvr_blend_mode_t src2 | ||
| Source blending mode inside modifier. More... | ||
| pvr_blend_mode_t dst2 | ||
| Dest blending mode inside modifier. More... | ||
| bool src_enable2 | ||
| Source blending mode inside modifier. More... | ||
| bool dst_enable2 | ||
| Dest blending mode inside modifier. More... | ||
| } | blend | |
| Blending parameters. | ||
| struct { | ||
| pvr_color_fmts_t color | ||
| Color format in vertex. More... | ||
| bool uv | ||
| True: 16-bit floating-point U/Vs; False: 32-bit. More... | ||
| bool modifier | ||
| Enable modifier effects. More... | ||
| } | fmt | |
| Format control. | ||
| 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 outside modifier. | ||
| 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... | ||
| } | 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...
| bool pvr_poly_cxt_t::alpha |
Enable alpha outside modifier.
True to disable texture alpha.
Referenced by render_back_buffer_step1(), and render_back_buffer_step2().
| bool pvr_poly_cxt_t::alpha2 |
Enable alpha inside modifier.
| pvr_ptr_t pvr_poly_cxt_t::base |
Texture pointer.
| struct { ... } pvr_poly_cxt_t::blend |
Blending parameters.
Referenced by render_back_buffer_step2(), setup(), and switch_textured().
| pvr_clip_mode_t pvr_poly_cxt_t::clip_mode |
Clipping mode.
| pvr_color_fmts_t pvr_poly_cxt_t::color |
Color format in vertex.
| bool pvr_poly_cxt_t::color_clamp |
Enable color clamping outside modifer.
| bool pvr_poly_cxt_t::color_clamp2 |
Enable color clamping inside modifer.
| pvr_depthcmp_mode_t pvr_poly_cxt_t::comparison |
Depth comparison mode.
| pvr_cull_mode_t pvr_poly_cxt_t::culling |
Culling mode.
Referenced by do_sphere_test().
| struct { ... } pvr_poly_cxt_t::depth |
Depth comparison/write modes.
| pvr_blend_mode_t pvr_poly_cxt_t::dst |
Dest blending mode outside modifier.
Referenced by render_back_buffer_step2(), setup(), and switch_textured().
| pvr_blend_mode_t pvr_poly_cxt_t::dst2 |
Dest blending mode inside modifier.
| bool pvr_poly_cxt_t::dst_enable |
Dest blending enable outside modifier.
| bool pvr_poly_cxt_t::dst_enable2 |
Dest blending mode inside modifier.
| bool pvr_poly_cxt_t::enable |
Enable/disable texturing.
| pvr_txr_shading_mode_t pvr_poly_cxt_t::env |
Texture color contribution.
Referenced by render_back_buffer_step2(), and setup().
| pvr_filter_mode_t pvr_poly_cxt_t::filter |
Filtering mode.
| struct { ... } pvr_poly_cxt_t::fmt |
Format control.
Referenced by setup().
| pvr_fog_type_t pvr_poly_cxt_t::fog_type |
Fog type outside modifier.
| pvr_fog_type_t 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.
Referenced by do_sphere_test(), setup(), setup(), and setup().
| int pvr_poly_cxt_t::height |
Texture height (requires a power of 2)
| pvr_list_t pvr_poly_cxt_t::list_type |
Primitive list.
| bool pvr_poly_cxt_t::mipmap |
Enable/disable mipmaps.
| pvr_mip_bias_t pvr_poly_cxt_t::mipmap_bias |
Mipmap bias.
| bool pvr_poly_cxt_t::modifier |
Enable modifier effects.
Referenced by setup().
| bool pvr_poly_cxt_t::modifier_mode |
True normal; false: cheap shadow.
Referenced by setup().
| bool pvr_poly_cxt_t::specular |
Enable offset color outside modifier.
Referenced by setup().
| pvr_blend_mode_t pvr_poly_cxt_t::src |
Source blending mode outside modifier.
Referenced by render_back_buffer_step2(), setup(), and switch_textured().
| pvr_blend_mode_t pvr_poly_cxt_t::src2 |
Source blending mode inside modifier.
| bool pvr_poly_cxt_t::src_enable |
Source blending enable outside modifier.
| bool pvr_poly_cxt_t::src_enable2 |
Source blending mode inside modifier.
| struct { ... } pvr_poly_cxt_t::txr |
Texturing params outside modifier.
Referenced by render_back_buffer_step1(), render_back_buffer_step2(), and setup().
| struct { ... } pvr_poly_cxt_t::txr2 |
Texturing params inside modifier.
| bool pvr_poly_cxt_t::uv |
True: 16-bit floating-point U/Vs; False: 32-bit.
| pvr_uv_clamp_t pvr_poly_cxt_t::uv_clamp |
Enable/disable U/V clamping.
| pvr_uv_flip_t pvr_poly_cxt_t::uv_flip |
Enable/disable U/V flipping.
| int pvr_poly_cxt_t::width |
Texture width (requires a power of 2)
| bool pvr_poly_cxt_t::write |
Enable depth writes.