Carna
Version 3.3.2
|
Declares a vertex attribute. More...
#include <VertexAttributes.h>
Public Member Functions | |
VertexAttribute (std::size_t position, std::size_t componentsCount, unsigned int type) | |
Public Attributes | |
std::size_t | position |
std::size_t | componentsCount |
unsigned int | type |
Static Public Attributes | |
static const unsigned int | TYPE_FLOAT |
Indicates vertex attribute of GL_FLOAT type. | |
static const unsigned int | TYPE_INT |
Indicates vertex attribute of GL_INT type. | |
static const unsigned int | TYPE_UINT |
Indicates vertex attribute of GL_UNSIGNED_INT type. | |
Declares a vertex attribute.
Definition at line 40 of file VertexAttributes.h.
|
inline |
Instantiates.
The attribute is scalar if componentsCount is \(1\). It is vector-valued otherwise.
position | is the position of the vertex attribute within the vertex definition. |
componentsCount | is the number of components from type within this vertex attribute. |
type | is the type of this vertex attribute if it is scalar or the type of the vector components otherwise. |
Definition at line 88 of file VertexAttributes.h.
std::size_t Carna::base::VertexAttribute::componentsCount |
Holds number of components from type within this vertex attribute. The attribute is scalar if the value is \(1\), it is a vector otherwise.
Definition at line 65 of file VertexAttributes.h.
std::size_t Carna::base::VertexAttribute::position |
Holds position of the vertex attribute within the vertex definition.
Definition at line 60 of file VertexAttributes.h.
unsigned int Carna::base::VertexAttribute::type |
Holds the type of this vertex attribute if it is scalar. Holds the type of the vector components otherwise.
Definition at line 71 of file VertexAttributes.h.
Documentation generated by Doxygen