There nothing special
code:--------------------------------------------------------------------------------
void Border(int x,int y,int w, int h, ColorEntry* clr)
{
oglSubtractive = true;
gEngfuncs.pfnFillRGBA( x-2, y-2, w+4, 1 , 255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x-2, y-2, 1, h+4 , 255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x-5, y+h+5, w+10, 1 ,255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x+w+4, y-4, 1, h+10 , 255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x-4, y-4, w+8, 2 , clr->r,clr->g,clr->b,clr->a );
gEngfuncs.pfnFillRGBA( x-4, y-4, 2, h+8 , clr->r,clr->g,clr->b,clr->a );
gEngfuncs.pfnFillRGBA( x-4, y+h+3, w+8, 2 , clr->r,clr->g,clr->b,clr->a );
gEngfuncs.pfnFillRGBA( x+w+2, y-4, 2, h+9 , clr->r,clr->g,clr->b,clr->a );
oglSubtractive = false;
gEngfuncs.pfnFillRGBA( x-5, y-5, w+10, 1 , 255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x-5, y-5, 1, h+10 , 255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x-2, y+h+2, w+4, 1 , 255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x+w+1, y-1, 1, h+3 , 255, 255, 255, 255 );
}
void Menuline(int x,int y,int w, int h, ColorEntry* clr)
{
oglSubtractive = true;
gEngfuncs.pfnFillRGBA( x-2, y-2, w+4, 1 , 255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x-4, y-4, w+8, 2 , clr->r,clr->g,clr->b,clr->a );
gEngfuncs.pfnFillRGBA( x-2, y-5, w+4, 1 , 255, 255, 255, 255 );
oglSubtractive = false;
}
void Nickline(int x,int y,int w, int h, ColorEntry* clr)
{
oglSubtractive = true;
gEngfuncs.pfnFillRGBA( x+w+4, y-1, 1, h+5 , 255, 255, 255, 255 );
gEngfuncs.pfnFillRGBA( x+w+2, y-4, 2, h+9 , clr->r,clr->g,clr->b,clr->a);
gEngfuncs.pfnFillRGBA( x+w+1, y-1, 1, h+5 , 255, 255, 255, 255);
oglSubtractive = false;
}
void DrawGrid(int x,int y,int w,int h,int size,ColorEntry* clr1,ColorEntry* clr2)
{
int s = size;
int s1 = s+1;
int s2 = s-1;
for(int v=x;v<=x+w-s2;v+=s1)
{
tintArea( v, y, s, h,clr1);
tintArea(v+s, y, s, h,clr2);
}
for(v=y;v<=y+h-s2;v+=s1)
{
tintArea(x, v, w, s,clr1);
tintArea(x,v+s, w, s,clr2);
}
}