Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

cybglcylinderc.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 1999  Carsten Winkelholz
00003 
00004 Malte Weiß, 24.07.2002: Complete new OpenGL support (vertex arrays + textures supported).
00005 
00006 Address:  FGAN Forschungsgesellschaft für Angewandte Naturwissenschaften e. V.
00007       Neuenahrer Str. 20
00008       D - 53343 Wachtberg
00009       
00010 Email:    winkelholz@fgan.de
00011 
00012 This program is free software; you can redistribute it and/or
00013 modify it under the terms of the GNU General Public License
00014 as published by the Free Software Foundation; either version 2
00015 of the License, or (at your option) any later version.
00016 
00017 This program is distributed in the hope that it will be useful,
00018 but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 GNU General Public License for more details.
00021 
00022 You should have received a copy of the GNU General Public License
00023 along with this program; if not, write to the Free Software
00024 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00025 */
00026 
00027 #ifndef CYBGLCYLINDERC_H
00028 #define CYBGLCYLINDERC_H
00029 
00030 #include "oaw/ctk/cybcylinderc.h"
00031 #include "../oawconfig.h"
00032 
00033 OAW_BEGIN_NAMESPACE
00034 
00035 // Structure for a cylinder vertex
00036 
00037 typedef struct _CylinderVertex
00038 {
00039   Vector3C n;       // Normal
00040   Vector3C p;       // Position
00041                     // Texture coordinates for
00042   Vector2C tside;   // - side
00043   Vector2C tcap;    // - cap (top/bottom)
00044 } CylinderVertex;
00045 
00046 // Class definition
00047 
00048 class OAW_DLLMAPPING CybGLCylinderC : public CybCylinderC
00049 {
00050 public:
00051   CybGLCylinderC(CybWorldC*);
00052   CybGLCylinderC(const CybGLCylinderC&);
00053   CybGLCylinderC& operator = (const CybGLCylinderC&);  
00054   virtual ~CybGLCylinderC();
00055 
00056 
00057   virtual void FinishInit();
00058   virtual void ToChannelDefault(CybChannelC *pChannel, long lFlag);
00059   virtual void ToChannelTexture(CybChannelC *pChannel, long lFlag);
00060 
00061 protected:
00062   void PrepareRender();
00063 
00064 protected:
00065   static long           m_lPhic;
00066 
00067   static CylinderVertex *m_pVertices;
00068   static GLuint         *m_pTopIndices;
00069   static GLuint         *m_pBottomIndices;
00070   static long           m_lNumVertices;
00071   static long           m_lNumIndices;
00072   static long           m_lInstanceCount;
00073 };
00074 
00075 OAW_END_NAMESPACE
00076 
00077 
00078 #endif
00079 
00080 
00081 
00082 

Generated on Tue Jul 29 14:24:10 2003 for Open ActiveWrl by doxygen1.3-rc2