RenderWare::VertexBuffer struct

A buffer that contains all the vertices data.

For more information, check the official Direct3D 9 documentation:

Public static variables

static const uint32_t TYPE

Constructors, destructors, conversion operators

VertexBuffer()

Public functions

void ReleaseDirectX()
Releases the DirectX buffer.
void CreateDirectX()
Creates the DirectX buffer. This will set the 'pDXBuffer' field.
void LockDirectXData()
Sends the buffer data into the DirectX object.

Public variables

VertexDescriptionBase* pVertexDescription
The VertexDescription that defines the data that each vertex has.
IDirect3DVertexBuffer9* pDXBuffer
The IDirect3DVertexBuffer9 that is operating behind this structure.
size_t baseVertexIndex
Offset from the start of the vertex buffer to the first vertex.
size_t vertexCount
The amount of vertices contained in the buffer.
int usage
uint8_t stride
The size in bytes of each vertex structure.
uint8_t lockFlags
void* pVertexData
The raw data of the vertices. This is an array of vertices, but the data they contain depends on the VertexDescription.