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

WP_2D.h

Go to the documentation of this file.
00001 /* Copyright (C) 2001 W.P. van Paassen - peter@paassen.tmfweb.nl
00002 
00003    This program is free software; you can redistribute it and/or modify it under
00004    the terms of the GNU General Public License as published by the Free
00005    Software Foundation; either version 2 of the License, or (at your
00006    option) any later version.
00007 
00008    This program is distributed in the hope that it will be useful, but WITHOUT
00009    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00010    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00011    for more details.
00012 
00013    You should have received a copy of the GNU General Public License
00014    along with this program; see the file COPYING.  If not, write to the Free
00015    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
00016 
00017 //WP_2D.h
00018 //2D OpenGl helper classes
00019 
00020 #ifndef WP_2D_H
00021 #define WP_2D_H
00022 
00023 #include "WP_Def.h"
00024 
00025 namespace WPCG
00026 {
00027 class WP_Point2D; //forward declaration
00028 
00030 
00048 class WP_Draw_2D
00049 {
00050 public:
00051   
00052   WP_Draw_2D();
00053   ~WP_Draw_2D();
00054   
00060   void vDrawPoint(GLint x, GLint y) const;
00061 
00066   void vDrawPoint(const WP_Point2D* point) const;
00067 
00075   void vDrawLine(GLint startx, GLint starty, GLint endx, GLint endy) const;
00076 
00082   void vDrawLine(const WP_Point2D* startpoint, const WP_Point2D* endpoint) const;
00083 
00090   void vDrawPolyLine(WP_Point2D* points, GLint number, bool closed) const;
00091   
00099   void vDrawString(void* font, const string &text, GLint xpos, GLint ypos) const;
00100 };
00101 }
00102 #endif
00103 

Generated on Tue Jan 28 20:26:32 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002