- Cal3D 0.9 API Reference - |
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 // Includes // 00016 //****************************************************************************// 00017 00018 #include "cal3d/global.h" 00019 00020 //****************************************************************************// 00021 // Forward declarations // 00022 //****************************************************************************// 00023 00024 class CalModel; 00025 class CalCoreMesh; 00026 class CalSubmesh; 00027 00028 //****************************************************************************// 00029 // Class declaration // 00030 //****************************************************************************// 00031 00032 /*****************************************************************************/ 00036 class CAL3D_API CalMesh 00037 { 00038 // member variables 00039 protected: 00040 CalModel *m_pModel; 00041 CalCoreMesh *m_pCoreMesh; 00042 std::vector<CalSubmesh *> m_vectorSubmesh; 00043 00044 // constructors/destructor 00045 public: 00046 CalMesh(); 00047 virtual ~CalMesh(); 00048 00049 // member functions 00050 public: 00051 bool create(CalCoreMesh *pCoreMesh); 00052 void destroy(); 00053 CalCoreMesh *getCoreMesh(); 00054 CalSubmesh *getSubmesh(int id); 00055 int getSubmeshCount(); 00056 std::vector<CalSubmesh *>& getVectorSubmesh(); 00057 void setLodLevel(float lodLevel); 00058 void setMaterialSet(int setId); 00059 void setModel(CalModel *pModel); 00060 void disableInternalData(); 00061 }; 00062 00063 #endif 00064 00065 //****************************************************************************//