KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

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
 

Variables

static const uint32_t PVR_TXRFMT_NOSTRIDE = PVR_TXRFMT_POW2_STRIDE
 
static const uint32_t PVR_TXRFMT_STRIDE = PVR_TXRFMT_X32_STRIDE
 

Detailed Description

PowerVR texture formats

These are the texture formats that the PVR supports. Note that some of these, you can OR together with other values.

Macro Definition Documentation

◆ PVR_TXRFMT_4BPP_PAL

#define PVR_TXRFMT_4BPP_PAL ( x)
Value:
((x) << 21)
static GLint x
Definition scissor.c:38

4BPP palette selector

Parameters
xThe palette index

Referenced by main().

◆ PVR_TXRFMT_8BPP_PAL

#define PVR_TXRFMT_8BPP_PAL ( x)
Value:
((x) << 25)

8BPP palette selector

Parameters
xThe palette index

Referenced by main().

◆ PVR_TXRFMT_ARGB1555

#define PVR_TXRFMT_ARGB1555   (0 << 27)

◆ PVR_TXRFMT_ARGB4444

#define PVR_TXRFMT_ARGB4444   (2 << 27)

◆ PVR_TXRFMT_BUMP

#define PVR_TXRFMT_BUMP   (4 << 27)

Bumpmap format.

Referenced by glTextureLoadPVR(), PVR_TextureColor(), and setup().

◆ PVR_TXRFMT_NONE

#define PVR_TXRFMT_NONE   0

No texture.

Referenced by glTextureLoadPVR(), and PVR_TextureFormat().

◆ PVR_TXRFMT_NONTWIDDLED

#define PVR_TXRFMT_NONTWIDDLED   (1 << 26)

◆ PVR_TXRFMT_PAL4BPP

#define PVR_TXRFMT_PAL4BPP   (5 << 27)

4BPP paletted format

Referenced by glTextureLoadPVR(), main(), and PVR_TextureColor().

◆ PVR_TXRFMT_PAL8BPP

#define PVR_TXRFMT_PAL8BPP   (6 << 27)

8BPP paletted format

Referenced by glTextureLoadPVR(), main(), and PVR_TextureColor().

◆ PVR_TXRFMT_POW2_STRIDE

#define PVR_TXRFMT_POW2_STRIDE   (0 << 25)

Stride is a power-of-two.

◆ PVR_TXRFMT_RGB565

◆ PVR_TXRFMT_TWIDDLED

#define PVR_TXRFMT_TWIDDLED   (0 << 26)

Texture is twiddled.

Referenced by glTextureLoadPVR(), PVR_TextureFormat(), setup(), setup(), and switch_textured().

◆ PVR_TXRFMT_VQ_DISABLE

#define PVR_TXRFMT_VQ_DISABLE   (0 << 30)

Not VQ encoded.

◆ PVR_TXRFMT_VQ_ENABLE

#define PVR_TXRFMT_VQ_ENABLE   (1 << 30)

◆ PVR_TXRFMT_X32_STRIDE

#define PVR_TXRFMT_X32_STRIDE   (1 << 25)

Stride is multiple of 32.

Referenced by glTextureLoadPVR(), load_texture(), PVR_TextureFormat(), and render_back_buffer_step2().

◆ PVR_TXRFMT_YUV422

#define PVR_TXRFMT_YUV422   (3 << 27)

YUV422 format.

Referenced by glTextureLoadPVR(), PVR_TextureColor(), setup_pvr(), and setup_pvr().

Variable Documentation

◆ PVR_TXRFMT_NOSTRIDE

const uint32_t PVR_TXRFMT_NOSTRIDE = PVR_TXRFMT_POW2_STRIDE
static

◆ PVR_TXRFMT_STRIDE

const uint32_t PVR_TXRFMT_STRIDE = PVR_TXRFMT_X32_STRIDE
static