![]() |
LibCarna Version 3.4.0
|
Declares a vertex attribute. More...
#include <VertexAttributes.hpp>
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 43 of file VertexAttributes.hpp.
|
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 91 of file VertexAttributes.hpp.
std::size_t LibCarna::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 68 of file VertexAttributes.hpp.
std::size_t LibCarna::base::VertexAttribute::position |
Holds position of the vertex attribute within the vertex definition.
Definition at line 63 of file VertexAttributes.hpp.
Holds the type of this vertex attribute if it is scalar. Holds the type of the vector components otherwise.
Definition at line 74 of file VertexAttributes.hpp.
Indicates vertex attribute of GL_FLOAT
type.
Definition at line 49 of file VertexAttributes.hpp.
Indicates vertex attribute of GL_INT
type.
Definition at line 54 of file VertexAttributes.hpp.
Indicates vertex attribute of GL_UNSIGNED_INT
type.
Definition at line 59 of file VertexAttributes.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen