00001 /***************************************************************************** 00002 * Copyright (C) 2007 Herve Lombaert <herve.lombaert@polymtl.ca> 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (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 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 00016 * Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 ****************************************************************************/ 00019 00020 00027 #ifndef POINT3D_H 00028 #define POINT3D_H 00029 00030 #include <error.h> 00031 00032 namespace Display 00033 { 00063 class Point3D 00064 { 00065 public: 00066 Point3D(); 00067 ~Point3D(); 00068 00074 void update(const float* points, 00075 unsigned int nbPoints); 00076 00078 void display(); 00079 00083 void display(const float* data); 00084 00085 private: 00086 GLuint m_id; 00087 }; 00088 00089 } // namespace 00090 00091 #endif