|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
PowerVR texture formats More...
Macros | |
| #define | PVR_TXRFMT_NONE 0 |
| No texture. | |
| #define | PVR_TXRFMT_VQ_DISABLE (0 << 30) |
| Not VQ encoded. | |
| #define | PVR_TXRFMT_VQ_ENABLE (1 << 30) |
| VQ encoded. | |
| #define | PVR_TXRFMT_ARGB1555 (0 << 27) |
| 16-bit ARGB1555 | |
| #define | PVR_TXRFMT_RGB565 (1 << 27) |
| 16-bit RGB565 | |
| #define | PVR_TXRFMT_ARGB4444 (2 << 27) |
| 16-bit ARGB4444 | |
| #define | PVR_TXRFMT_YUV422 (3 << 27) |
| YUV422 format. | |
| #define | PVR_TXRFMT_BUMP (4 << 27) |
| Bumpmap format. | |
| #define | PVR_TXRFMT_PAL4BPP (5 << 27) |
| 4BPP paletted format | |
| #define | PVR_TXRFMT_PAL8BPP (6 << 27) |
| 8BPP paletted format | |
| #define | PVR_TXRFMT_TWIDDLED (0 << 26) |
| Texture is twiddled. | |
| #define | PVR_TXRFMT_NONTWIDDLED (1 << 26) |
| Texture is not twiddled. | |
| #define | PVR_TXRFMT_POW2_STRIDE (0 << 25) |
| Stride is a power-of-two. | |
| #define | PVR_TXRFMT_X32_STRIDE (1 << 25) |
| Stride is multiple of 32. | |
| #define | PVR_TXRFMT_8BPP_PAL(x) |
| 8BPP palette selector | |
| #define | PVR_TXRFMT_4BPP_PAL(x) |
| 4BPP palette selector | |
Functions | |
| static const uint32_t | PVR_TXRFMT_NOSTRIDE ("Please use PVR_TXRFMT_POW2_STRIDE.") |
| static const uint32_t | PVR_TXRFMT_STRIDE ("Please use PVR_TXRFMT_X32_STRIDE. Note this may cause breakage as PVR_TXRFMT_STRIDE was never working correctly.") |
PowerVR texture formats
These are the texture formats that the PVR supports. Note that some of these, you can OR together with other values.
| #define PVR_TXRFMT_4BPP_PAL | ( | x | ) |
| #define PVR_TXRFMT_8BPP_PAL | ( | x | ) |
| #define PVR_TXRFMT_ARGB1555 (0 << 27) |
16-bit ARGB1555
Referenced by glTextureLoadPVR(), PVR_TextureColor(), and render_back_buffer_step1().
| #define PVR_TXRFMT_ARGB4444 (2 << 27) |
16-bit ARGB4444
Referenced by draw_string(), font_init(), glTextureLoadPVR(), PVR_TextureColor(), and setup_util_texture().
| #define PVR_TXRFMT_BUMP (4 << 27) |
Bumpmap format.
Referenced by glTextureLoadPVR(), PVR_TextureColor(), and setup().
| #define PVR_TXRFMT_NONE 0 |
No texture.
Referenced by glTextureLoadPVR(), and PVR_TextureFormat().
| #define PVR_TXRFMT_NONTWIDDLED (1 << 26) |
Texture is not twiddled.
Referenced by bkg_render(), draw_textured(), font_init(), glTextureLoadPVR(), load_texture(), PVR_TextureFormat(), render_back_buffer_step2(), setup_pvr(), setup_pvr(), and setup_util_texture().
| #define PVR_TXRFMT_PAL4BPP (5 << 27) |
4BPP paletted format
Referenced by glTextureLoadPVR(), main(), and PVR_TextureColor().
| #define PVR_TXRFMT_PAL8BPP (6 << 27) |
8BPP paletted format
Referenced by glTextureLoadPVR(), main(), and PVR_TextureColor().
| #define PVR_TXRFMT_POW2_STRIDE (0 << 25) |
Stride is a power-of-two.
| #define PVR_TXRFMT_RGB565 (1 << 27) |
16-bit RGB565
Referenced by _display_png_file(), bkg_render(), draw_back(), draw_box(), draw_textured(), glTextureLoadPVR(), load_texture(), pvr_setup(), PVR_TextureColor(), render_back_buffer_step2(), setup(), setup(), and switch_textured().
| #define PVR_TXRFMT_TWIDDLED (0 << 26) |
Texture is twiddled.
Referenced by glTextureLoadPVR(), PVR_TextureFormat(), setup(), setup(), and switch_textured().
| #define PVR_TXRFMT_VQ_DISABLE (0 << 30) |
Not VQ encoded.
| #define PVR_TXRFMT_VQ_ENABLE (1 << 30) |
VQ encoded.
Referenced by glTextureLoadPVR(), glTextureLoadPVR(), loadtxr(), PVR_TextureFormat(), setup(), setup(), and switch_textured().
| #define PVR_TXRFMT_X32_STRIDE (1 << 25) |
Stride is multiple of 32.
Referenced by glTextureLoadPVR(), load_texture(), PVR_TextureFormat(), and render_back_buffer_step2().
| #define PVR_TXRFMT_YUV422 (3 << 27) |
YUV422 format.
Referenced by glTextureLoadPVR(), PVR_TextureColor(), setup_pvr(), and setup_pvr().
|
static |
|
static |