00001 #ifndef __FTPoint__
00002 #define __FTPoint__
00003
00004 #include <ft2build.h>
00005 #include FT_FREETYPE_H
00006 #include FT_GLYPH_H
00007
00008 #include "FTGL.h"
00009
00013 class FTGL_EXPORT FTPoint
00014 {
00015 public:
00019 FTPoint()
00020 : x(0), y(0), z(0)
00021 {}
00022
00030 FTPoint( const FTGL_DOUBLE X, const FTGL_DOUBLE Y, const FTGL_DOUBLE Z)
00031 : x(X), y(Y), z(Z)
00032 {}
00033
00039 FTPoint( const FT_Vector& ft_vector)
00040 : x(ft_vector.x), y(ft_vector.y), z(0)
00041 {}
00042
00049 FTPoint& operator += ( const FTPoint& point)
00050 {
00051 x += point.x;
00052 y += point.y;
00053 z += point.z;
00054
00055 return *this;
00056 }
00057
00065 friend bool operator == ( const FTPoint &a, const FTPoint &b);
00066
00074 friend bool operator != ( const FTPoint &a, const FTPoint &b);
00075
00079 FTGL_DOUBLE x, y, z;
00080
00081 private:
00082 };
00083
00084 #endif // __FTPoint__
00085