Graphics::cBufferDraw class

Public types

enum class VertexType { V3FC4B = 0, V3FT2F = 1, V3FC4BT2F = 2, V3FC4BT3F = 3, V3FN3FC4BT2F = 4, V3FC4BP1F = 5, V4FN4FC4BT2F = 6, V4FN4FC4BC4B = 7, V4FN4FG3FC4BC4B = 8, V4FN3FC4BT4FT4FT4FT4FT4F = 9, V3FC4BT2FT2FT2F = 10, V4FN4FC4BC4BT4B = 11 }
enum class IndexType { PointList = 0, LineList = 1, TriangleList2 = 2, TriangleList = 3, TriangleStrip = 4, TriangleFan = 5 }

Public static variables

static const int MAX_VERTICES

Public static functions

static auto LockVertexBuffer(VertexType vertexType, int numVertices, void*& pDstData, int& dstStride) -> bool
static auto UnlockVertexBuffer() -> bool
static auto UnlockAndDrawMaterial1Texture(IndexType indexType, Material* pMaterial, Texture* pTexture, const RenderStatistics& stats) -> void
static auto UnlockAndDrawMaterial(IndexType indexType, Material* pMaterial, const RenderStatistics& stats) -> void
static auto UnlockAndDrawNoMaterial(IndexType indexType, const RenderStatistics& stats) -> void
static auto Get() -> cBufferDraw*

Public variables

RenderWare::VertexBuffer* mVertexBuffers
RenderWare::IndexBuffer* mpIndexBuffer
RenderWare::VertexDescriptionBase* mVertexDescriptions
int field_64
int field_68
int field_6C
int mFirstFreeVertex
Index to first free vertex for each vertex type.
int mLastVertex
int field_D0
void* field_100
int field_130
int field_160
bool mIsLocked
True if a vertex buffer is locked.
int field_194
int field_198
bool field_19C
int mCurrentIndex
int field_1A4
int field_1A8
int field_1AC
int field_1B0