2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _DOLPHIN_GXTEXTURE
|
|
|
|
#define _DOLPHIN_GXTEXTURE
|
2022-08-30 04:05:16 +00:00
|
|
|
|
|
|
|
#include <dolphin/gx/GXEnum.h>
|
|
|
|
#include <dolphin/gx/GXStruct.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-11-30 01:56:37 +00:00
|
|
|
typedef GXTexRegion* (*GXTexRegionCallback)(const GXTexObj* obj, GXTexMapID id);
|
|
|
|
|
2022-09-18 06:05:46 +00:00
|
|
|
void GXInitTexObj(GXTexObj* obj, const void* data, u16 width, u16 height, u32 format,
|
|
|
|
GXTexWrapMode wrapS, GXTexWrapMode wrapT, GXBool mipmap);
|
|
|
|
void GXInitTexObjCI(GXTexObj* obj, const void* data, u16 width, u16 height, GXCITexFmt format,
|
|
|
|
GXTexWrapMode wrapS, GXTexWrapMode wrapT, GXBool mipmap, u32 tlut);
|
2022-08-30 04:05:16 +00:00
|
|
|
void GXInitTexObjData(GXTexObj* obj, const void* data);
|
2022-09-18 06:05:46 +00:00
|
|
|
void GXInitTexObjLOD(GXTexObj* obj, GXTexFilter min_filt, GXTexFilter mag_filt, f32 min_lod,
|
|
|
|
f32 max_lod, f32 lod_bias, GXBool bias_clamp, GXBool do_edge_lod,
|
|
|
|
GXAnisotropy max_aniso);
|
2022-08-30 04:05:16 +00:00
|
|
|
void GXLoadTexObj(GXTexObj* obj, GXTexMapID id);
|
|
|
|
u32 GXGetTexBufferSize(u16 width, u16 height, u32 format, GXBool mipmap, u8 max_lod);
|
|
|
|
void GXInvalidateTexAll();
|
|
|
|
void GXInitTexObjWrapMode(GXTexObj* obj, GXTexWrapMode s, GXTexWrapMode t);
|
|
|
|
void GXInitTlutObj(GXTlutObj* obj, const void* data, GXTlutFmt format, u16 entries);
|
|
|
|
void GXLoadTlut(const GXTlutObj* obj, GXTlut idx);
|
2022-08-30 22:48:44 +00:00
|
|
|
void GXSetTexCoordScaleManually(GXTexCoordID coord, GXBool enable, u16 ss, u16 ts);
|
2022-11-30 01:56:37 +00:00
|
|
|
void GXInitTexCacheRegion(GXTexRegion* region, GXBool is_32b_mipmap, u32 tmem_even,
|
|
|
|
GXTexCacheSize size_even, u32 tmem_odd, GXTexCacheSize size_odd);
|
|
|
|
GXTexRegionCallback GXSetTexRegionCallback(GXTexRegionCallback callback);
|
2022-12-02 19:35:58 +00:00
|
|
|
void GXInvalidateTexRegion(const GXTexRegion* region);
|
2022-08-30 04:05:16 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _DOLPHIN_GXTEXTURE
|