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

Functions

void __GXGetTexTileShift (GXTexFmt format, u32 *widthTiles, u32 *heightTiles)
 
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 *imagePtr, u16 width, u16 height, GXTexFmt format, GXTexWrapMode sWrap, GXTexWrapMode tWrap, GXBool useMIPmap)
 
void GXInitTexObjCI (GXTexObj *obj, void *imagePtr, u16 width, u16 height, GXCITexFmt format, GXTexWrapMode sWrap, GXTexWrapMode tWrap, GXBool useMIPmap, u32 tlut_name)
 
void GXInitTexObjLOD (GXTexObj *obj, GXTexFilter minFilter, GXTexFilter maxFilter, f32 minLOD, f32 maxLOD, f32 lodBias, GXBool doBiasClamp, GXBool doEdgeLOD, GXAnisotropy maxAniso)
 
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 GXLoadTexObjPreLoaded (GXTexObj *obj, GXTexRegion *region, GXTexMapID map)
 
void GXLoadTexObj (GXTexObj *obj, GXTexMapID map)
 
void GXInitTlutObj (GXTlutObj *obj, void *table, GXTlutFmt format, u16 numEntries)
 
void GXLoadTlut (GXTlutObj *obj, u32 tlut_name)
 
void GXInitTexCacheRegion (GXTexRegion *region, GXBool is32bMIPmap, u32 memEven, GXTexCacheSize sizeEven, u32 memOdd, GXTexCacheSize sizeOdd)
 
void GXInitTlutRegion (GXTlutRegion *region, u32 memAddr, GXTlutSize tlutSize)
 
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 (u32 texImgIndex, u32 setUpRegIndex)
 
void __GXSetSUTexRegs (void)
 
void __GXSetTmemConfig (u32 config)
 

Variables

u8 GXTexMode0Ids [8] = {0x80, 0x81, 0x82, 0x83, 0xA0, 0xA1, 0xA2, 0xA3}
 
u8 GXTexMode1Ids [8] = {0x84, 0x85, 0x86, 0x87, 0xA4, 0xA5, 0xA6, 0xA7}
 
u8 GXTexImage0Ids [8] = {0x88, 0x89, 0x8a, 0x8b, 0xA8, 0xA9, 0xAa, 0xAb}
 
u8 GXTexImage1Ids [8] = {0x8c, 0x8d, 0x8e, 0x8f, 0xAc, 0xAd, 0xAe, 0xAf}
 
u8 GXTexImage2Ids [8] = {0x90, 0x91, 0x92, 0x93, 0xB0, 0xB1, 0xB2, 0xB3}
 
u8 GXTexImage3Ids [8] = {0x94, 0x95, 0x96, 0x97, 0xB4, 0xB5, 0xB6, 0xB7}
 
u8 GXTexTlutIds [8] = {0x98, 0x99, 0x9a, 0x9b, 0xB8, 0xB9, 0xBa, 0xBb}
 
u8 GX2HWFiltConv [6] = {0x00, 0x04, 0x01, 0x05, 0x02, 0x06}
 

Function Documentation

◆ __GetImageTileCount()

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

◆ __GXGetTexTileShift()

void __GXGetTexTileShift ( GXTexFmt  format,
u32 widthTiles,
u32 heightTiles 
)
inline

◆ __GXSetSUTexRegs()

void __GXSetSUTexRegs ( void  )

◆ __GXSetTmemConfig()

void __GXSetTmemConfig ( u32  config)

◆ __SetSURegs()

void __SetSURegs ( u32  texImgIndex,
u32  setUpRegIndex 
)

◆ 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  is32bMIPmap,
u32  memEven,
GXTexCacheSize  sizeEven,
u32  memOdd,
GXTexCacheSize  sizeOdd 
)

◆ GXInitTexObj()

void GXInitTexObj ( GXTexObj obj,
void imagePtr,
u16  width,
u16  height,
GXTexFmt  format,
GXTexWrapMode  sWrap,
GXTexWrapMode  tWrap,
GXBool  useMIPmap 
)

◆ GXInitTexObjCI()

void GXInitTexObjCI ( GXTexObj obj,
void imagePtr,
u16  width,
u16  height,
GXCITexFmt  format,
GXTexWrapMode  sWrap,
GXTexWrapMode  tWrap,
GXBool  useMIPmap,
u32  tlut_name 
)

◆ GXInitTexObjLOD()

void GXInitTexObjLOD ( GXTexObj obj,
GXTexFilter  minFilter,
GXTexFilter  maxFilter,
f32  minLOD,
f32  maxLOD,
f32  lodBias,
GXBool  doBiasClamp,
GXBool  doEdgeLOD,
GXAnisotropy  maxAniso 
)

◆ GXInitTlutObj()

void GXInitTlutObj ( GXTlutObj obj,
void table,
GXTlutFmt  format,
u16  numEntries 
)

◆ GXInitTlutRegion()

void GXInitTlutRegion ( GXTlutRegion region,
u32  memAddr,
GXTlutSize  tlutSize 
)

◆ GXInvalidateTexAll()

void GXInvalidateTexAll ( void  )

◆ GXLoadTexObj()

void GXLoadTexObj ( GXTexObj obj,
GXTexMapID  map 
)

◆ GXLoadTexObjPreLoaded()

void GXLoadTexObjPreLoaded ( GXTexObj obj,
GXTexRegion region,
GXTexMapID  map 
)

◆ 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)

Variable Documentation

◆ GX2HWFiltConv

u8 GX2HWFiltConv[6] = {0x00, 0x04, 0x01, 0x05, 0x02, 0x06}

◆ GXTexImage0Ids

u8 GXTexImage0Ids[8] = {0x88, 0x89, 0x8a, 0x8b, 0xA8, 0xA9, 0xAa, 0xAb}

◆ GXTexImage1Ids

u8 GXTexImage1Ids[8] = {0x8c, 0x8d, 0x8e, 0x8f, 0xAc, 0xAd, 0xAe, 0xAf}

◆ GXTexImage2Ids

u8 GXTexImage2Ids[8] = {0x90, 0x91, 0x92, 0x93, 0xB0, 0xB1, 0xB2, 0xB3}

◆ GXTexImage3Ids

u8 GXTexImage3Ids[8] = {0x94, 0x95, 0x96, 0x97, 0xB4, 0xB5, 0xB6, 0xB7}

◆ GXTexMode0Ids

u8 GXTexMode0Ids[8] = {0x80, 0x81, 0x82, 0x83, 0xA0, 0xA1, 0xA2, 0xA3}

◆ GXTexMode1Ids

u8 GXTexMode1Ids[8] = {0x84, 0x85, 0x86, 0x87, 0xA4, 0xA5, 0xA6, 0xA7}

◆ GXTexTlutIds

u8 GXTexTlutIds[8] = {0x98, 0x99, 0x9a, 0x9b, 0xB8, 0xB9, 0xBa, 0xBb}