Re: XForms: color index

Steve Lamont (spl@szechuan.ucsd.edu)
Wed, 3 Jun 98 06:30:43 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> > In OpenGL function glIndexi(GLint c), how to give a value
> > for parameter "c"? How can I find out the value for, for example, YELLOW,
> > GREEN?
>
>
> For XForms you'll find in file forms.h the enum type:
>
> typedef enum
> {
> FL_BLACK, FL_RED, FL_GREEN, FL_YELLOW,
> [...]
> FL_FREE_COL15, FL_FREE_COL16
> }
> FL_PD_COL;
>
>
> I don't know if it's the same for OpenGl, but I think it must be
> similar.

It isn't the same. XForms has its own standard internal color map,
the indices of which bear only accidental relationship to the real
X Colormap.

spl
_________________________________________________
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/