OpenBarnyard
 
Loading...
Searching...
No Matches
TIndexFactoryResourceInterface Class Referenceabstract

#include <TIndexFactoryResourceInterface.h>

Inheritance diagram for TIndexFactoryResourceInterface:
TResource TObject TNodeTree< T >::TNode TIndexFactoryResource

Public Member Functions

 TDECLARE_CLASS (TIndexFactoryResourceInterface, TResource)
 
 TIndexFactoryResourceInterface ()
 
virtual TBOOL Create (TIndexFactoryFormat *a_pIndexFormat, TUINT16 a_uiMaxStaticIndices, TUINT32 a_uiFlags)
 
virtual TIndexPoolResourceInterfaceCreatePoolResource (TUINT16 a_uiMaxStaticIndices, TUINT16 a_uiFlags)=0
 
const TIndexFactoryFormatGetIndexFormat () const
 
TUINT16 GetMaxStaticIndices () const
 
- Public Member Functions inherited from TResource
 TDECLARE_CLASS (TResource, TObject)
 
 TResource ()
 
 ~TResource ()
 
virtual TBOOL Create ()
 
virtual TBOOL Validate ()
 
virtual void Invalidate ()
 
virtual void DestroyResource ()
 
virtual TBOOL TryInvalidate ()
 
virtual TBOOL TryValidate ()
 
virtual void OnDestroy ()
 
TBOOL IsDead () const
 
TBOOL IsDying () const
 
TBOOL IsValid () const
 
TBOOL IsExternal () const
 
TBOOL IsCreated () const
 
TBOOL IsSceneObject () const
 
TBOOL IsInvalid () const
 
void SetState (TResourceState newState)
 
void AddState (TResourceState state)
 
void SetParent (TResource *a_pParent)
 
const TCHARGetName () const
 
void SetName (const TCHAR *name)
 
TBOOL RecurseSimple (t_RecurseCb a_pCallback, TResource *a_pResource, void *a_pUserData)
 
TRenderInterfaceGetRenderer () const
 
void SetRenderer (TRenderInterface *pRenderer)
 
TUINT32 GetUId () const
 
void SetUId (TUINT32 uid)
 
- Public Member Functions inherited from TObject
virtual Toshi::TClass * GetClass ()
 
virtual void Delete ()
 
virtual ~TObject ()
 
TBOOL IsExactly (TClass *a_pClass)
 
TBOOL IsA (TClass *a_pClass)
 
- Public Member Functions inherited from TNodeTree< T >::TNode
TBOOL IsChildOfDefaultRoot () const
 
TBOOL IsLinked () const
 
T * Parent () const
 
T * Next () const
 
T * Prev () const
 
TNodeTree< T > * Tree () const
 
T * Child () const
 

Public Attributes

friend TIndexPoolResourceInterface
 
- Public Attributes inherited from TResource
friend TRenderInterface
 
- Public Attributes inherited from TNodeTree< T >::TNode
friend TNodeTree
 

Protected Member Functions

TIndexPoolResourceInterfaceCreatePool (TUINT16 a_uiMaxStaticIndices, TUINT32 a_uiFlags)
 
- Protected Member Functions inherited from TNodeTree< T >::TNode
 TNode ()
 

Protected Attributes

TUINT m_uiNumPools
 
TIndexFactoryFormat m_IndexFormat
 
TUINT16 m_uiMaxStaticIndices
 
TUINT m_uiFlags
 
- Protected Attributes inherited from TNodeTree< T >::TNode
TNodeTree< T > * m_Tree
 
T * m_Next
 
T * m_Prev
 
T * m_Parent
 
T * m_Child
 

Additional Inherited Members

- Public Types inherited from TResource
using t_RecurseCb = TBOOL ( * )( TResource* a_pResource, void* a_pUserData )
 
- Public Types inherited from TObject
enum  { IsTObject = TTRUE }
 
- Static Public Member Functions inherited from TResource
static TBOOL Recurse (t_RecurseCb a_pCallback, TResource *a_pResource, TBOOL a_bFlag, void *a_pUserData)
 
- Static Public Member Functions inherited from TObject
static Toshi::TObject * CreateTObject ()
 
static Toshi::TObject * CreateTObjectInPlace (void *a_pPtr)
 
static void InitialiseClass ()
 
static void DeinitialiseClass ()
 
static TFORCEINLINE TClassGetClassStatic ()
 
- Static Public Attributes inherited from TResource
static constexpr size_t MAXNAMELEN = 14
 
- Static Public Attributes inherited from TObject
static constexpr Toshi::TClass * PARENTCLASS = TNULL
 
static constinit Toshi::TClass ms_oClass = Toshi::TClass( "TObject", TObject::CreateTObject, TObject::CreateTObjectInPlace, TObject::InitialiseClass, TObject::DeinitialiseClass, 0, 2, sizeof( TObject ), alignof( TObject ) )
 

Detailed Description

Definition at line 9 of file TIndexFactoryResourceInterface.h.

Constructor & Destructor Documentation

◆ TIndexFactoryResourceInterface()

TIndexFactoryResourceInterface::TIndexFactoryResourceInterface ( )

Member Function Documentation

◆ Create()

TBOOL TIndexFactoryResourceInterface::Create ( TIndexFactoryFormat * a_pIndexFormat,
TUINT16 a_uiMaxStaticIndices,
TUINT32 a_uiFlags )
virtual

Definition at line 26 of file TIndexFactoryResourceInterface.cpp.

27{
28 m_IndexFormat = *a_pIndexFormat;
29 m_uiMaxStaticIndices = a_uiMaxStaticIndices;
30 m_uiFlags = a_uiFlags;
31 return TResource::Create();
32}
virtual TBOOL Create()
Definition TResource.cpp:28

◆ CreatePool()

TIndexPoolResourceInterface * TIndexFactoryResourceInterface::CreatePool ( TUINT16 a_uiMaxStaticIndices,
TUINT32 a_uiFlags )
protected

Definition at line 34 of file TIndexFactoryResourceInterface.cpp.

35{
36 m_uiNumPools += 1;
37 return TNULL;
38}
#define TNULL
Definition Typedefs.h:23

◆ CreatePoolResource()

virtual TIndexPoolResourceInterface * TIndexFactoryResourceInterface::CreatePoolResource ( TUINT16 a_uiMaxStaticIndices,
TUINT16 a_uiFlags )
pure virtual

Implemented in TIndexFactoryResource.

◆ GetIndexFormat()

const TIndexFactoryFormat & TIndexFactoryResourceInterface::GetIndexFormat ( ) const
inline

Definition at line 23 of file TIndexFactoryResourceInterface.h.

23{ return m_IndexFormat; }

◆ GetMaxStaticIndices()

TUINT16 TIndexFactoryResourceInterface::GetMaxStaticIndices ( ) const
inline

Definition at line 24 of file TIndexFactoryResourceInterface.h.

24{ return m_uiMaxStaticIndices; }

◆ TDECLARE_CLASS()

TIndexFactoryResourceInterface::TDECLARE_CLASS ( TIndexFactoryResourceInterface ,
TResource  )

Member Data Documentation

◆ m_IndexFormat

TIndexFactoryFormat TIndexFactoryResourceInterface::m_IndexFormat
protected

Definition at line 31 of file TIndexFactoryResourceInterface.h.

◆ m_uiFlags

TUINT TIndexFactoryResourceInterface::m_uiFlags
protected

Definition at line 33 of file TIndexFactoryResourceInterface.h.

◆ m_uiMaxStaticIndices

TUINT16 TIndexFactoryResourceInterface::m_uiMaxStaticIndices
protected

Definition at line 32 of file TIndexFactoryResourceInterface.h.

◆ m_uiNumPools

TUINT TIndexFactoryResourceInterface::m_uiNumPools
protected

Definition at line 30 of file TIndexFactoryResourceInterface.h.

◆ TIndexPoolResourceInterface

friend TIndexFactoryResourceInterface::TIndexPoolResourceInterface

Definition at line 15 of file TIndexFactoryResourceInterface.h.


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