KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
pvr_txr.h File Reference

Texture management with the PVR 3D API. More...

#include <stdint.h>
#include <sys/cdefs.h>
#include <kos/img.h>

Go to the source code of this file.

Macros

#define PVR_TXRLOAD_4BPP   0x01
 4BPP format
 
#define PVR_TXRLOAD_8BPP   0x02
 8BPP format
 
#define PVR_TXRLOAD_16BPP   0x03
 16BPP format
 
#define PVR_TXRLOAD_FMT_MASK   0x0f
 Bits used for basic formats.
 
#define PVR_TXRLOAD_VQ_LOAD   0x10
 Do VQ encoding (not supported yet, if ever)
 
#define PVR_TXRLOAD_INVERT_Y   0x20
 Invert the Y axis while loading.
 
#define PVR_TXRLOAD_FMT_VQ   0x40
 Texture is already VQ encoded.
 
#define PVR_TXRLOAD_FMT_TWIDDLED   0x80
 Texture is already twiddled.
 
#define PVR_TXRLOAD_FMT_NOTWIDDLE   0x80
 Don't twiddle the texture while loading.
 
#define PVR_TXRLOAD_DMA   0x8000
 Use DMA to load the texture.
 
#define PVR_TXRLOAD_NONBLOCK   0x4000
 Use non-blocking loads (only for DMA)
 
#define PVR_TXRLOAD_SQ   0x2000
 Use Store Queues to load.
 

Functions

void pvr_txr_load (const void *src, pvr_ptr_t dst, uint32_t count)
 Load raw texture data from an SH-4 buffer into PVR RAM.
 
void pvr_txr_load_ex (const void *src, pvr_ptr_t dst, uint32_t w, uint32_t h, uint32_t flags)
 Load texture data from an SH-4 buffer into PVR RAM, twiddling it in the process.
 
void pvr_txr_load_kimg (const kos_img_t *img, pvr_ptr_t dst, uint32_t flags)
 Load a KOS Platform Independent Image (subject to constraint checking).
 

Detailed Description

Texture management with the PVR 3D API.

Author
Megan Potter
Roger Cattermole
Paul Boese
Brian Paul
Lawrence Sebald
Benoit Miller
Ruslan Rostovtsev
Falco Girgis