struct
VertexBufferA buffer that contains all the vertices data.
For more information, check the official Direct3D 9 documentation:
- IDirect3DDevice9::
CreateVertexBuffer method - IDirect3DVertexBuffer9 interface
- IDirect3DDevice9::
DrawIndexedPrimitive method
Public static variables
Constructors, destructors, conversion operators
Public functions
- auto ReleaseDirectX() -> void
- Releases the DirectX buffer.
- auto CreateDirectX() -> void
- Creates the DirectX buffer. This will set the 'pDXBuffer' field.
- auto LockDirectXData() -> void
- 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.