34 vs_config->
getColor( std::string(
"default" ), std::string( name ), color,
true );
35 return GFXColor( color[0], color[1], color[2], color[3] );
42 return GFXColor( ( r*Saturation*3+(r+b+g)*(1-Saturation) )/3,
43 ( g*Saturation*3+(r+b+g)*(1-Saturation) )/3,
44 ( b*Saturation*3+(r+b+g)*(1-Saturation) )/3, a );
60 return gui_light_gray;
76 glDisable( GL_TEXTURE_2D );
78 glColor4f( color.
r, color.
g, color.
b, color.
a );
81 glEnable( GL_TEXTURE_2D );
87 glDisable( GL_TEXTURE_2D );
88 glLineWidth( lineWidth );
90 glBegin( GL_LINE_LOOP );
91 glColor4f( color.
r, color.
g, color.
b, color.
a );
92 glVertex2f( rect.
left(), rect.
top() );
93 glVertex2f( rect.
right(), rect.
top() );
98 glEnable( GL_TEXTURE_2D );
104 glDisable( GL_TEXTURE_2D );
105 glLineWidth( lineWidth );
107 glBegin( GL_LINE_STRIP );
108 glColor4f( color.
r, color.
g, color.
b, color.
a );
114 glEnable( GL_TEXTURE_2D );
120 glDisable( GL_TEXTURE_2D );
121 glLineWidth( lineWidth );
123 glBegin( GL_LINE_STRIP );
124 glColor4f( color.
r, color.
g, color.
b, color.
a );
130 glEnable( GL_TEXTURE_2D );
136 glDisable( GL_TEXTURE_2D );
138 glBegin( GL_POLYGON );
139 glColor4f( color.
r, color.
g, color.
b, color.
a );
140 for (std::vector< Point >::const_iterator
i = coords.begin();
i != coords.end();
i++)
141 glVertex2f(
i->x,
i->y );
144 glEnable( GL_TEXTURE_2D );