Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
GXTexture.h
Go to the documentation of this file.
1#ifndef GXTEXTURE_H
2#define GXTEXTURE_H
3
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef GXTexRegion* (*GXTexRegionCallback)(const GXTexObj* t_obj, GXTexMapID id);
11typedef GXTlutRegion* (*GXTlutRegionCallback)(u32 idx);
12
13u32 GXGetTexBufferSize(u16 width, u16 height, u32 format, GXBool mipmap, u8 max_lod);
14void __GetImageTileCount(GXTexFmt format, u16 width, u16 height, u32* a, u32* b, u32* c);
15void GXInitTexObj(GXTexObj* obj, void* image, u16 width, u16 height, GXTexFmt fmt,
17void GXInitTexObjCI(GXTexObj* obj, void* image, u16 width, u16 height, GXCITexFmt format,
18 GXTexWrapMode wrapS, GXTexWrapMode wrapT, GXBool mipmap, u32 tlut_name);
31void GXLoadTlut(GXTlutObj* obj, u32 tlut_name);
35void GXInvalidateTexAll(void);
36
39
41
43void __GXSetSUTexRegs();
45
46#ifdef __cplusplus
47};
48#endif
49
50#endif /* GXTEXTURE_H */
enum _GXTexCoordID GXTexCoordID
enum _GXTlutSize GXTlutSize
enum _GXTexFmt GXTexFmt
enum _GXTexMapID GXTexMapID
enum _GXTexCacheSize GXTexCacheSize
enum _GXTexWrapMode GXTexWrapMode
enum _GXTlutFmt GXTlutFmt
enum _GXCITexFmt GXCITexFmt
enum _GXTexFilter GXTexFilter
u8 GXBool
Definition GXEnum.h:23
enum _GXAnisotropy GXAnisotropy
GXTlutRegion *(* GXTlutRegionCallback)(u32 idx)
Definition GXTexture.h:11
void GXInitTlutObj(GXTlutObj *obj, void *lut, GXTlutFmt fmt, u16 entry_num)
Definition GXTexture.c:346
void __GXSetTmemConfig()
GXTlutRegionCallback GXSetTlutRegionCallback(GXTlutRegionCallback callback)
Definition GXTexture.c:454
void __GXSetSUTexRegs()
Definition GXTexture.c:500
void __GetImageTileCount(GXTexFmt format, u16 width, u16 height, u32 *a, u32 *b, u32 *c)
Definition GXTexture.c:92
GXTexWrapMode GXGetTexObjWrapS(GXTexObj *obj)
Definition GXTexture.c:282
GXTexWrapMode GXGetTexObjWrapT(GXTexObj *obj)
Definition GXTexture.c:287
void __SetSURegs()
void GXInitTexCacheRegion(GXTexRegion *region, GXBool is_32b_mipmap, u32 tmem_even, GXTexCacheSize size_even, u32 tmem_odd, GXTexCacheSize size_odd)
Definition GXTexture.c:378
u32 GXGetTexObjTlut(GXTexObj *obj)
Definition GXTexture.c:297
GXTexRegionCallback GXSetTexRegionCallback(GXTexRegionCallback callback)
Definition GXTexture.c:447
void GXInvalidateTexAll(void)
Definition GXTexture.c:437
void GXLoadTlut(GXTlutObj *obj, u32 tlut_name)
Definition GXTexture.c:359
GXTexRegion *(* GXTexRegionCallback)(const GXTexObj *t_obj, GXTexMapID id)
Definition GXTexture.h:10
void GXLoadTexObj(GXTexObj *obj, GXTexMapID id)
Definition GXTexture.c:339
void GXInitTexObj(GXTexObj *obj, void *image, u16 width, u16 height, GXTexFmt fmt, GXTexWrapMode wrapS, GXTexWrapMode wrapT, GXBool mipmap)
Definition GXTexture.c:111
GXTexFmt GXGetTexObjFmt(const GXTexObj *obj)
Definition GXTexture.c:277
GXBool GXGetTexObjMipMap(const GXTexObj *obj)
Definition GXTexture.c:292
void GXInitTexObjLOD(GXTexObj *obj, GXTexFilter min_filter, GXTexFilter max_filter, f32 min_lod, f32 max_lod, f32 lod_bias, GXBool bias_clamp, GXBool edge_lod, GXAnisotropy aniso)
Definition GXTexture.c:228
u16 GXGetTexObjHeight(GXTexObj *obj)
Definition GXTexture.c:272
void GXInitTexObjCI(GXTexObj *obj, void *image, u16 width, u16 height, GXCITexFmt format, GXTexWrapMode wrapS, GXTexWrapMode wrapT, GXBool mipmap, u32 tlut_name)
Definition GXTexture.c:193
void GXSetTexCoordScaleManually(GXTexCoordID coord, GXBool enable, u16 s_scale, u16 t_scale)
Definition GXTexture.c:461
void GXInitTlutRegion(GXTlutRegion *region, u32 tmem_addr, GXTlutSize tlut_size)
Definition GXTexture.c:427
u16 GXGetTexObjWidth(GXTexObj *obj)
Definition GXTexture.c:267
T cLib_calcTimer(T *value)
Definition c_lib.h:74
static SECTION_RODATA u8 const id[8]
Definition d_a_npc_bans.cpp:1309
void GXGetTexBufferSize()
c
Definition e_acos.c:97
a
Definition k_cos.c:89
Definition d_a_ep.cpp:147
Definition GXStruct.h:95
Definition GXStruct.h:53
Definition GXStruct.h:103
unsigned long u32
Definition types.h:10
float f32
Definition types.h:22
unsigned short u16
Definition types.h:9
unsigned char u8
Definition types.h:8