- Cal3D 0.11 API Reference -

mesh.h

00001 //****************************************************************************//
00002 // mesh.h                                                                     //
00003 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger                       //
00004 //****************************************************************************//
00005 // This library is free software; you can redistribute it and/or modify it    //
00006 // under the terms of the GNU Lesser General Public License as published by   //
00007 // the Free Software Foundation; either version 2.1 of the License, or (at    //
00008 // your option) any later version.                                            //
00009 //****************************************************************************//
00010 
00011 #ifndef CAL_MESH_H
00012 #define CAL_MESH_H
00013 
00014 
00015 #include "cal3d/global.h"
00016 
00017 
00018 class CalModel;
00019 class CalCoreMesh;
00020 class CalSubmesh;
00021 
00022 
00023 class CAL3D_API CalMesh
00024 {
00025 // constructors/destructor
00026 public:
00027   CalMesh(CalCoreMesh *pCoreMesh);
00028   ~CalMesh();
00029 
00030   CalCoreMesh *getCoreMesh();
00031   CalSubmesh *getSubmesh(int id);
00032   int getSubmeshCount();
00033   std::vector<CalSubmesh *>& getVectorSubmesh();
00034   void setLodLevel(float lodLevel);
00035   void setMaterialSet(int setId);
00036   void setModel(CalModel *pModel);
00037   void disableInternalData();
00038 
00039 private:
00040   CalModel *m_pModel;
00041   CalCoreMesh *m_pCoreMesh;
00042   std::vector<CalSubmesh *> m_vectorSubmesh;
00043 };
00044 
00045 #endif
00046 
00047 //****************************************************************************//

Generated at Thu Jun 29 19:03:59 2006 by The Cal3D Team with Doxygen 1.4.6