00001 /* 00002 Copyright (C) 1999 Carsten Winkelholz 00003 00004 Malte Weiß, 15.07.2002: OpenGL support partially implemented. 00005 16.07.2002: OpenGL support fully implemented. 00006 00007 Address: FGAN Forschungsgesellschaft für Angewandte Naturwissenschaften e. V. 00008 Neuenahrer Str. 20 00009 D - 53343 Wachtberg 00010 00011 Email: winkelholz@fgan.de 00012 00013 This program is free software; you can redistribute it and/or 00014 modify it under the terms of the GNU General Public License 00015 as published by the Free Software Foundation; either version 2 00016 of the License, or (at your option) any later version. 00017 00018 This program is distributed in the hope that it will be useful, 00019 but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 GNU General Public License for more details. 00022 00023 You should have received a copy of the GNU General Public License 00024 along with this program; if not, write to the Free Software 00025 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00026 */ 00027 00028 00029 #ifndef CYBGLLINESET_HC 00030 #define CYBGLLINESET_HC 00031 00032 #include "oaw/ctk/cybindexedlinesetc.h" 00033 #include "../oawconfig.h" 00034 00035 OAW_BEGIN_NAMESPACE 00036 00037 // Structure for three-float vector 00038 typedef struct _Vector3f 00039 { 00040 float x, y, z; 00041 } Vector3f; 00042 00043 // Class definition 00044 00045 class OAW_DLLMAPPING CybGLIndexedLineSetC : public CybIndexedLineSetC 00046 { 00047 public: 00048 CybGLIndexedLineSetC(CybWorldC*); 00049 ~CybGLIndexedLineSetC(); 00050 00051 virtual void FinishInit(); 00052 virtual void ToChannelDefault(CybChannelC*,long flag); 00053 00054 protected: 00055 void PrepareRender(); 00056 00057 protected: 00058 Vector3f *m_pRenderColors; // Colors for rendering 00059 Vector3f *m_pRenderCoords; // Coordinates for rendering 00060 long m_lNumPoints; // Number of points in line set 00061 }; 00062 00063 OAW_END_NAMESPACE 00064 00065 #endif 00066 00067 00068 00069
1.3-rc2