#ifndef CDYNAMICVERTEXBUFFER_H #define CDYNAMICVERTEXBUFFER_H #include #include #include #include #include #include class CDynamicVertexBuffer { EVertexDescription mAttribFlags; EVertexDescription mBufferedFlags; u32 mNumVertices; GLuint mAttribBuffers[12]; public: CDynamicVertexBuffer(); ~CDynamicVertexBuffer(); void SetVertexCount(u32 NumVerts); void Bind(); void Unbind(); void SetActiveAttribs(u32 AttribFlags); void BufferAttrib(EVertexDescription Attrib, const void *pData); void ClearBuffers(); GLuint CreateVAO(); private: void InitBuffers(); }; #endif // CDYNAMICVERTEXBUFFER_H