Hello,

Until now, whenever I wished to set a pixel's colour before putting it on screen, I 
always did it like this:

ggi_visual_t vis;
ggi_color map;
ggi_pixel pix;

map.r=0x????;
map.g=0x????;
map.b=0x????;
ggipix=ggiMapColor(vis, &map);

My question is the following: must I always assign values to the r,g and b member of a 
ggi_color structure and then use ggiMapColor()
to set the pixel's colour or can I set it directly?

Is the ggiMapColor() approach meant to be used whenever I wish to set a pixel's colour 
(even if I do not intend to use that
colour again) or only when I already have the desired colour predefined in a ggi_color 
variable?

Thank you,

Manuel

Reply via email to