- Cal3D 0.9 API Reference -

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

coremesh.h

00001 //****************************************************************************//
00002 // coremesh.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_COREMESH_H
00012 #define CAL_COREMESH_H
00013 
00014 //****************************************************************************//
00015 // Includes                                                                   //
00016 //****************************************************************************//
00017 
00018 #include "cal3d/global.h"
00019 
00020 //****************************************************************************//
00021 // Forward declarations                                                       //
00022 //****************************************************************************//
00023 
00024 class CalCoreSubmesh;
00025 
00026 //****************************************************************************//
00027 // Class declaration                                                          //
00028 //****************************************************************************//
00029 
00030  /*****************************************************************************/
00034 class CAL3D_API CalCoreMesh
00035 {
00036 // member variables
00037 protected:
00038   std::vector<CalCoreSubmesh *> m_vectorCoreSubmesh;
00039   std::string m_name;
00040   std::string m_filename;
00041 
00042 // constructors/destructor
00043 public:
00044   CalCoreMesh();
00045   virtual ~CalCoreMesh();
00046 
00047 // member functions 
00048 public:
00049   int addCoreSubmesh(CalCoreSubmesh *pCoreSubmesh);
00050   bool create();
00051   void destroy();
00052   CalCoreSubmesh *getCoreSubmesh(int id);
00053   int getCoreSubmeshCount();
00054   std::vector<CalCoreSubmesh *>& getVectorCoreSubmesh();
00055   int addAsMorphTarget(CalCoreMesh *pCoreMesh);
00056   void scale(float factor);
00057   void setFilename(const std::string& filename);
00058   const std::string& getFilename(void);
00059   void setName(const std::string& name);
00060   const std::string& getName(void);
00061 };
00062 
00063 #endif
00064 
00065 //****************************************************************************//

Generated at Thu Dec 2 19:59:18 2004 by The Cal3D Team with doxygen 1.3.9.1 © 1997-2001 Dimitri van Heesch