molecular
|
Intermediate representation of mesh data. More...
#include <Mesh.h>
Classes | |
class | Attribute |
Single attribute buffer. More... | |
Public Member Functions | |
Mesh (unsigned int numVertices, IndexBufferInfo::Mode mode=IndexBufferInfo::Mode::kTriangles) | |
Construct from number of vertices. More... | |
Mesh (const Mesh &)=delete | |
Mesh (Mesh &&)=default | |
template<typename T > | |
void | SetAttributeData (Hash name, const T *data, size_t count) |
void | SetAttributeData (Hash name, VertexAttributeInfo::Type type, unsigned int components, const void *data, size_t size) |
Set attribute data from raw data. More... | |
std::vector< uint32_t > & | GetIndices () |
const std::vector< uint32_t > & | GetIndices () const |
IndexBufferInfo::Mode | GetMode () const |
void | SetMode (IndexBufferInfo::Mode mode) |
const std::string & | GetMaterial () const |
void | SetMaterial (const std::string &material) |
unsigned int | GetNumVertices () const |
const std::unordered_map< Hash, Attribute > & | GetAttributes () const |
std::unordered_map< Hash, Attribute > & | GetAttributes () |
const Attribute & | GetAttribute (Hash name) const |
Attribute & | GetAttribute (Hash name) |
void | RemoveAttribute (Hash name) |
Intermediate representation of mesh data.
|
inlineexplicit |
Construct from number of vertices.
numVertices | Number of vertices. NOT number of indices. |
|
delete |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set attribute data from raw data.
|
inline |
|
inline |