OpenBarnyard
 
Loading...
Searching...
No Matches
TTextureFactory::NameEntry Class Reference

#include <TTextureFactory.h>

Inheritance diagram for TTextureFactory::NameEntry:
TNodeList< T >::TNode

Public Member Functions

 NameEntry (const TCHAR *a_szName, TTexture *a_pTexture)
 
 ~NameEntry ()
 
const TCHARGetName () const
 
TTextureGetTexture ()
 
- Public Member Functions inherited from TNodeList< T >::TNode
constexpr TNode ()
 
constexpr TNode (const TNode &a_rcNode)
 
 TNode (TNode &&a_rNode)
 
T * Next () const
 
T * Prev () const
 
void Remove ()
 
void SetList (TNodeList *list)
 
TNodeListGetList () const
 
TBOOL IsLinked () const
 

Static Public Attributes

static constexpr TUINT32 MAX_TEXTURENAMELEN = 50
 

Additional Inherited Members

- Protected Attributes inherited from TNodeList< T >::TNode
friend TNodeList
 
TNodeListm_pList
 
T * m_pNext
 
T * m_pPrev
 

Detailed Description

Definition at line 18 of file TTextureFactory.h.

Constructor & Destructor Documentation

◆ NameEntry()

TTextureFactory::NameEntry::NameEntry ( const TCHAR * a_szName,
TTexture * a_pTexture )

Definition at line 15 of file TTextureFactory.cpp.

16{
17 auto uiNameLen = TStringManager::String8Length( a_szName );
18 TASSERT( uiNameLen < MAX_TEXTURENAMELEN );
19
21 m_pTexture = a_pTexture;
22}
#define TASSERT(X,...)
Definition Defines.h:138
static constexpr TUINT32 MAX_TEXTURENAMELEN
static TSIZE String8Length(const TCHAR *str)
static TCHAR * String8Copy(TCHAR *dst, const TCHAR *src, TSIZE size=-1)

◆ ~NameEntry()

TTextureFactory::NameEntry::~NameEntry ( )

Definition at line 24 of file TTextureFactory.cpp.

25{
26 TASSERT( TFALSE == IsLinked() );
27}
#define TFALSE
Definition Typedefs.h:24
TBOOL IsLinked() const
Definition TNodeList.h:39

Member Function Documentation

◆ GetName()

const TCHAR * TTextureFactory::NameEntry::GetName ( ) const
inline

Definition at line 27 of file TTextureFactory.h.

27{ return m_szName; }

◆ GetTexture()

TTexture * TTextureFactory::NameEntry::GetTexture ( )
inline

Definition at line 28 of file TTextureFactory.h.

28{ return m_pTexture; }

Member Data Documentation

◆ MAX_TEXTURENAMELEN

TUINT32 TTextureFactory::NameEntry::MAX_TEXTURENAMELEN = 50
staticconstexpr

Definition at line 21 of file TTextureFactory.h.


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