Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
MatBufferClass Class Reference

#include <meshmatdesc.h>

Inherits ShareBufferClass< VertexMaterialClass * >.

Public Member Functions

 MatBufferClass (int count, const char *msg)
 
 MatBufferClass (const MatBufferClass &that)
 
 ~MatBufferClass (void)
 
void Set_Element (int index, VertexMaterialClass *mat)
 
VertexMaterialClassGet_Element (int index)
 
VertexMaterialClassPeek_Element (int index)
 
- Public Member Functions inherited from ShareBufferClass< VertexMaterialClass * >
 ShareBufferClass (int count, const char *msg)
 
 ShareBufferClass (const ShareBufferClass &that)
 
 ~ShareBufferClass (void)
 
VertexMaterialClass ** Get_Array (void)
 
int Get_Count (void)
 
void Set_Element (int index, const VertexMaterialClass *&thing)
 
const VertexMaterialClass *& Get_Element (int index) const
 
VertexMaterialClass *& Get_Element (int index)
 
void Clear (void)
 
- Public Member Functions inherited from W3DMPO
virtual ~W3DMPO ()
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 
- Protected Member Functions inherited from ShareBufferClass< VertexMaterialClass * >
ShareBufferClassoperator= (const ShareBufferClass &)
 
- Protected Member Functions inherited from W3DMPO
virtual int glueEnforcer () const =0
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 
- Protected Attributes inherited from ShareBufferClass< VertexMaterialClass * >
VertexMaterialClass ** Array
 
int Count
 

Detailed Description

MatBufferClass This is a ShareBufferClass of pointers to vertex materials. Should be written as a template... Get and Peek work like normal, and all non-NULL pointers will be released when the buffer is destroyed.

Definition at line 232 of file meshmatdesc.h.

Constructor & Destructor Documentation

◆ MatBufferClass() [1/2]

MatBufferClass::MatBufferClass ( int count,
const char * msg )
inline

Definition at line 236 of file meshmatdesc.h.

◆ MatBufferClass() [2/2]

MatBufferClass::MatBufferClass ( const MatBufferClass & that)

Definition at line 55 of file meshmatdesc.cpp.

◆ ~MatBufferClass()

MatBufferClass::~MatBufferClass ( void )

Definition at line 66 of file meshmatdesc.cpp.

Member Function Documentation

◆ Get_Element()

VertexMaterialClass * MatBufferClass::Get_Element ( int index)

Definition at line 78 of file meshmatdesc.cpp.

◆ Peek_Element()

VertexMaterialClass * MatBufferClass::Peek_Element ( int index)

Definition at line 86 of file meshmatdesc.cpp.

◆ Set_Element()

void MatBufferClass::Set_Element ( int index,
VertexMaterialClass * mat )

Definition at line 73 of file meshmatdesc.cpp.


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