NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::g3d::ResTex Class Reference
Inheritance diagram for nw4r::g3d::ResTex:
[legend]

Description

Definition at line 36 of file g3d_restex.h.

Public Member Functions

 NW4R_G3D_RESOURCE_FUNC_DEF (ResTex)
 
void Init ()
 
ulong GetRevision () const
 
bool CheckRevision () const
 
bool GetTexObjParam (void **ppTexData, u16 *pWidth, u16 *pHeight, GXTexFmt *pFormat, f32 *pMinLod, f32 *pMaxLod, GXBool *pMipMap) const
 
bool GetTexObjCIParam (void **ppTexData, u16 *pWidth, u16 *pHeight, GXCITexFmt *pFormatCI, f32 *pMinLod, f32 *pMaxLod, GXBool *pMipMap) const
 
bool IsCIFmt () const
 
u16 GetWidth () const
 
u16 GetHeight () const
 
const void * GetTexData () const
 
- Public Member Functions inherited from nw4r::g3d::ResCommon< ResTexData >
 ResCommon (void *pData)
 
 ResCommon (const void *pData)
 
bool IsValid () const
 
ResTexDataptr ()
 
const ResTexDataptr () const
 
ResTexDataref ()
 
const ResTexDataref () const
 
ResTexDataofs_to_ptr_raw (s32 ofs)
 
const ResTexDataofs_to_ptr_raw (s32 ofs) const
 
ResTexDataofs_to_ptr (s32 ofs)
 
const ResTexDataofs_to_ptr (s32 ofs) const
 
ResTexData ofs_to_obj (s32 ofs)
 
const ResTexData ofs_to_obj (s32 ofs) const
 

Static Public Attributes

static const ulong SIGNATURE = 'TEX0'
 
static const int REVISION = 1
 

Member Function Documentation

◆ GetRevision()

ulong nw4r::g3d::ResTex::GetRevision ( ) const
inline

Definition at line 46 of file g3d_restex.h.

◆ CheckRevision()

bool nw4r::g3d::ResTex::CheckRevision ( ) const
inline

Definition at line 50 of file g3d_restex.h.

◆ IsCIFmt()

bool nw4r::g3d::ResTex::IsCIFmt ( ) const
inline

Definition at line 62 of file g3d_restex.h.

◆ GetWidth()

u16 nw4r::g3d::ResTex::GetWidth ( ) const
inline

Definition at line 66 of file g3d_restex.h.

◆ GetHeight()

u16 nw4r::g3d::ResTex::GetHeight ( ) const
inline

Definition at line 69 of file g3d_restex.h.

◆ GetTexData()

const void * nw4r::g3d::ResTex::GetTexData ( ) const
inline

Definition at line 73 of file g3d_restex.h.

Member Data Documentation

◆ SIGNATURE

const ulong nw4r::g3d::ResTex::SIGNATURE = 'TEX0'
static

Definition at line 38 of file g3d_restex.h.

◆ REVISION

const int nw4r::g3d::ResTex::REVISION = 1
static

Definition at line 39 of file g3d_restex.h.