17 #ifndef ATTRIBUTESET_H
18 #define ATTRIBUTESET_H
20 #include "Attribute.h"
22 #include <initializer_list>
64 explicit AttributeSet(std::initializer_list<Attribute> list);
71 explicit AttributeSet(
const std::vector<Attribute>& list);
79 #endif // ATTRIBUTESET_H
void computeAttributeOffsets()
Computes and fills in this attribute set's attribute offsets and vertex stride.
Header declaring and including types common to renderer classes such as Vector2. Also includes GL hea...
AttributeSet()
Constructs an empty attribute set.
int vertexStride
Number of bytes between vertices.
Definition: AttributeSet.h:46
std::vector< int > attributeOffsets
Number of bytes from the beginning of a vertex for each attribute.
Definition: AttributeSet.h:52
A list of vertex attributes.
Definition: AttributeSet.h:36
std::vector< Attribute > attributes
List of attribute definitions.
Definition: AttributeSet.h:40