- 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   const CalCoreMesh *getCoreMesh() const;
00032   CalSubmesh *getSubmesh(int id);
00033   const CalSubmesh *getSubmesh(int id) const;
00034   int getSubmeshCount() const;
00035   std::vector<CalSubmesh *>& getVectorSubmesh();
00036   const std::vector<CalSubmesh *>& getVectorSubmesh() const;
00037   void setLodLevel(float lodLevel);
00038   void setMaterialSet(int setId);
00039   void setModel(CalModel *pModel);
00040   void disableInternalData();
00041 
00042 private:
00043   CalModel                 *m_pModel;
00044   CalCoreMesh              *m_pCoreMesh;
00045   std::vector<CalSubmesh *> m_vectorSubmesh;
00046 };
00047 
00048 #endif
00049 
00050 //****************************************************************************//

Generated by The Cal3D Team with Doxygen 1.7.3