Header declaring and including types common to renderer classes such as Vector2. Also includes GL hea...
GLboolean normalized
Specifies whether certain types should be normalized before accessed by shaders.
Definition: Attribute.h:43
GLuint type
GL type of each component in the array.
Definition: Attribute.h:47
Attribute()
Constructor creating an empty attribute definition.
static int getComponentSizeStatic(GLuint type)
Computes the number of bytes per component for a given GL type.
GLuint size
Number of components per vertex attribute.
Definition: Attribute.h:39
The definition of a vertex attribute, such as a position vector, or a texture coordinate.
Definition: Attribute.h:31
std::string name
Name of the attribute, as specified in the shader code.
Definition: Attribute.h:35
int getComponentSize() const
Computes the number of bytes per component.
Definition: Attribute.h:66