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

#include <dx8vertexbuffer.h>

Classes

class  WriteLockClass
 

Public Member Functions

 DynamicVBAccessClass (unsigned type, unsigned fvf, unsigned short vertex_count)
 
 ~DynamicVBAccessClass ()
 
const FVFInfoClassFVF_Info () const
 
unsigned Get_Type () const
 
unsigned short Get_Vertex_Count () const
 

Static Public Member Functions

static void _Deinit ()
 
static void _Reset (bool frame_changed)
 
static unsigned short Get_Default_Vertex_Count (void)
 current size of dynamic vertex buffer
 

Public Attributes

friend WriteLockClass
 

Detailed Description

Dynamic vertex buffer access is a wrapper to a single cycled dynamic vertex buffer. DynamicVBAccess gains an access to the dynamic vertex buffer and only only of these are allowed at any one time.

The dynamic fvf buffers are always of the same type.

NOTE: Dynamic vertex buffers accessors should only be used locally!

Definition at line 139 of file dx8vertexbuffer.h.

Constructor & Destructor Documentation

◆ DynamicVBAccessClass()

DynamicVBAccessClass::DynamicVBAccessClass ( unsigned type,
unsigned fvf,
unsigned short vertex_count )

Definition at line 719 of file dx8vertexbuffer.cpp.

◆ ~DynamicVBAccessClass()

DynamicVBAccessClass::~DynamicVBAccessClass ( )

Definition at line 737 of file dx8vertexbuffer.cpp.

Member Function Documentation

◆ _Deinit()

void DynamicVBAccessClass::_Deinit ( )
static

Definition at line 753 of file dx8vertexbuffer.cpp.

◆ _Reset()

void DynamicVBAccessClass::_Reset ( bool frame_changed)
static

Definition at line 900 of file dx8vertexbuffer.cpp.

◆ FVF_Info()

const FVFInfoClass & DynamicVBAccessClass::FVF_Info ( ) const
inline

Definition at line 163 of file dx8vertexbuffer.h.

◆ Get_Default_Vertex_Count()

unsigned short DynamicVBAccessClass::Get_Default_Vertex_Count ( void )
static

current size of dynamic vertex buffer

Definition at line 906 of file dx8vertexbuffer.cpp.

◆ Get_Type()

unsigned DynamicVBAccessClass::Get_Type ( ) const
inline

Definition at line 164 of file dx8vertexbuffer.h.

◆ Get_Vertex_Count()

unsigned short DynamicVBAccessClass::Get_Vertex_Count ( ) const
inline

Definition at line 165 of file dx8vertexbuffer.h.

Member Data Documentation

◆ WriteLockClass

friend DynamicVBAccessClass::WriteLockClass

Definition at line 189 of file dx8vertexbuffer.h.


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