XForms: XForms and GL Color Index Mode

Vince Magnotta (vince@nissl.psychiatry.uiowa.edu)
Tue, 25 Nov 1997 08:44:55 -0600

To subscribers of the xforms list from "Vince Magnotta" <vince@nissl.psychiatry.uiowa.edu> :

Here is a better description of the problem I am having with
the glcanvas in color index mode.

I want to create a 256 color colormap for the canvas.
I assume from the documentation that you have to use X to
allocate the colors themselves. First I create a new colormap with

newColorMap = fl_create_colormap(xvinfo, 0);

Then I set the canvas colormap

fl_set_canvas_colormap(fd_movie->movieCanvas, newColorMap);

I then try to allocate the color cells using X with

XAllocColorCells(fl_get_display(), newColorMap, True, NULL, 0,
colorCells, 256);

It is this X routine that always fails. I would then like to set the colors
using a function like

XStoreColor(fl_get_display(), newColorMap, &color);

Thanks - Vince

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