Class IndexBuffer

Class Documentation

class IndexBuffer

Encapsulates Index Buffer data, to be supplied to the Input Assembler.

Public Functions

IndexBuffer(const Vector<unsigned short> &indices, bool dynamicWrite = false)
IndexBuffer(const Vector<unsigned int> &indices)
IndexBuffer(const int *indices, size_t size)
~IndexBuffer()
void bind() const
unsigned int getCount() const
ID3D11Buffer *getBuffer()

Protected Attributes

Microsoft::WRL::ComPtr<ID3D11Buffer> m_IndexBuffer
unsigned int m_Count
DXGI_FORMAT m_Format