XForms: glcanvas colormap

Steven Ness (sness@byron.biochem.ubc.ca)
Sat, 9 Aug 1997 13:32:15 -0700 (PDT)

To subscribers of the xforms list from Steven Ness <sness@byron.biochem.ubc.ca> :

Hi,

I'm trying to get a glcanvas to share the colormap of the form that it
resides on. Is there any way to do this?

When on an SGI box, the color depth is 24 bitplanes, so the glcanvas is
able to display all the colors both the glcanvas and the form fine.
However, when I move to my linux box, I am able to create buttons with
different colors that are not able to be displayed on the glcanvas. Some
colors are displayed properly, some are displayed as different colors and
some aren't displayed at all (black).

I'm drawing to the glcanvas in RGBA mode with

glColor3ub(r,g,b);
glVertex3dv(vector);

I don't want to have to switch to colormap mode on the glcanvas (if at
all possible), and I only need to draw vectors that are exactly the same
color as entries in the xforms colormap.

Thanks,

Steven Ness

---------------------------------------------------------
| email : sness@byron.biochem.ubc.ca |
| WWW : http://byron.biochem.ubc.ca/sness |
---------------------------------------------------------


_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/