template<typename T, unsigned DIM, int attrib, int location = attrib>
class inviwo::buffertraits::TypedMeshBufferBase< T, DIM, attrib, location >
Based class used to decorate TypedMesh with buffers. Handles creation of buffers and adds it to the mesh. Also has convince functions to access the buffers and its data containers. Note on Template parameters The first two template parameters, typename T, unsigned DIM
is used instead of Vector<DIM,T>
or glm::TvecX, this is due to compiler issues related to the clone function. Similarly, The template parameter int attrib
can't be a strongly typed enum (inviwo::BufferType) and therefor it is an int.
- See also
- TypedMesh
-
TypedMesh