Vega 1.3 & Overlay colours.

New Message Reply Date view Thread view Subject view Author view

Mark Baranowski (baranowski++at++marklynn.demon.co.uk)
Thu, 27 Jun 1996 16:13:42 GMT


Hi,

First let me apologise as this is a little off topic.I wonder if
anyone can give me some help with a problem I have with a Vega 1.3
application running under IRIX 5.3 on a variety of workstations.

I am having problems setting colour map entries for the overlay
bitplanes associated with a GLX window. I know very little about X and
am not finding the example code that useful because I do not know what
Vega is doing when it creates the window.

The basic approach I am taking is illustrated below:
( Note, Vega defines the following type:

typedef struct {
   Display *xdisp; /* display */
   Window xwin; /* parent X window for the glx Window*/
   Window glwin; /* the glx X window */
   Window overwin; /* overlay X window */
} vgGLXWin;

)

vgGLXWin xw;
XWindowAttributes wa;
XColor c;

vgGetGLXWin(win, &xw);
GLXwinset(xw.xdisp, xw.overwin);
XGetWindowAttributes(xw.xdisp, xw.overwin, &wa);

c.pixel = location number used in color( );
c.red = r value
c.green = g value
c.blue = b value
c.flags = DoRed | DoGreen | DoBlue;
XStoreColor(xw.xdisp, wa.colormap, &c);

I have tried using XAllocColorCells on xw.xdisp and wa.colormap but
with no success (Do I need to do anything with this call?).

I would be very grateful for any help anyone can provide.

TIA.

Mark.

-- 
Mark Baranowski at work (baranowski++at++marklynn.demon.co.uk)
Pera, VR Division. Melton Mowbray, Leicestershire. UK.
Tel: +44 1664 501501, Fax: +44 1664 501553
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer.html
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:05 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.