- Cal3D 0.11 API Reference -

mesh.h
1//****************************************************************************//
2// mesh.h //
3// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4//****************************************************************************//
5// This library is free software; you can redistribute it and/or modify it //
6// under the terms of the GNU Lesser General Public License as published by //
7// the Free Software Foundation; either version 2.1 of the License, or (at //
8// your option) any later version. //
9//****************************************************************************//
10
11#ifndef CAL_MESH_H
12#define CAL_MESH_H
13
14
15#include "cal3d/global.h"
16
17
18 class CalModel;
19 class CalCoreMesh;
20 class CalSubmesh;
21
22
23 class CAL3D_API CalMesh
24{
25// constructors/destructor
26 public:
27 CalMesh(CalCoreMesh *pCoreMesh);
28 ~CalMesh();
29
30 CalCoreMesh *getCoreMesh();
31 CalSubmesh *getSubmesh(int id);
32 int getSubmeshCount();
33 std::vector<CalSubmesh *>& getVectorSubmesh();
34 void setLodLevel(float lodLevel);
35 void setMaterialSet(int setId);
36 void setModel(CalModel *pModel);
37 void disableInternalData();
38
39 private:
40 CalModel *m_pModel;
41 CalCoreMesh *m_pCoreMesh;
42 std::vector<CalSubmesh *> m_vectorSubmesh;
43};
44
45#endif
46
47//****************************************************************************//
CalCoreMesh
Definition coremesh.h:24
CalMesh::setModel
void setModel(CalModel *pModel)
Sets the model.
Definition mesh.cpp:195
CalMesh::setMaterialSet
void setMaterialSet(int setId)
Sets the material set.
Definition mesh.cpp:168
CalMesh::getCoreMesh
CalCoreMesh * getCoreMesh()
Provides access to the core mesh.
Definition mesh.cpp:86
CalMesh::getSubmesh
CalSubmesh * getSubmesh(int id)
Provides access to a submesh.
Definition mesh.cpp:103
CalMesh::disableInternalData
void disableInternalData()
Disable internal data (and thus springs system).
Definition mesh.cpp:206
CalMesh::getVectorSubmesh
std::vector< CalSubmesh * > & getVectorSubmesh()
Returns the submesh vector.
Definition mesh.cpp:136
CalMesh::getSubmeshCount
int getSubmeshCount()
Returns the number of submeshes.
Definition mesh.cpp:122
CalMesh::setLodLevel
void setLodLevel(float lodLevel)
Sets the LOD level.
Definition mesh.cpp:149
CalMesh::CalMesh
CalMesh(CalCoreMesh *pCoreMesh)
Constructs the mesh instance.
Definition mesh.cpp:33
CalModel
Definition model.h:31
CalSubmesh
Definition submesh.h:23

Generated by The Cal3D Team with Doxygen 1.15.0