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

#include <TVertexFactoryResourceInterface.h>

Inheritance diagram for TVertexFactoryResourceInterface:
TResource TObject TNodeTree< T >::TNode TVertexFactoryResource

Public Member Functions

 TDECLARE_CLASS (TVertexFactoryResourceInterface, TResource)
 
 TVertexFactoryResourceInterface ()
 
virtual TBOOL Create (TVertexFactoryFormat *a_pVertexFormat, TUINT16 a_uiMaxStaticVertices, TUINT32 a_uiFlags)
 
virtual TVertexPoolResourceInterfaceCreatePoolResource (TUINT16 a_uiMaxStaticVertices, TUINT16 a_uiFlags)=0
 
const TVertexFactoryFormatGetVertexFormat () const
 
TUINT16 GetMaxStaticVertices () 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 TVertexPoolResourceInterface
 
- Public Attributes inherited from TResource
friend TRenderInterface
 
- Public Attributes inherited from TNodeTree< T >::TNode
friend TNodeTree
 

Protected Member Functions

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

Protected Attributes

TUINT m_uiNumPools
 
TVertexFactoryFormat m_VertexFormat
 
TUINT16 m_uiMaxStaticVertices
 
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 TVertexFactoryResourceInterface.h.

Constructor & Destructor Documentation

◆ TVertexFactoryResourceInterface()

TVertexFactoryResourceInterface::TVertexFactoryResourceInterface ( )

Member Function Documentation

◆ Create()

TBOOL TVertexFactoryResourceInterface::Create ( TVertexFactoryFormat * a_pVertexFormat,
TUINT16 a_uiMaxStaticVertices,
TUINT32 a_uiFlags )
virtual

Definition at line 21 of file TVertexFactoryResourceInterface.cpp.

22{
23 TVALIDPTR( a_pVertexFormat );
24
25 m_VertexFormat = *a_pVertexFormat;
26 m_uiMaxStaticVertices = a_uiMaxStaticVertices;
27 m_uiFlags = a_uiFlags;
28 return TResource::Create();
29}
#define TVALIDPTR(PTR)
Definition Defines.h:139
virtual TBOOL Create()
Definition TResource.cpp:28

◆ CreatePool()

TVertexPoolResourceInterface * TVertexFactoryResourceInterface::CreatePool ( TUINT16 a_uiMaxStaticVertices,
TUINT32 a_uiFlags )
protected

Definition at line 31 of file TVertexFactoryResourceInterface.cpp.

32{
33 m_uiNumPools += 1;
34 return TNULL;
35}
#define TNULL
Definition Typedefs.h:23

◆ CreatePoolResource()

virtual TVertexPoolResourceInterface * TVertexFactoryResourceInterface::CreatePoolResource ( TUINT16 a_uiMaxStaticVertices,
TUINT16 a_uiFlags )
pure virtual

Implemented in TVertexFactoryResource.

◆ GetMaxStaticVertices()

TUINT16 TVertexFactoryResourceInterface::GetMaxStaticVertices ( ) const
inline

Definition at line 24 of file TVertexFactoryResourceInterface.h.

24{ return m_uiMaxStaticVertices; }

◆ GetVertexFormat()

const TVertexFactoryFormat & TVertexFactoryResourceInterface::GetVertexFormat ( ) const
inline

Definition at line 23 of file TVertexFactoryResourceInterface.h.

23{ return m_VertexFormat; }

◆ TDECLARE_CLASS()

TVertexFactoryResourceInterface::TDECLARE_CLASS ( TVertexFactoryResourceInterface ,
TResource  )

Member Data Documentation

◆ m_uiFlags

TUINT TVertexFactoryResourceInterface::m_uiFlags
protected

Definition at line 33 of file TVertexFactoryResourceInterface.h.

◆ m_uiMaxStaticVertices

TUINT16 TVertexFactoryResourceInterface::m_uiMaxStaticVertices
protected

Definition at line 32 of file TVertexFactoryResourceInterface.h.

◆ m_uiNumPools

TUINT TVertexFactoryResourceInterface::m_uiNumPools
protected

Definition at line 30 of file TVertexFactoryResourceInterface.h.

◆ m_VertexFormat

TVertexFactoryFormat TVertexFactoryResourceInterface::m_VertexFormat
protected

Definition at line 31 of file TVertexFactoryResourceInterface.h.

◆ TVertexPoolResourceInterface

friend TVertexFactoryResourceInterface::TVertexPoolResourceInterface

Definition at line 15 of file TVertexFactoryResourceInterface.h.


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