- 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
18class CalModel;
19class CalCoreMesh;
20class CalSubmesh;
21
22
23class CAL3D_API CalMesh
24{
25// constructors/destructor
26public:
27 CalMesh(CalCoreMesh *pCoreMesh);
28 ~CalMesh();
29
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);
38
39private:
40 CalModel *m_pModel;
41 CalCoreMesh *m_pCoreMesh;
42 std::vector<CalSubmesh *> m_vectorSubmesh;
43};
44
45#endif
46
47//****************************************************************************//
Definition coremesh.h:24
void setModel(CalModel *pModel)
Sets the model.
Definition mesh.cpp:195
void setMaterialSet(int setId)
Sets the material set.
Definition mesh.cpp:168
CalCoreMesh * getCoreMesh()
Provides access to the core mesh.
Definition mesh.cpp:86
CalSubmesh * getSubmesh(int id)
Provides access to a submesh.
Definition mesh.cpp:103
void disableInternalData()
Disable internal data (and thus springs system).
Definition mesh.cpp:206
std::vector< CalSubmesh * > & getVectorSubmesh()
Returns the submesh vector.
Definition mesh.cpp:136
int getSubmeshCount()
Returns the number of submeshes.
Definition mesh.cpp:122
void setLodLevel(float lodLevel)
Sets the LOD level.
Definition mesh.cpp:149
CalMesh(CalCoreMesh *pCoreMesh)
Constructs the mesh instance.
Definition mesh.cpp:33
Definition model.h:31
Definition submesh.h:23

Generated by The Cal3D Team with Doxygen 1.15.0