molecular
|
File structure for meshes. More...
#include <MeshFile.h>
Classes | |
struct | Buffer |
struct | VertexDataSet |
Public Member Functions | |
const VertexDataSet & | GetVertexDataSet (unsigned int i) const |
const VertexAttributeInfo & | GetVertexSpec (unsigned int dataSet, unsigned int spec) const |
const IndexBufferInfo & | GetIndexSpec (unsigned int i) const |
const void * | GetBufferData (unsigned int i) const |
const MeshFile::Buffer & | GetBuffer (unsigned int i) const |
Public Attributes | |
uint32_t | magic |
File identification magic value. More... | |
uint32_t | version |
Version of the file format this file was written for. More... | |
uint32_t | reserved |
uint32_t | numBuffers |
Number of buffers (vertex and index buffers combined) More... | |
uint32_t | numVertexDataSets |
Number of vertex data sets. More... | |
uint32_t | numIndexSpecs |
Number of index specifications. More... | |
uint32_t | vertexDataSetsOffset |
Byte offset inside file to vertex data sets. More... | |
uint32_t | indexSpecsOffset |
Byte offset inside file to index specifications. More... | |
float | boundsMin [3] |
Axis aligned bounding box minimum. More... | |
float | boundsMax [3] |
Axis aligned bounding box maximum. More... | |
Static Public Attributes | |
static const uint32_t | kMagic = 0x8e8e54f1 |
static const uint32_t | kVersion = 1 |
File structure for meshes.
Cast your file contents to this to access mesh data.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
float molecular::meshfile::MeshFile::boundsMax[3] |
Axis aligned bounding box maximum.
float molecular::meshfile::MeshFile::boundsMin[3] |
Axis aligned bounding box minimum.
uint32_t molecular::meshfile::MeshFile::indexSpecsOffset |
Byte offset inside file to index specifications.
|
static |
|
static |
uint32_t molecular::meshfile::MeshFile::magic |
File identification magic value.
uint32_t molecular::meshfile::MeshFile::numBuffers |
Number of buffers (vertex and index buffers combined)
uint32_t molecular::meshfile::MeshFile::numIndexSpecs |
Number of index specifications.
uint32_t molecular::meshfile::MeshFile::numVertexDataSets |
Number of vertex data sets.
uint32_t molecular::meshfile::MeshFile::reserved |
uint32_t molecular::meshfile::MeshFile::version |
Version of the file format this file was written for.
uint32_t molecular::meshfile::MeshFile::vertexDataSetsOffset |
Byte offset inside file to vertex data sets.