ezEngine  Milestone 7
ezMeshResourceDescriptor Class Reference

Classes

struct  Material
 
struct  SubMesh
 

Public Member Functions

ezMeshBufferResourceDescriptorMeshBufferDesc ()
 
const
ezMeshBufferResourceDescriptor
MeshBufferDesc () const
 
void UseExistingMeshBuffer (const ezMeshBufferResourceHandle &hBuffer)
 
void AddSubMesh (ezUInt32 uiPrimitiveCount, ezUInt32 uiFirstPrimitive, ezUInt32 uiMaterialIndex)
 
void SetMaterial (ezUInt32 uiMaterialIndex, const char *szPathToMaterial)
 
void Save (ezStreamWriterBase &stream)
 
ezResult Save (const char *szFile)
 
ezResult Load (ezStreamReaderBase &stream)
 
ezResult Load (const char *szFile)
 
const ezMeshBufferResourceHandleGetExistingMeshBuffer () const
 
const ezHybridArray< Material, 32 > & GetMaterials () const
 
const ezHybridArray< SubMesh, 32 > & GetSubMeshes () const
 
void CalculateBounds ()
 
const ezBoundingBoxSphereGetBounds () const
 

Private Attributes

ezHybridArray< Material, 32 > m_Materials
 
ezHybridArray< SubMesh, 32 > m_SubMeshes
 
ezMeshBufferResourceDescriptor m_MeshBufferDescriptor
 
ezMeshBufferResourceHandle m_hMeshBuffer
 
ezBoundingBoxSphere m_Bounds
 

Class Documentation

struct ezMeshResourceDescriptor::Material
Class Members
ezString m_sPath

Member Function Documentation

void ezMeshResourceDescriptor::CalculateBounds ( )
Todo:
submesh bounds
ezResult ezMeshResourceDescriptor::Load ( ezStreamReaderBase stream)
Todo:
Material Path (relative to mesh file)
Todo:
load from file
void ezMeshResourceDescriptor::Save ( ezStreamWriterBase stream)
Todo:
Material Path (relative to mesh file)

The documentation for this class was generated from the following files: