- 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 //****************************************************************************//
Definition: mesh.h:23
Definition: submesh.h:22
Definition: coremesh.h:23
Definition: model.h:30

Generated at Wed Nov 26 2014 05:33:20 by The Cal3D Team with Doxygen 1.8.7