00001
00016 #ifndef CUI_POLYEDGEBORDER_H
00017 #define CUI_POLYEDGEBORDER_H
00018
00019 #include "UI_Lib.h"
00020 #include "UI_types.h"
00021 #include "IUI_Border.h"
00022 #include "IUI_Renderer.h"
00023
00025
00026 class GLGUI_ENTRY CUI_PolyEdgeBorder : public IUI_Border
00027 {
00028 public:
00030
00033 CUI_PolyEdgeBorder( v2_f *vlist = NULL, int numvert = 0 );
00034
00036 virtual ~CUI_PolyEdgeBorder();
00037
00039
00051 virtual bool GetBorder( double dtime, v2_fp &vlist, int &numvert, unsigned short &primitivetype );
00052
00054
00057 virtual bool GetOutline( double dtime, v2_fp &vlist, int &numvert );
00058
00060
00065 virtual bool SetBorder( v2_f *vlist, int numvert );
00066
00068 virtual bool AddPoint( v2_f point );
00069
00071
00074 virtual bool TestHit( float x, float y );
00075
00076 protected:
00078 v2_f *m_vlist;
00080 int m_numvert;
00081
00082 };
00083
00084 #endif