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

#include <picture.h>

+ Inheritance diagram for nw4hbm::lyt::Picture:
+ Collaboration diagram for nw4hbm::lyt::Picture:

Public Member Functions

 Picture (u8 num)
 
 Picture (const res::Picture *pResPic, const ResBlockSet &resBlockSet)
 
virtual ~Picture ()
 
virtual void DrawSelf (const DrawInfo &drawInfo)
 
virtual ut::Color GetVtxColor (u32 idx) const
 
virtual void SetVtxColor (u32 idx, ut::Color value)
 
virtual u8 GetVtxColorElement (u32 idx) const
 
virtual void SetVtxColorElement (u32 idx, u8 value)
 
virtual void Append (TPLPalette *pTplRes)
 
virtual void Append (const GXTexObj &texObj)
 
void SetTexCoordNum (u8 num)
 
u8 GetTexCoordNum () const
 
void GetTexCoord (u32 idx, math::VEC2 *coords) const
 
void SetTexCoord (u32 idx, const math::VEC2 *coords)
 
void Init (u8 texNum)
 
void ReserveTexCoord (u8 num)
 
- Public Member Functions inherited from nw4hbm::lyt::Pane
 Pane ()
 
 Pane (const res::Pane *pBlock)
 
virtual ~Pane ()
 
virtual void CalculateMtx (const DrawInfo &drawInfo)
 
virtual void Draw (const DrawInfo &drawInfo)
 
virtual void Animate (u32 option=0)
 
virtual void AnimateSelf (u32 option=0)
 
virtual u8 GetColorElement (u32 idx) const
 
virtual void SetColorElement (u32 idx, u8 color)
 
virtual PaneFindPaneByName (const char *findName, bool bRecursive=true)
 
virtual MaterialFindMaterialByName (const char *findName, bool bRecursive=true)
 
virtual void BindAnimation (AnimTransform *animTrans, bool bRecursive=true)
 
virtual void UnbindAnimation (AnimTransform *animTrans, bool bRecursive=true)
 
virtual void UnbindAllAnimation (bool bRecursive=true)
 
virtual void UnbindAnimationSelf (AnimTransform *animTrans)
 
virtual AnimationLinkFindAnimationLink (AnimTransform *animTrans)
 
virtual void SetAnimationEnable (AnimTransform *animTrans, bool bEnable, bool bRecursive=true)
 
virtual MaterialGetMaterial () const
 
virtual void LoadMtx (const DrawInfo &drawInfo)
 
PaneGetParent () const
 
PaneListGetChildList ()
 
const math::VEC3GetTranslate ()
 
void SetTranslate (const math::VEC3 &translate)
 
void SetTranslate (const math::VEC2 &translate)
 
const math::VEC3GetRotate () const
 
void SetRotate (const math::VEC3 &rotate)
 
const math::VEC2GetScale () const
 
void SetScale (const math::VEC2 &scale)
 
const SizeGetSize () const
 
void SetSize (const Size &size)
 
bool IsVisible ()
 
void SetVisible (bool visible)
 
bool IsInfluencedAlpha ()
 
void SetInfluencedAlpha (bool visible)
 
bool IsLocationAdjust ()
 
void SetLocationAdjust (bool visible)
 
const math::MTX34GetGlobalMtx () const
 
void SetGlobalMtx (const math::MTX34 &mtx)
 
const math::MTX34GetMtx () const
 
void SetMtx (const math::MTX34 &mtx)
 
u8 GetAlpha ()
 
void SetAlpha (u8 alpha)
 
const char * GetName () const
 
void SetSRTElement (u32 idx, f32 value)
 
bool IsUserAllocated () const
 
const ut::Rect GetPaneRect (const DrawInfo &drawInfo) const
 
math::VEC2 GetVtxPos () const
 
void SetName (const char *name)
 
void SetUserData (const char *userData)
 
void Init ()
 
void InsertChild (PaneList::Iterator next, Pane *pChild)
 
void InsertChild (Pane *pNext, Pane *pChild)
 
void PrependChild (Pane *pChild)
 
void AppendChild (Pane *pChild)
 
void RemoveChild (Pane *pChild)
 
void CalculateMtxChild (const DrawInfo &drawInfo)
 
void AddAnimationLink (AnimationLink *animationLink)
 

Public Attributes

 NW4HBM_UT_RUNTIME_TYPEINFO
 
- Public Attributes inherited from nw4hbm::lyt::Pane
 NW4HBM_UT_RUNTIME_TYPEINFO
 

Private Member Functions

ut::Color mVtxColors[VERTEXCOLOR_MAXATTRIBUTE_ALIGN (4)
 

Private Attributes

detail::TexCoordAry mTexCoordAry
 

Additional Inherited Members

- Protected Attributes inherited from nw4hbm::lyt::Pane
PanempParent
 
PaneList mChildList
 
AnimationLinkList mAnimList
 
MaterialmpMaterial
 
math::VEC3 mTranslate
 
math::VEC3 mRotate
 
math::VEC2 mScale
 
Size mSize
 
math::MTX34 mMtx
 
math::MTX34 mGlbMtx
 
char mName [16]
 
char mUserData [8]
 
u8 mBasePosition
 
u8 mAlpha
 
u8 mGlbAlpha
 
u8 mFlag
 
bool mbUserAllocated
 

Constructor & Destructor Documentation

◆ Picture() [1/2]

nw4hbm::lyt::Picture::Picture ( u8 num)

◆ Picture() [2/2]

nw4hbm::lyt::Picture::Picture ( const res::Picture * pResPic,
const ResBlockSet & resBlockSet )

◆ ~Picture()

nw4hbm::lyt::Picture::~Picture ( )
virtual

Member Function Documentation

◆ Append() [1/2]

void nw4hbm::lyt::Picture::Append ( const GXTexObj & texObj)
virtual

◆ Append() [2/2]

void nw4hbm::lyt::Picture::Append ( TPLPalette * pTplRes)
virtual

◆ ATTRIBUTE_ALIGN()

ut::Color mVtxColors[VERTEXCOLOR_MAX] nw4hbm::lyt::Picture::ATTRIBUTE_ALIGN ( 4 )
private

◆ DrawSelf()

void nw4hbm::lyt::Picture::DrawSelf ( const DrawInfo & drawInfo)
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ GetTexCoord()

void nw4hbm::lyt::Picture::GetTexCoord ( u32 idx,
math::VEC2 * coords ) const

◆ GetTexCoordNum()

u8 nw4hbm::lyt::Picture::GetTexCoordNum ( ) const

◆ GetVtxColor()

ut::Color nw4hbm::lyt::Picture::GetVtxColor ( u32 idx) const
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ GetVtxColorElement()

u8 nw4hbm::lyt::Picture::GetVtxColorElement ( u32 idx) const
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ Init()

void nw4hbm::lyt::Picture::Init ( u8 texNum)

◆ ReserveTexCoord()

void nw4hbm::lyt::Picture::ReserveTexCoord ( u8 num)

◆ SetTexCoord()

void nw4hbm::lyt::Picture::SetTexCoord ( u32 idx,
const math::VEC2 * coords )

◆ SetTexCoordNum()

void nw4hbm::lyt::Picture::SetTexCoordNum ( u8 num)

◆ SetVtxColor()

void nw4hbm::lyt::Picture::SetVtxColor ( u32 idx,
ut::Color value )
virtual

Reimplemented from nw4hbm::lyt::Pane.

◆ SetVtxColorElement()

void nw4hbm::lyt::Picture::SetVtxColorElement ( u32 idx,
u8 value )
virtual

Reimplemented from nw4hbm::lyt::Pane.

Member Data Documentation

◆ mTexCoordAry

detail::TexCoordAry nw4hbm::lyt::Picture::mTexCoordAry
private

◆ NW4HBM_UT_RUNTIME_TYPEINFO

nw4hbm::lyt::Picture::NW4HBM_UT_RUNTIME_TYPEINFO

The documentation for this class was generated from the following files: