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

#include <dx8indexbuffer.h>

Inherits IndexBufferClass.

Public Types

enum  UsageType { USAGE_DEFAULT =0 , USAGE_DYNAMIC =1 , USAGE_SOFTWAREPROCESSING =2 , USAGE_NPATCHES =4 }
 

Public Member Functions

 DX8IndexBufferClass (unsigned short index_count, UsageType usage=USAGE_DEFAULT)
 
 ~DX8IndexBufferClass ()
 
void Copy (unsigned int *indices, unsigned start_index, unsigned index_count)
 
void Copy (unsigned short *indices, unsigned start_index, unsigned index_count)
 
IDirect3DIndexBuffer8 * Get_DX8_Index_Buffer ()
 
- Public Member Functions inherited from IndexBufferClass
 IndexBufferClass (unsigned type, unsigned short index_count)
 
void Copy (unsigned int *indices, unsigned start_index, unsigned index_count)
 
void Copy (unsigned short *indices, unsigned start_index, unsigned index_count)
 
unsigned short Get_Index_Count () const
 
unsigned Type () const
 
void Add_Engine_Ref () const
 
void Release_Engine_Ref () const
 
unsigned Engine_Refs () const
 
- 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 IndexBufferClass
static unsigned Get_Total_Buffer_Count ()
 
static unsigned Get_Total_Allocated_Indices ()
 
static unsigned Get_Total_Allocated_Memory ()
 
- 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 IndexBufferClass
virtual ~IndexBufferClass ()
 
- Protected Member Functions inherited from W3DMPO
virtual int glueEnforcer () const =0
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 
- Protected Attributes inherited from IndexBufferClass
int engine_refs
 
unsigned short index_count
 
unsigned type
 

Detailed Description

DX8IndexBufferClass This class wraps a DX8 index buffer.

Definition at line 162 of file dx8indexbuffer.h.

Member Enumeration Documentation

◆ UsageType

Enumerator
USAGE_DEFAULT 
USAGE_DYNAMIC 
USAGE_SOFTWAREPROCESSING 
USAGE_NPATCHES 

Definition at line 169 of file dx8indexbuffer.h.

Constructor & Destructor Documentation

◆ DX8IndexBufferClass()

DX8IndexBufferClass::DX8IndexBufferClass ( unsigned short index_count,
UsageType usage = USAGE_DEFAULT )

Definition at line 285 of file dx8indexbuffer.cpp.

◆ ~DX8IndexBufferClass()

DX8IndexBufferClass::~DX8IndexBufferClass ( )

Definition at line 339 of file dx8indexbuffer.cpp.

Member Function Documentation

◆ Copy() [1/2]

void DX8IndexBufferClass::Copy ( unsigned int * indices,
unsigned start_index,
unsigned index_count )

◆ Copy() [2/2]

void DX8IndexBufferClass::Copy ( unsigned short * indices,
unsigned start_index,
unsigned index_count )

◆ Get_DX8_Index_Buffer()

IDirect3DIndexBuffer8 * DX8IndexBufferClass::Get_DX8_Index_Buffer ( )
inline

Definition at line 182 of file dx8indexbuffer.h.


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