- 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 class CalMorphTargetMixer; 00028 00029 //****************************************************************************// 00030 // Class declaration // 00031 //****************************************************************************// 00032 00033 /*****************************************************************************/ 00037 class CAL3D_API CalMesh 00038 { 00039 // member variables 00040 protected: 00041 CalModel *m_pModel; 00042 CalCoreMesh *m_pCoreMesh; 00043 CalMorphTargetMixer *m_pMorphTargetMixer; 00044 std::vector<CalSubmesh *> m_vectorSubmesh; 00045 00046 // constructors/destructor 00047 public: 00048 CalMesh(); 00049 virtual ~CalMesh(); 00050 00051 // member functions 00052 public: 00053 bool create(CalCoreMesh *pCoreMesh); 00054 void destroy(); 00055 CalCoreMesh *getCoreMesh(); 00056 CalSubmesh *getSubmesh(int id); 00057 int getSubmeshCount(); 00058 std::vector<CalSubmesh *>& getVectorSubmesh(); 00059 void setLodLevel(float lodLevel); 00060 void setMaterialSet(int setId); 00061 void setModel(CalModel *pModel); 00062 void disableInternalData(); 00063 CalMorphTargetMixer *getMorphTargetMixer(); 00064 }; 00065 00066 #endif 00067 00068 //****************************************************************************//