|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Miscellaneous utilities for the PVR API. More...
Go to the source code of this file.
Data Structures | |
| struct | pvr_stats_t |
| PVR statistics structure. More... | |
Macros | |
| #define | PVR_PACK_COLOR(a, r, g, b) |
| Pack four floating point color values into a 32-bit integer form. | |
Functions | |
| static uint32_t | PVR_PACK_16BIT_UV (float u, float v) |
| Pack two floating point coordinates into one 32-bit value, truncating them to 16-bits each. | |
| void | pvr_set_bg_color (float r, float g, float b) |
| Set the background plane color. | |
| void | pvr_set_shadow_scale (bool enable, float scale_value) |
| Set cheap shadow parameters. | |
| void | pvr_set_zclip (float zc) |
| Set Z clipping depth. | |
| int | pvr_set_vertical_scale (float factor) |
| Set the vertical scale factor. | |
| void | pvr_set_presort_mode (bool presort) |
| Set the translucent polygon sort mode for the next frame. | |
| int | pvr_get_vbl_count (void) |
| Retrieve the current VBlank count. | |
| int | pvr_get_stats (pvr_stats_t *stat) |
| Get the current statistics from the PVR. | |
Miscellaneous utilities for the PVR API.
| #define PVR_PACK_COLOR | ( | a, | |
| r, | |||
| g, | |||
| b ) |
Pack four floating point color values into a 32-bit integer form.
All of the color values should be between 0 and 1.
| a | Alpha value |
| r | Red value |
| g | Green value |
| b | Blue value |
|
inlinestatic |
Pack two floating point coordinates into one 32-bit value, truncating them to 16-bits each.
| u | First coordinate to pack |
| v | Second coordinate to pack |
References uint32_t().