KallistiOS
##version##
|
PVR initialization structure. More...
#include <dc/pvr.h>
Data Fields | |
int | opb_sizes [5] |
Bin sizes. More... | |
int | vertex_buf_size |
Vertex buffer size (should be a nice round number) More... | |
int | dma_enabled |
Enable vertex DMA? More... | |
int | fsaa_enabled |
Enable horizontal scaling? More... | |
int | autosort_disabled |
Disable translucent polygon autosort? More... | |
PVR initialization structure.
This structure defines how the PVR initializes various parts of the system, including the primitive bin sizes, the vertex buffer size, and whether vertex DMA will be enabled.
You essentially fill one of these in, and pass it to pvr_init().
int pvr_init_params_t::autosort_disabled |
Disable translucent polygon autosort?
Set to non-zero to disable translucent polygon autosorting. By enabling this setting, the PVR acts more like a traditional Z-buffered system when rendering translucent polygons, meaning you must pre-sort them yourself if you want them to appear in the right order.
int pvr_init_params_t::dma_enabled |
Enable vertex DMA?
Set to non-zero if we want to enable vertex DMA mode. Note that if this is set, then all enabled lists need to have a vertex buffer assigned, even if you never use that list for anything.
int pvr_init_params_t::fsaa_enabled |
Enable horizontal scaling?
Set to non-zero if horizontal scaling is to be enabled. By enabling this setting and stretching your image to double the native screen width, you can get horizontal full-screen anti-aliasing.
int pvr_init_params_t::opb_sizes[5] |
Bin sizes.
The bins go in the following order: opaque polygons, opaque modifiers, translucent polygons, translucent modifiers, punch-thrus
int pvr_init_params_t::vertex_buf_size |
Vertex buffer size (should be a nice round number)