4 #include "ParameterBlock.h" 50 CSubMesh(
float toCameraDist,
const string& filename):m_fToCameraDist(toCameraDist), m_sFileName(filename){};
63 bool LoadFromFile(
const string& filename);
66 bool LoadFromFile(
const string& filename,
const string& parentDir);
71 bool LoadFromBuffer(
const char* pData,
int nSize);
84 bool SaveToFile(
const string& filename);
101 return (nIndex<(
int)m_SubMeshes.size()) ? (&(m_SubMeshes[nIndex])) : NULL;
ParaMeshXMLType
type of the mesh that this file represents.
Definition: ParaMeshXMLFile.h:36
CSubMesh * GetSubMesh(int nIndex)
get the sub mesh info at the given index.
Definition: ParaMeshXMLFile.h:100
void SetParentDirectory(const string &parentDir)
set such as "model/", relative path will be appended with this one.
Definition: ParaMeshXMLFile.h:75
CParameterBlock m_paramBlock
effect parameter block with this asset.
Definition: ParaMeshXMLFile.h:133
float m_fToCameraDist
distance to camera.when this LOD mesh should be drawn.
Definition: ParaMeshXMLFile.h:50
sub LOD meshes.
Definition: ParaMeshXMLFile.h:46
different physics engine has different winding order.
Definition: EventBinding.h:32
int GetSubMeshCount()
get the number of sub meshes
Definition: ParaMeshXMLFile.h:97
const string & GetParentDirectory()
get such as "model/", relative path will be appended with this one.
Definition: ParaMeshXMLFile.h:78
int m_nVersion
file version
Definition: ParaMeshXMLFile.h:117
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
vector< CSubMesh > m_SubMeshes
sub meshes info.
Definition: ParaMeshXMLFile.h:120
string m_sFileName
absolute file name of the mesh
Definition: ParaMeshXMLFile.h:56
ParaMeshXMLType GetType()
get the type of the mesh that this file represents.
Definition: ParaMeshXMLFile.h:87
int GetPrimaryShaderIndex()
see ParaEngine::TechniqueHandle.
Definition: ParaMeshXMLFile.h:94
int m_nPrimaryShader
see ParaEngine::TechniqueHandle.
Definition: ParaMeshXMLFile.h:114
Para mesh XML file is a reference file for properly loading static mesh or parax mesh file...
Definition: ParaMeshXMLFile.h:29
Vector3 m_vMaxPos
bounding box of the mesh: max point
Definition: ParaMeshXMLFile.h:130
ParaMeshXMLType m_nType
type of the mesh file.
Definition: ParaMeshXMLFile.h:107
string m_sParentDirectory
such as "model/", relative path will be appended with this one.
Definition: ParaMeshXMLFile.h:123
Vector3 m_vMinPos
bounding box of the mesh: min point
Definition: ParaMeshXMLFile.h:128
bool m_bHasBoundingBox
bounding box of the mesh: whether contains bounding box info
Definition: ParaMeshXMLFile.h:126
a list of CParameter{name, value} pairs of anything.
Definition: ParameterBlock.h:108