Page principale | Hiérarchie des classes | Liste alphabétique | Liste des classes | Liste des fichiers | Membres de classe

C:/Projects/ngn/include/vertex.h

00001 /***************************************************************************
00002  *            vertex.h
00003  *
00004  *  Sun Sep 12 22:07:59 2004
00005  *  Copyright  2004  thierry schartz
00006  *  thierry.schartz@bluebottle.com
00007  ****************************************************************************/
00008 
00009 /*
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00023  */
00024  
00025 #ifndef _VERTEX_H
00026 #define _VERTEX_H
00027 
00028 #ifdef WIN32
00029 #include <windows.h>
00030 #endif
00031 
00032 
00033 #include "color.h"
00034 #include "object.h"
00035 
00036 namespace ngn {
00037 
00038                 
00042                 class NGN_API Vertex : public Object3d
00043                 {
00044                         public:
00045                                 Vertex();
00046                                 Vertex( const Vertex& other );
00048                                 Vertex( const core::Vector3df& pos, const core::Colorf& color=core::Colorf( 1.0f, 1.0f, 1.0f ) );
00049                                 virtual ~Vertex();
00050                                 
00052                                 void setColor( const core::Colorf& color );
00054                                 void setSize( float size );
00056                                 const core::Colorf& getColor() const;
00058                                 float getSize() const;
00060                                 virtual void render( const Camera& cam );
00061                         
00062                         private:
00063                                 core::Colorf m_color;
00064                                 float m_size;
00065                         
00066                 };
00067         
00068                 
00069 
00070 }//ngn
00071 #endif /* _VERTEX_H */

Généré le Fri Nov 19 14:20:29 2004 pour NGN par  doxygen 1.3.9.1