molecular
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
molecular::meshfile::MeshFile Struct Reference

File structure for meshes. More...

#include <MeshFile.h>

Classes

struct  Buffer
 
struct  VertexDataSet
 

Public Member Functions

const VertexDataSetGetVertexDataSet (unsigned int i) const
 
const VertexAttributeInfoGetVertexSpec (unsigned int dataSet, unsigned int spec) const
 
const IndexBufferInfoGetIndexSpec (unsigned int i) const
 
const void * GetBufferData (unsigned int i) const
 
const MeshFile::BufferGetBuffer (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
 

Detailed Description

File structure for meshes.

Cast your file contents to this to access mesh data.

See also
MeshCompiler

Member Function Documentation

const MeshFile::Buffer& molecular::meshfile::MeshFile::GetBuffer ( unsigned int  i) const
inline
const void* molecular::meshfile::MeshFile::GetBufferData ( unsigned int  i) const
inline
const IndexBufferInfo& molecular::meshfile::MeshFile::GetIndexSpec ( unsigned int  i) const
inline
const VertexDataSet& molecular::meshfile::MeshFile::GetVertexDataSet ( unsigned int  i) const
inline
const VertexAttributeInfo& molecular::meshfile::MeshFile::GetVertexSpec ( unsigned int  dataSet,
unsigned int  spec 
) const
inline

Member Data Documentation

float molecular::meshfile::MeshFile::boundsMax[3]

Axis aligned bounding box maximum.

See also
AxisAlignedBox
float molecular::meshfile::MeshFile::boundsMin[3]

Axis aligned bounding box minimum.

See also
AxisAlignedBox
uint32_t molecular::meshfile::MeshFile::indexSpecsOffset

Byte offset inside file to index specifications.

const uint32_t molecular::meshfile::MeshFile::kMagic = 0x8e8e54f1
static
const uint32_t molecular::meshfile::MeshFile::kVersion = 1
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.

See also
IndexBufferInfo
uint32_t molecular::meshfile::MeshFile::numVertexDataSets

Number of vertex data sets.

See also
VertexDataSet
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.


The documentation for this struct was generated from the following file: