Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
GXTexture.h File Reference

Go to the source code of this file.

Typedefs

typedef GXTexRegion *(* GXTexRegionCallback) (const GXTexObj *t_obj, GXTexMapID id)
 
typedef GXTlutRegion *(* GXTlutRegionCallback) (u32 idx)
 

Functions

u32 GXGetTexBufferSize (u16 width, u16 height, u32 format, GXBool mipmap, u8 max_lod)
 
void __GetImageTileCount (GXTexFmt format, u16 width, u16 height, u32 *a, u32 *b, u32 *c)
 
void GXInitTexObj (GXTexObj *obj, void *image, u16 width, u16 height, GXTexFmt fmt, GXTexWrapMode wrapS, GXTexWrapMode wrapT, GXBool mipmap)
 
void GXInitTexObjCI (GXTexObj *obj, void *image, u16 width, u16 height, GXCITexFmt format, GXTexWrapMode wrapS, GXTexWrapMode wrapT, GXBool mipmap, u32 tlut_name)
 
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)
 
u16 GXGetTexObjWidth (GXTexObj *obj)
 
u16 GXGetTexObjHeight (GXTexObj *obj)
 
GXTexFmt GXGetTexObjFmt (const GXTexObj *obj)
 
GXTexWrapMode GXGetTexObjWrapS (GXTexObj *obj)
 
GXTexWrapMode GXGetTexObjWrapT (GXTexObj *obj)
 
GXBool GXGetTexObjMipMap (const GXTexObj *obj)
 
u32 GXGetTexObjTlut (GXTexObj *obj)
 
void GXLoadTexObj (GXTexObj *obj, GXTexMapID id)
 
void GXInitTlutObj (GXTlutObj *obj, void *lut, GXTlutFmt fmt, u16 entry_num)
 
void GXLoadTlut (GXTlutObj *obj, u32 tlut_name)
 
void GXInitTexCacheRegion (GXTexRegion *region, GXBool is_32b_mipmap, u32 tmem_even, GXTexCacheSize size_even, u32 tmem_odd, GXTexCacheSize size_odd)
 
void GXInitTlutRegion (GXTlutRegion *region, u32 tmem_addr, GXTlutSize tlut_size)
 
void GXInvalidateTexAll (void)
 
GXTexRegionCallback GXSetTexRegionCallback (GXTexRegionCallback callback)
 
GXTlutRegionCallback GXSetTlutRegionCallback (GXTlutRegionCallback callback)
 
void GXSetTexCoordScaleManually (GXTexCoordID coord, GXBool enable, u16 s_scale, u16 t_scale)
 
void __SetSURegs ()
 
void __GXSetSUTexRegs ()
 
void __GXSetTmemConfig ()
 

Typedef Documentation

◆ GXTexRegionCallback

typedef GXTexRegion *(* GXTexRegionCallback) (const GXTexObj *t_obj, GXTexMapID id)

◆ GXTlutRegionCallback

typedef GXTlutRegion *(* GXTlutRegionCallback) (u32 idx)

Function Documentation

◆ __GetImageTileCount()

void __GetImageTileCount ( GXTexFmt  format,
u16  width,
u16  height,
u32 a,
u32 b,
u32 c 
)

◆ __GXSetSUTexRegs()

void __GXSetSUTexRegs ( )

◆ __GXSetTmemConfig()

void __GXSetTmemConfig ( )

◆ __SetSURegs()

void __SetSURegs ( )

◆ GXGetTexBufferSize()

u32 GXGetTexBufferSize ( u16  width,
u16  height,
u32  format,
GXBool  mipmap,
u8  max_lod 
)

◆ GXGetTexObjFmt()

GXTexFmt GXGetTexObjFmt ( const GXTexObj obj)

◆ GXGetTexObjHeight()

u16 GXGetTexObjHeight ( GXTexObj obj)

◆ GXGetTexObjMipMap()

GXBool GXGetTexObjMipMap ( const GXTexObj obj)

◆ GXGetTexObjTlut()

u32 GXGetTexObjTlut ( GXTexObj obj)

◆ GXGetTexObjWidth()

u16 GXGetTexObjWidth ( GXTexObj obj)

◆ GXGetTexObjWrapS()

GXTexWrapMode GXGetTexObjWrapS ( GXTexObj obj)

◆ GXGetTexObjWrapT()

GXTexWrapMode GXGetTexObjWrapT ( GXTexObj obj)

◆ GXInitTexCacheRegion()

void GXInitTexCacheRegion ( GXTexRegion region,
GXBool  is_32b_mipmap,
u32  tmem_even,
GXTexCacheSize  size_even,
u32  tmem_odd,
GXTexCacheSize  size_odd 
)

◆ GXInitTexObj()

void GXInitTexObj ( GXTexObj obj,
void image,
u16  width,
u16  height,
GXTexFmt  fmt,
GXTexWrapMode  wrapS,
GXTexWrapMode  wrapT,
GXBool  mipmap 
)

◆ GXInitTexObjCI()

void GXInitTexObjCI ( GXTexObj obj,
void image,
u16  width,
u16  height,
GXCITexFmt  format,
GXTexWrapMode  wrapS,
GXTexWrapMode  wrapT,
GXBool  mipmap,
u32  tlut_name 
)

◆ GXInitTexObjLOD()

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 
)

◆ GXInitTlutObj()

void GXInitTlutObj ( GXTlutObj obj,
void lut,
GXTlutFmt  fmt,
u16  entry_num 
)

◆ GXInitTlutRegion()

void GXInitTlutRegion ( GXTlutRegion region,
u32  tmem_addr,
GXTlutSize  tlut_size 
)

◆ GXInvalidateTexAll()

void GXInvalidateTexAll ( void  )

◆ GXLoadTexObj()

void GXLoadTexObj ( GXTexObj obj,
GXTexMapID  id 
)

◆ GXLoadTlut()

void GXLoadTlut ( GXTlutObj obj,
u32  tlut_name 
)

◆ GXSetTexCoordScaleManually()

void GXSetTexCoordScaleManually ( GXTexCoordID  coord,
GXBool  enable,
u16  s_scale,
u16  t_scale 
)

◆ GXSetTexRegionCallback()

GXTexRegionCallback GXSetTexRegionCallback ( GXTexRegionCallback  callback)

◆ GXSetTlutRegionCallback()

GXTlutRegionCallback GXSetTlutRegionCallback ( GXTlutRegionCallback  callback)