25 #ifndef __glfVertexFormat_hh__
26 #define __glfVertexFormat_hh__
28 #include "glfCommon.hh"
74 void AddAttribute(Attribute attrib,
int index, GLenum type,
int size,
bool normalized =
false);
81 AddAttribute(attrib, 0, type, size);
87 int GetVertexSize()
const;
92 bool HasAttribute(Attribute attrib,
int index = 0)
const;
99 bool GetAttributeInfo(Attribute attrib,
int index,
int& offset, GLenum& type,
int& size)
const;
105 void Bind(
const void* data)
const;
112 bool IsAttributeSupported(Attribute attrib,
int index, GLenum type,
int size, std::string& reason);
115 struct AttributeDesc {
121 GLboolean normalized;
124 std::vector<AttributeDesc> attribDesc_;
130 #endif // __glfVertexFormat_hh__