25#ifndef __DC_PVR_PVR_TEXTURE_H
26#define __DC_PVR_PVR_TEXTURE_H
107#define PVR_TXRLOAD_4BPP 0x01
108#define PVR_TXRLOAD_8BPP 0x02
109#define PVR_TXRLOAD_16BPP 0x03
110#define PVR_TXRLOAD_FMT_MASK 0x0f
112#define PVR_TXRLOAD_VQ_LOAD 0x10
113#define PVR_TXRLOAD_INVERT_Y 0x20
114#define PVR_TXRLOAD_FMT_VQ 0x40
115#define PVR_TXRLOAD_FMT_TWIDDLED 0x80
116#define PVR_TXRLOAD_FMT_NOTWIDDLE 0x80
117#define PVR_TXRLOAD_DMA 0x8000
118#define PVR_TXRLOAD_NONBLOCK 0x4000
119#define PVR_TXRLOAD_SQ 0x2000
Various common macros used throughout the codebase.
static uint32_t("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
Definition purupuru.h:96
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).
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(const void *src, pvr_ptr_t dst, size_t count)
Load raw texture data from an SH-4 buffer into PVR RAM.
size_t pvr_txr_get_stride(void)
Get the current texture stride width in pixels as set in the PVR.
void pvr_txr_set_stride(size_t texture_width)
Set the global stride width for non-power-of-two textures in PVR RAM.
void * pvr_ptr_t
PVR texture memory pointer.
Definition pvr_mem.h:45
Platform-independent image type.
Platform-indpendent image type.
Definition img.h:51