Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

ExCEntite.h

Go to the documentation of this file.
00001 /*
00002  * ExNihilo 3D Engine
00003  * 
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  *
00018  * Please read AUTHORS file !!!
00019  * 
00020  * $Id: ExCEntite.h,v 1.6 2002/08/14 15:27:37 data Exp $
00021  *
00022  */
00023 
00024 #ifndef __EXCENTITE_H__
00025 #define __EXCENTITE_H__
00026 //--------------------------------
00027 // File to include
00028 //--------------------------------
00029 #include "ExDefine.h"
00030 #include "ExMath.h"
00031 #include "ExCObject3D.h"
00032 #include "ExCGizmoRectangle.h"
00033 #include "ExManagerTexture.h"
00034 //--------------------------------
00035 class ExCEntite : public ExCObject3D
00036 {
00037 protected:
00038 //--------------------------------
00039 // Variable
00040 //--------------------------------
00041                 ExManagerTexture        *ManagerTexture;
00042         std::vector<ExCVertex> m_VecVertex;
00043         std::vector<ExCVertex>::iterator m_ItVecVertex;
00044         std::vector<ExCMesh> m_VecMesh;
00045         std::vector<ExCMesh>::iterator m_ItVecMesh;
00046         
00047         long                    m_NumberVertex;
00048         long                    m_NumberMesh;
00049         int                             m_RenderMode;
00050         GLuint                  m_GlListId;
00051 
00052         
00053         //--------------------------------
00054         // Methode
00055         //--------------------------------
00056         
00057 public:
00058         ExCGizmoRectangle       m_BoxPvs;
00059 //--------------------------------
00060 // Constructor // Destructor
00061 //--------------------------------
00062         ExCEntite(void);
00063         ~ExCEntite(void);
00064 //--------------------------------
00065 // Methode
00066 //--------------------------------
00067         inline void SetManagerTexture(ExManagerTexture * Texture){ManagerTexture=Texture;}
00068         inline void SetNumberVertex(long NumberVertex){m_NumberVertex=NumberVertex;}
00069         inline void SetNumberMesh(long NumberMesh){m_NumberMesh=NumberMesh;}
00070 
00071         inline long GetNumberVertex(void){return m_NumberVertex;}
00072         inline long GetNumberMesh(void){return m_NumberMesh;}
00073         inline int GetRenderMode(void){return m_RenderMode;}
00074         inline GLuint GetGlListId(void){return m_GlListId;}
00075     
00076         virtual void Draw(void);
00077         void DrawWithoutList(void);
00078         virtual bool LoadAsc(char *FileName);
00079         virtual void MakeList(void);
00080     virtual void SetRenderMode(int RenderMode);
00081 
00082         void AddVertex(ExCVertex Vertex);
00083         void AddMesh(ExCMesh Mesh);
00084         ExCVertex GetVertex(int pos); 
00085 
00086         void BuildPvsBox(void);
00087 };
00088 #endif //__EXCENTITE_H__

Generated on Tue Dec 10 18:20:03 2002 for ExNihilo by doxygen1.3-rc1