Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
nw4hbm::lyt::detail Namespace Reference

Classes

struct  BitGXNums
 
class  PaneBase
 
struct  PaneLink
 
class  TexCoordAry
 

Typedefs

typedef math::VEC2 TexCoords[4]
 
typedef struct nw4hbm::lyt::detail::PaneLink PaneLink
 
typedef struct nw4hbm::lyt::detail::BitGXNums BitGXNums
 

Functions

AnimationLinkFindAnimationLink (AnimationLinkList *animList, AnimTransform *animTrans)
 
ut::FontFindFont (FontRefLinkList *pFontRefList, const char *name)
 
bool EqualsPaneName (const char *name1, const char *name2)
 
bool EqualsMaterialName (const char *name1, const char *name2)
 
bool TestFileHeader (const res::BinaryFileHeader &fileHeader)
 
bool TestFileHeader (const res::BinaryFileHeader &fileHeader, u32 testSig)
 
bool IsModulateVertexColor (ut::Color *vtxColors, u8 glbAlpha)
 
ut::Color MultipleAlpha (const ut::Color col, u8 alpha)
 
void MultipleAlpha (ut::Color *dst, const ut::Color *src, u8 alpha)
 
void SetVertexFormat (bool bModulate, u8 texCoordNum)
 
void DrawQuad (const math::VEC2 &basePt, const Size &size, u8 texCoordNum, const TexCoords *texCoords, const ut::Color *vtxColors)
 
void DrawQuad (const math::VEC2 &basePt, const Size &size, u8 texCoordNum, const TexCoords *texCoords, const ut::Color *vtxColors, u8 alpha)
 
void DrawLine (const math::VEC2 &pos, const Size &size, ut::Color color)
 
void InitGXTexObjFromTPL (GXTexObj *to, TPLPalette *pal, u32 id)
 
s32 GetSignatureInt (const char *sig)
 
const char * GetStrTableStr (const void *pStrTable, int index)
 
u8 GetVtxColorElement (const ut::Color *cols, u32 idx)
 
void SetVtxColorElement (ut::Color *cols, u32 idx, u8 value)
 
u8 GetHorizontalPosition (u8 var)
 
u8 GetVerticalPosition (u8 var)
 
void SetHorizontalPosition (u8 *pVar, u8 newVal)
 
void SetVerticalPosition (u8 *pVar, u8 newVal)
 
static void __deadstrip1 ()
 
template<typename T >
const TConvertOffsToPtr (const void *baseAddress, unsigned offset)
 
template<typename T >
TConvertOffsToPtr (void *baseAddress, unsigned offset)
 
template<typename T >
void SetBit (T *pBits, int pos, bool val)
 
template<typename T >
bool TestBit (T bits, int pos)
 
template<typename T >
T GetBits (T bits, int pos, int len)
 
Size GetTextureSize (Material *pMaterial, u8 texMapIdx)
 

Typedef Documentation

◆ BitGXNums

typedef struct nw4hbm::lyt::detail::BitGXNums nw4hbm::lyt::detail::BitGXNums

◆ PaneLink

typedef struct nw4hbm::lyt::detail::PaneLink nw4hbm::lyt::detail::PaneLink

◆ TexCoords

typedef math::VEC2 nw4hbm::lyt::detail::TexCoords[4]

Function Documentation

◆ __deadstrip1()

static void nw4hbm::lyt::detail::__deadstrip1 ( )
static

◆ ConvertOffsToPtr() [1/2]

template<typename T >
const T * nw4hbm::lyt::detail::ConvertOffsToPtr ( const void * baseAddress,
unsigned offset )

◆ ConvertOffsToPtr() [2/2]

template<typename T >
T * nw4hbm::lyt::detail::ConvertOffsToPtr ( void * baseAddress,
unsigned offset )

◆ DrawLine()

void nw4hbm::lyt::detail::DrawLine ( const math::VEC2 & pos,
const Size & size,
ut::Color color )

◆ DrawQuad() [1/2]

void nw4hbm::lyt::detail::DrawQuad ( const math::VEC2 & basePt,
const Size & size,
u8 texCoordNum,
const TexCoords * texCoords,
const ut::Color * vtxColors )

◆ DrawQuad() [2/2]

void nw4hbm::lyt::detail::DrawQuad ( const math::VEC2 & basePt,
const Size & size,
u8 texCoordNum,
const TexCoords * texCoords,
const ut::Color * vtxColors,
u8 alpha )

◆ EqualsMaterialName()

bool nw4hbm::lyt::detail::EqualsMaterialName ( const char * name1,
const char * name2 )

◆ EqualsPaneName()

bool nw4hbm::lyt::detail::EqualsPaneName ( const char * name1,
const char * name2 )

◆ FindAnimationLink()

AnimationLink * nw4hbm::lyt::detail::FindAnimationLink ( AnimationLinkList * animList,
AnimTransform * animTrans )

◆ FindFont()

ut::Font * nw4hbm::lyt::detail::FindFont ( FontRefLinkList * pFontRefList,
const char * name )

◆ GetBits()

template<typename T >
T nw4hbm::lyt::detail::GetBits ( T bits,
int pos,
int len )

◆ GetHorizontalPosition()

u8 nw4hbm::lyt::detail::GetHorizontalPosition ( u8 var)
inline

◆ GetSignatureInt()

s32 nw4hbm::lyt::detail::GetSignatureInt ( const char * sig)
inline

◆ GetStrTableStr()

const char * nw4hbm::lyt::detail::GetStrTableStr ( const void * pStrTable,
int index )
inline

◆ GetTextureSize()

Size nw4hbm::lyt::detail::GetTextureSize ( Material * pMaterial,
u8 texMapIdx )

◆ GetVerticalPosition()

u8 nw4hbm::lyt::detail::GetVerticalPosition ( u8 var)
inline

◆ GetVtxColorElement()

u8 nw4hbm::lyt::detail::GetVtxColorElement ( const ut::Color * cols,
u32 idx )
inline

◆ InitGXTexObjFromTPL()

void nw4hbm::lyt::detail::InitGXTexObjFromTPL ( GXTexObj * to,
TPLPalette * pal,
u32 id )

◆ IsModulateVertexColor()

bool nw4hbm::lyt::detail::IsModulateVertexColor ( ut::Color * vtxColors,
u8 glbAlpha )

◆ MultipleAlpha() [1/2]

ut::Color nw4hbm::lyt::detail::MultipleAlpha ( const ut::Color col,
u8 alpha )

◆ MultipleAlpha() [2/2]

void nw4hbm::lyt::detail::MultipleAlpha ( ut::Color * dst,
const ut::Color * src,
u8 alpha )

◆ SetBit()

template<typename T >
void nw4hbm::lyt::detail::SetBit ( T * pBits,
int pos,
bool val )
inline

◆ SetHorizontalPosition()

void nw4hbm::lyt::detail::SetHorizontalPosition ( u8 * pVar,
u8 newVal )
inline

◆ SetVertexFormat()

void nw4hbm::lyt::detail::SetVertexFormat ( bool bModulate,
u8 texCoordNum )

◆ SetVerticalPosition()

void nw4hbm::lyt::detail::SetVerticalPosition ( u8 * pVar,
u8 newVal )
inline

◆ SetVtxColorElement()

void nw4hbm::lyt::detail::SetVtxColorElement ( ut::Color * cols,
u32 idx,
u8 value )
inline

◆ TestBit()

template<typename T >
bool nw4hbm::lyt::detail::TestBit ( T bits,
int pos )
inline

◆ TestFileHeader() [1/2]

bool nw4hbm::lyt::detail::TestFileHeader ( const res::BinaryFileHeader & fileHeader)

◆ TestFileHeader() [2/2]

bool nw4hbm::lyt::detail::TestFileHeader ( const res::BinaryFileHeader & fileHeader,
u32 testSig )