t
Loading...
Searching...
No Matches
BufferAttribute.hpp
1#include <initializer_list>
2#include <span>
3#include <vector>
4
5#ifndef BUFFERATTRIBUTE_HPP
6#define BUFFERATTRIBUTE_HPP
7
8namespace t {
9
27template <class BufferType> class BufferAttribute {
28public:
29 std::vector<BufferType>
43 BufferAttribute(std::initializer_list<BufferType> _array, int _itemSize)
45};
46
47} // namespace t
48
49#endif // BUFFERATTRIBUTE_HPP
A class representing attributes, such as vertex positions, face indices, and vertex normals.
Definition BufferAttribute.hpp:27
BufferAttribute(std::initializer_list< BufferType > _array, int _itemSize)
Creates a new buffer attribute with the specified array and item size.
Definition BufferAttribute.hpp:43
int itemSize
The number of values of the array that are associated with a particular vertex e.g.
Definition BufferAttribute.hpp:31
std::vector< BufferType > array
The array holding the data of the attribute.
Definition BufferAttribute.hpp:30
The t software 3D graphics library namespace.
Definition algorithms.hpp:12