NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
nw4r::lyt::TexMap Class Reference

Description

Definition at line 11 of file lyt_texMap.h.

Public Member Functions

 TexMap (TPLPalette *pPalette, ulong id)
 
void Get (GXTexObj *pTexObj) const
 
void Get (GXTlutObj *pTlutObj) const
 
void Set (const TexMap &rOther)
 
void Set (TPLPalette *pPalette, ulong id)
 
void Set (const TPLDescriptor *pDesc)
 
void SetNoWrap (const TexMap &rOther)
 
void SetNoWrap (const TPLDescriptor *pDesc)
 
void * GetImage () const
 
void SetImage (void *pImage)
 
void * GetPalette () const
 
void SetPalette (void *pPalette)
 
u16 GetWidth () const
 
u16 GetHeight () const
 
Size GetSize () const
 
void SetSize (u16 width, u16 height)
 
f32 GetMinLOD () const
 
f32 GetMaxLOD () const
 
void SetLOD (f32 minLOD, f32 maxLOD)
 
f32 GetLODBias () const
 
void SetLODBias (f32 bias)
 
u16 GetPaletteEntryNum () const
 
void SetPaletteEntryNum (u16 entrynum)
 
GXTexFmt GetTexelFormat () const
 
void SetTexelFormat (GXTexFmt format)
 
bool IsMipMap () const
 
void SetMipMap (bool mipmap)
 
GXTexWrapMode GetWrapModeS () const
 
GXTexWrapMode GetWrapModeT () const
 
void SetWrapMode (GXTexWrapMode wrapS, GXTexWrapMode wrapT)
 
GXTexFilter GetMinFilter () const
 
GXTexFilter GetMagFilter () const
 
void SetFilter (GXTexFilter minFilt, GXTexFilter magFilt)
 
bool IsBiasClampEnable () const
 
void SetBiasClampEnable (bool enable)
 
bool IsEdgeLODEnable () const
 
void SetEdgeLODEnable (bool enable)
 
GXAnisotropy GetAnisotropy () const
 
void SetAnisotropy (GXAnisotropy aniso)
 
GXTlutFmt GetPaletteFormat () const
 
void SetPaletteFormat (GXTlutFmt format)
 

Private Attributes

void * mpImage
 
void * mpPalette
 
u16 mWidth
 
u16 mHeight
 
f32 mMinLOD
 
f32 mMaxLOD
 
u16 mLODBias
 
u16 mPaletteEntryNum
 
struct { 
 
   ulong   textureFormat: 4 
 
   ulong   mipmap: 1 
 
   ulong   wrapS: 2 
 
   ulong   wrapT: 2 
 
   ulong   minFilter: 3 
 
   ulong   magFilter: 3 
 
   ulong   biasClampEnable: 1 
 
   ulong   edgeLODEnable: 1 
 
   ulong   anisotropy: 2 
 
   ulong   paletteFormat: 2 
 
mBits 
 

Constructor & Destructor Documentation

◆ TexMap() [1/2]

nw4r::lyt::TexMap::TexMap ( )
inline

Definition at line 13 of file lyt_texMap.h.

◆ TexMap() [2/2]

nw4r::lyt::TexMap::TexMap ( TPLPalette * pPalette,
ulong id )
inline

Definition at line 30 of file lyt_texMap.h.

Member Function Documentation

◆ Set()

void nw4r::lyt::TexMap::Set ( const TexMap & rOther)
inline

Definition at line 39 of file lyt_texMap.h.

◆ GetImage()

void * nw4r::lyt::TexMap::GetImage ( ) const
inline

Definition at line 48 of file lyt_texMap.h.

◆ SetImage()

void nw4r::lyt::TexMap::SetImage ( void * pImage)
inline

Definition at line 51 of file lyt_texMap.h.

◆ GetPalette()

void * nw4r::lyt::TexMap::GetPalette ( ) const
inline

Definition at line 55 of file lyt_texMap.h.

◆ SetPalette()

void nw4r::lyt::TexMap::SetPalette ( void * pPalette)
inline

Definition at line 58 of file lyt_texMap.h.

◆ GetWidth()

u16 nw4r::lyt::TexMap::GetWidth ( ) const
inline

Definition at line 62 of file lyt_texMap.h.

◆ GetHeight()

u16 nw4r::lyt::TexMap::GetHeight ( ) const
inline

Definition at line 65 of file lyt_texMap.h.

◆ GetSize()

Size nw4r::lyt::TexMap::GetSize ( ) const
inline

Definition at line 68 of file lyt_texMap.h.

◆ SetSize()

void nw4r::lyt::TexMap::SetSize ( u16 width,
u16 height )
inline

Definition at line 71 of file lyt_texMap.h.

◆ GetMinLOD()

f32 nw4r::lyt::TexMap::GetMinLOD ( ) const
inline

Definition at line 76 of file lyt_texMap.h.

◆ GetMaxLOD()

f32 nw4r::lyt::TexMap::GetMaxLOD ( ) const
inline

Definition at line 79 of file lyt_texMap.h.

◆ SetLOD()

void nw4r::lyt::TexMap::SetLOD ( f32 minLOD,
f32 maxLOD )
inline

Definition at line 82 of file lyt_texMap.h.

◆ GetLODBias()

f32 nw4r::lyt::TexMap::GetLODBias ( ) const
inline

Definition at line 87 of file lyt_texMap.h.

◆ SetLODBias()

void nw4r::lyt::TexMap::SetLODBias ( f32 bias)
inline

Definition at line 90 of file lyt_texMap.h.

◆ GetPaletteEntryNum()

u16 nw4r::lyt::TexMap::GetPaletteEntryNum ( ) const
inline

Definition at line 94 of file lyt_texMap.h.

◆ SetPaletteEntryNum()

void nw4r::lyt::TexMap::SetPaletteEntryNum ( u16 entrynum)
inline

Definition at line 97 of file lyt_texMap.h.

◆ GetTexelFormat()

GXTexFmt nw4r::lyt::TexMap::GetTexelFormat ( ) const
inline

Definition at line 101 of file lyt_texMap.h.

◆ SetTexelFormat()

void nw4r::lyt::TexMap::SetTexelFormat ( GXTexFmt format)
inline

Definition at line 104 of file lyt_texMap.h.

◆ IsMipMap()

bool nw4r::lyt::TexMap::IsMipMap ( ) const
inline

Definition at line 108 of file lyt_texMap.h.

◆ SetMipMap()

void nw4r::lyt::TexMap::SetMipMap ( bool mipmap)
inline

Definition at line 111 of file lyt_texMap.h.

◆ GetWrapModeS()

GXTexWrapMode nw4r::lyt::TexMap::GetWrapModeS ( ) const
inline

Definition at line 115 of file lyt_texMap.h.

◆ GetWrapModeT()

GXTexWrapMode nw4r::lyt::TexMap::GetWrapModeT ( ) const
inline

Definition at line 118 of file lyt_texMap.h.

◆ SetWrapMode()

void nw4r::lyt::TexMap::SetWrapMode ( GXTexWrapMode wrapS,
GXTexWrapMode wrapT )
inline

Definition at line 121 of file lyt_texMap.h.

◆ GetMinFilter()

GXTexFilter nw4r::lyt::TexMap::GetMinFilter ( ) const
inline

Definition at line 126 of file lyt_texMap.h.

◆ GetMagFilter()

GXTexFilter nw4r::lyt::TexMap::GetMagFilter ( ) const
inline

Definition at line 129 of file lyt_texMap.h.

◆ SetFilter()

void nw4r::lyt::TexMap::SetFilter ( GXTexFilter minFilt,
GXTexFilter magFilt )
inline

Definition at line 132 of file lyt_texMap.h.

◆ IsBiasClampEnable()

bool nw4r::lyt::TexMap::IsBiasClampEnable ( ) const
inline

Definition at line 137 of file lyt_texMap.h.

◆ SetBiasClampEnable()

void nw4r::lyt::TexMap::SetBiasClampEnable ( bool enable)
inline

Definition at line 140 of file lyt_texMap.h.

◆ IsEdgeLODEnable()

bool nw4r::lyt::TexMap::IsEdgeLODEnable ( ) const
inline

Definition at line 144 of file lyt_texMap.h.

◆ SetEdgeLODEnable()

void nw4r::lyt::TexMap::SetEdgeLODEnable ( bool enable)
inline

Definition at line 147 of file lyt_texMap.h.

◆ GetAnisotropy()

GXAnisotropy nw4r::lyt::TexMap::GetAnisotropy ( ) const
inline

Definition at line 151 of file lyt_texMap.h.

◆ SetAnisotropy()

void nw4r::lyt::TexMap::SetAnisotropy ( GXAnisotropy aniso)
inline

Definition at line 154 of file lyt_texMap.h.

◆ GetPaletteFormat()

GXTlutFmt nw4r::lyt::TexMap::GetPaletteFormat ( ) const
inline

Definition at line 158 of file lyt_texMap.h.

◆ SetPaletteFormat()

void nw4r::lyt::TexMap::SetPaletteFormat ( GXTlutFmt format)
inline

Definition at line 161 of file lyt_texMap.h.

Member Data Documentation

◆ mpImage

void* nw4r::lyt::TexMap::mpImage
private

Definition at line 166 of file lyt_texMap.h.

◆ mpPalette

void* nw4r::lyt::TexMap::mpPalette
private

Definition at line 167 of file lyt_texMap.h.

◆ mWidth

u16 nw4r::lyt::TexMap::mWidth
private

Definition at line 168 of file lyt_texMap.h.

◆ mHeight

u16 nw4r::lyt::TexMap::mHeight
private

Definition at line 169 of file lyt_texMap.h.

◆ mMinLOD

f32 nw4r::lyt::TexMap::mMinLOD
private

Definition at line 170 of file lyt_texMap.h.

◆ mMaxLOD

f32 nw4r::lyt::TexMap::mMaxLOD
private

Definition at line 171 of file lyt_texMap.h.

◆ mLODBias

u16 nw4r::lyt::TexMap::mLODBias
private

Definition at line 172 of file lyt_texMap.h.

◆ mPaletteEntryNum

u16 nw4r::lyt::TexMap::mPaletteEntryNum
private

Definition at line 173 of file lyt_texMap.h.

◆ textureFormat

ulong nw4r::lyt::TexMap::textureFormat

Definition at line 176 of file lyt_texMap.h.

◆ mipmap

ulong nw4r::lyt::TexMap::mipmap

Definition at line 177 of file lyt_texMap.h.

◆ wrapS

ulong nw4r::lyt::TexMap::wrapS

Definition at line 178 of file lyt_texMap.h.

◆ wrapT

ulong nw4r::lyt::TexMap::wrapT

Definition at line 179 of file lyt_texMap.h.

◆ minFilter

ulong nw4r::lyt::TexMap::minFilter

Definition at line 180 of file lyt_texMap.h.

◆ magFilter

ulong nw4r::lyt::TexMap::magFilter

Definition at line 181 of file lyt_texMap.h.

◆ biasClampEnable

ulong nw4r::lyt::TexMap::biasClampEnable

Definition at line 182 of file lyt_texMap.h.

◆ edgeLODEnable

ulong nw4r::lyt::TexMap::edgeLODEnable

Definition at line 183 of file lyt_texMap.h.

◆ anisotropy

ulong nw4r::lyt::TexMap::anisotropy

Definition at line 184 of file lyt_texMap.h.

◆ paletteFormat

ulong nw4r::lyt::TexMap::paletteFormat

Definition at line 185 of file lyt_texMap.h.