Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
GDTexture.c File Reference

Functions

void GDSetTexLookupMode (GXTexMapID id, GXTexWrapMode wrap_s, GXTexWrapMode wrap_t, GXTexFilter min_filt, GXTexFilter mag_filt, f32 min_lod, f32 max_lod, f32 lod_bias, u8 bias_clamp, u8 do_edge_lod, GXAnisotropy max_aniso)
 
void GDSetTexImgAttr (GXTexMapID id, u16 width, u16 height, GXTexFmt format)
 
void GDSetTexImgPtr (GXTexMapID id, void *image_ptr)
 
void GDSetTexImgPtrRaw (GXTexMapID id, u32 image_ptr_raw)
 
void GDPatchTexImgPtr (void *image_ptr)
 
void GDSetTexCached (GXTexMapID id, u32 tmem_even, GXTexCacheSize size_even, u32 tmem_odd, GXTexCacheSize size_odd)
 
void GDSetTexPreLoaded (GXTexMapID id, u32 tmem_even, u32 tmem_odd)
 
void GDSetTexTlut (GXTexMapID id, u32 tmem_addr, GXTlutFmt format)
 
void GDSetTexCoordScale (GXTexCoordID coord, u16 s_scale, u16 t_scale)
 
void GDSetTexCoordScale2 (GXTexCoordID coord, u16 s_scale, u8 s_bias, u8 s_wrap, u16 t_scale, u8 t_bias, u8 t_wrap)
 
void GDSetTexCoordScaleAndTOEs (GXTexCoordID coord, u16 s_scale, u8 s_bias, u8 s_wrap, u16 t_scale, u8 t_bias, u8 t_wrap, u8 line_offset, u8 point_offset)
 
void GDLoadTlut (void *tlut_ptr, u32 tmem_addr, GXTlutSize size)
 
void GDLoadTlutRaw (u32 tlut_ptr_raw, u32 tmem_addr, GXTlutSize size)
 

Variables

u8 GD2HWFiltConv [] = {0, 4, 1, 5, 2, 6}
 
u8 GDTexMode0Ids [8] = {128, 129, 130, 131, 160, 161, 162, 163}
 
u8 GDTexMode1Ids [8] = {132, 133, 134, 135, 164, 165, 166, 167}
 
u8 GDTexImage0Ids [8] = {136, 137, 138, 139, 168, 169, 170, 171}
 
u8 GDTexImage1Ids [8] = {140, 141, 142, 143, 172, 173, 174, 175}
 
u8 GDTexImage2Ids [8] = {144, 145, 146, 147, 176, 177, 178, 179}
 
u8 GDTexImage3Ids [8] = {148, 149, 150, 151, 180, 181, 182, 183}
 
u8 GDTexTlutIds [8] = {152, 153, 154, 155, 184, 185, 186, 187}
 

Function Documentation

◆ GDLoadTlut()

void GDLoadTlut ( void * tlut_ptr,
u32 tmem_addr,
GXTlutSize size )

◆ GDLoadTlutRaw()

void GDLoadTlutRaw ( u32 tlut_ptr_raw,
u32 tmem_addr,
GXTlutSize size )

◆ GDPatchTexImgPtr()

void GDPatchTexImgPtr ( void * image_ptr)

◆ GDSetTexCached()

void GDSetTexCached ( GXTexMapID id,
u32 tmem_even,
GXTexCacheSize size_even,
u32 tmem_odd,
GXTexCacheSize size_odd )

◆ GDSetTexCoordScale()

void GDSetTexCoordScale ( GXTexCoordID coord,
u16 s_scale,
u16 t_scale )

◆ GDSetTexCoordScale2()

void GDSetTexCoordScale2 ( GXTexCoordID coord,
u16 s_scale,
u8 s_bias,
u8 s_wrap,
u16 t_scale,
u8 t_bias,
u8 t_wrap )

◆ GDSetTexCoordScaleAndTOEs()

void GDSetTexCoordScaleAndTOEs ( GXTexCoordID coord,
u16 s_scale,
u8 s_bias,
u8 s_wrap,
u16 t_scale,
u8 t_bias,
u8 t_wrap,
u8 line_offset,
u8 point_offset )

◆ GDSetTexImgAttr()

void GDSetTexImgAttr ( GXTexMapID id,
u16 width,
u16 height,
GXTexFmt format )

◆ GDSetTexImgPtr()

void GDSetTexImgPtr ( GXTexMapID id,
void * image_ptr )

◆ GDSetTexImgPtrRaw()

void GDSetTexImgPtrRaw ( GXTexMapID id,
u32 image_ptr_raw )

◆ GDSetTexLookupMode()

void GDSetTexLookupMode ( GXTexMapID id,
GXTexWrapMode wrap_s,
GXTexWrapMode wrap_t,
GXTexFilter min_filt,
GXTexFilter mag_filt,
f32 min_lod,
f32 max_lod,
f32 lod_bias,
u8 bias_clamp,
u8 do_edge_lod,
GXAnisotropy max_aniso )

◆ GDSetTexPreLoaded()

void GDSetTexPreLoaded ( GXTexMapID id,
u32 tmem_even,
u32 tmem_odd )

◆ GDSetTexTlut()

void GDSetTexTlut ( GXTexMapID id,
u32 tmem_addr,
GXTlutFmt format )

Variable Documentation

◆ GD2HWFiltConv

u8 GD2HWFiltConv[] = {0, 4, 1, 5, 2, 6}

◆ GDTexImage0Ids

u8 GDTexImage0Ids[8] = {136, 137, 138, 139, 168, 169, 170, 171}

◆ GDTexImage1Ids

u8 GDTexImage1Ids[8] = {140, 141, 142, 143, 172, 173, 174, 175}

◆ GDTexImage2Ids

u8 GDTexImage2Ids[8] = {144, 145, 146, 147, 176, 177, 178, 179}

◆ GDTexImage3Ids

u8 GDTexImage3Ids[8] = {148, 149, 150, 151, 180, 181, 182, 183}

◆ GDTexMode0Ids

u8 GDTexMode0Ids[8] = {128, 129, 130, 131, 160, 161, 162, 163}

◆ GDTexMode1Ids

u8 GDTexMode1Ids[8] = {132, 133, 134, 135, 164, 165, 166, 167}

◆ GDTexTlutIds

u8 GDTexTlutIds[8] = {152, 153, 154, 155, 184, 185, 186, 187}