XForms: overlays in XForms and OpenGL

Todd Koumrian (todd@core-dump.stanford.edu)
Fri, 16 Apr 1999 13:02:39 -0700

# To subscribers of the xforms list from Todd Koumrian <todd@core-dump.stanford.edu> :

Greetings,

I'm trying to use overlays in a XForms and Open-GL program.

I have been successful in setting up and using GL canvases are normal
drawing to the color buffer, and setting up overlay GL canvases directly
on top of the color buffer canvases. The overlay GL canvases were
created through XForms by specifying the appropriate attributes which
would select an overlay visual on my machine. It appears to be working,
although all drawing in the overlay canvas appears either as transparent
(when using color index 0 on my machine - that's normal) or black, which
is the problem I'm having. It seems that no matter what I do when
trying to set up the color map using the XForms calls, I never seem to
be able to set the color map cells to the colors I want. No matter
what, all indexes > 0 seem to be black. By the way, on the SGI O2 I'm
using, the overlay color map has 8 bits of indexing.

I thought about setting the color map using X calls directly, but if I
create the overlay using XForms routines, I reach a roadblock where I
need to have the widget ID, and I can't get that from the XForms API or
headers.

Could someone who has had success with overlays in XForms please give me
some advice, or point me to some sample code that will show me the way?

Thanks.

Todd Koumrian

--
Todd Koumrian                   todd@core-dump.Stanford.EDU
Dept. of Radiation Oncology     Voice: (650) 725-6713
Stanford University             Fax:   (650) 498-4015
Grant Building S-036

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