RenderWare::VertexDescriptionBase struct

Derived classes

template<uint16_t nVertexElements = (uint16_t)1>
struct VertexDescription
A vertex declaration defines the vertex buffer layout and programs the tessellation engine.
template<uint16_t nVertexElements = (uint16_t)1>
struct VertexDescription
A vertex declaration defines the vertex buffer layout and programs the tessellation engine.

Public static variables

static const uint32_t RW_TYPE

Constructors, destructors, conversion operators

VertexDescriptionBase()

Public functions

auto CreateDeclaration(IDirect3DDevice9* pDevice) -> void
Creates the IDirect3DVertexDeclaration9 object required by Direct3D 9 using the elements in this description.
auto LoadDeclaration() -> void
Loads this IDirect3DVertexDeclaration9 into DirectX.
auto ReleaseDirectX() -> void
Releases the DirectX object.
auto SetElement(int index, const VertexElement& element) -> void
auto D3D9VertexDescriptorAddToList(VertexDescriptionBase*) -> void

Public variables

VertexDescriptionBase* pNextParent
VertexDescriptionBase* pNextSibling
IDirect3DVertexDeclaration9* pDXVertexDeclaration
The IDirect3DVertexDeclaration9 that operates behind this structure.
uint16_t elementsCount
The amount of elements contained in this description.
char lockFlags
uint8_t stride
The size in bytes of each vertex.
int elementsUsed
int elementsHash
VertexElement elements
An array of all the VertexElement objects of this description.