00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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;
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