00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00029 #ifndef _GG_DrawUtil_h_
00030 #define _GG_DrawUtil_h_
00031
00032 #include <GG/Base.h>
00033
00034
00035 namespace GG {
00036
00038 GG_API void glColor(Clr clr);
00039
00041 GG_API void glVertex(const Pt& pt);
00042
00044 GG_API void glVertex(X x, Y y);
00045
00047 GG_API void glVertex(X_d x, Y_d y);
00048
00050 GG_API void glVertex(X x, Y_d y);
00051
00053 GG_API void glVertex(X_d x, Y y);
00054
00058 GG_API Clr LightColor(Clr clr);
00059
00063 GG_API Clr DarkColor(Clr clr);
00064
00070 GG_API Clr DisabledColor(Clr clr);
00071
00078 GG_API void BeginScissorClipping(Pt ul, Pt lr);
00079
00083 GG_API void EndScissorClipping();
00084
00095 GG_API void BeginStencilClipping(Pt inner_ul, Pt inner_lr,
00096 Pt outer_ul, Pt outer_lr);
00097
00101 GG_API void EndStencilClipping();
00102
00110 GG_API void FlatRectangle(Pt ul, Pt lr, Clr color, Clr border_color, unsigned int border_thick = 2);
00111
00120 GG_API void BeveledRectangle(Pt ul, Pt lr, Clr color, Clr border_color, bool up, unsigned int bevel_thick = 2,
00121 bool bevel_left = true, bool bevel_top = true, bool bevel_right = true, bool bevel_bottom = true);
00122
00124 GG_API void FlatCheck(Pt ul, Pt lr, Clr color);
00125
00127 GG_API void BeveledCheck(Pt ul, Pt lr, Clr color);
00128
00130 GG_API void FlatX(Pt ul, Pt lr, Clr color);
00131
00133 GG_API void BeveledX(Pt ul, Pt lr, Clr color);
00134
00137 GG_API void Bubble(Pt ul, Pt lr, Clr color, bool up = true);
00138
00140 GG_API void FlatCircle(Pt ul, Pt lr, Clr color, Clr border_color, unsigned thick = 2);
00141
00145 GG_API void BeveledCircle(Pt ul, Pt lr, Clr color, Clr border_color, bool up = true, unsigned int bevel_thick = 2);
00146
00152 GG_API void FlatRoundedRectangle(Pt ul, Pt lr, Clr color, Clr border_color, unsigned int corner_radius = 5, unsigned int border_thick = 2);
00153
00156 GG_API void BeveledRoundedRectangle(Pt ul, Pt lr, Clr color, Clr border_color, bool up, unsigned int corner_radius = 5, unsigned int bevel_thick = 2);
00157
00160 GG_API void BubbleRectangle(Pt ul, Pt lr, Clr color, bool up, unsigned int corner_radius = 5);
00161
00162 }
00163
00164 #endif // _GG_DrawUtil_h_