t
|
A class representing attributes, such as vertex positions, face indices, and vertex normals. More...
#include <BufferAttribute.hpp>
Public Member Functions | |
BufferAttribute (std::initializer_list< BufferType > _array, int _itemSize) | |
Creates a new buffer attribute with the specified array and item size. | |
Public Attributes | |
std::vector< BufferType > | array |
The array holding the data of the attribute. | |
int | itemSize |
The number of values of the array that are associated with a particular vertex e.g. | |
A class representing attributes, such as vertex positions, face indices, and vertex normals.
An attribute is a buffer (array) storing data associated with a type of primitve. For example:
|
inline |
Creates a new buffer attribute with the specified array and item size.
_array | The array holding the data of the attribute. |
_itemSize | The number of values of the array that are associated with a particular vertex. |
int t::BufferAttribute< BufferType >::itemSize |
The number of values of the array that are associated with a particular vertex e.g.
for vertex positions, itemSize
should be 3 as a position in 3D space is specified using 3 values.