Re: Using 2 glxMDrawWidget at the same time.

New Message Reply Date view Thread view Subject view Author view

Swapnil Sha (swapnil++at++teil.soft.net)
Mon, 7 Jul 1997 10:20:27 -0530 (IST)


How about calling

   glXMakeCurrent(Display *dpy, GLXDrawable drawable, GLXContext ctx)

best luck :)
-swapnil
--------
    swapnil++at++teil.soft.net
    http://www.teil.soft.net/~swapnil

> According to Brian Furtaw:
> >From guest++at++holodeck.csd.sgi.com Sat Jul 5 00:03:38 1997
> Date: Fri, 4 Jul 1997 06:58:08 -0400
> From: brian++at++hotsauce.clubfed.sgi.com (Brian Furtaw)
> Message-Id: <9707040658.ZM13092++at++hotsauce.clubfed.sgi.com>
> In-Reply-To: "Anita Kishore" <kishore++at++triavest.com>
> "Re: Using 2 glxMDrawWidget at the same time." (Jul 3, 9:57am)
> References: <Pine.LNX.3.95.970702140501.3198A-100000++at++narnia.aero.swri.edu>
> <9707030957.ZM8875++at++tracey.triavest.com>
> Reply-To: brian++at++sgi.com
> X-Mailer: Z-Mail-SGI (3.2S.3 08feb96 MediaMail)
> To: "Anita Kishore" <kishore++at++triavest.com>,
> Frank Dea <frank++at++narnia.aero.swri.edu>, info-performer++at++sgi.com
> Subject: Re: Using 2 glxMDrawWidget at the same time.
> Mime-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
>
> On Jul 3, 9:57am, Anita Kishore wrote:
> > Subject: Re: Using 2 glxMDrawWidget at the same time.
> > On Jul 2, 2:19pm, Frank Dea wrote:
> > > Subject: Using 2 glxMDrawWidget at the same time.
> > >
> > > We have written a Motif application that contains an OpenGL window
> > > (running Performer). Everything works great until we try to bring up
> > > another window in the same application that also contains an OpenGL
> > > window. Then neither window responds correctly. The second window
> > > performs no drawing and the first window simply flashes a left over frame
> > > buffer image (i.e., junk).
> > >
> > > Note, both OpenGL windows perform normally if brought up individually.
> > >
> > >
> > > Has any one experienced this with Motif windows containing OpenGL windows?
> > >
> > > Let me know if more details are needed.
> >
> >
> > As far as I know, if you are using Performer to render into both your windows,
> > then you either need to use two channels or two pipes for
> > rendering (the Performer book has more details on it). If performer is being
> > used in only one window, the other is just a Motif window to draw something,
> > then you need to create them in separate processes.
> >
> > -anita
> > kishore++at++triavest.com
> >
> > --
> > Anita Kishore
> > =======================================================================
> > List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
> >-- End of excerpt from Anita Kishore
>
>
> You may want to try creating a different ApplicationShell as the
> parent of the second OpenGL drawing area, something like this...
>
> Widget altWindow = XtAppCreateShell(
> argv[0], // application name
> "Inventor", // class name
> applicationShellWidgetClass, // widget class
> theDisplay,
> NULL, 0);
>
> ...I borrowed this from the Inventor sample code, its just a hunch.
>
> Brian
>
> --
> o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o
>
> Brian Furtaw (brian++at++sgi.com)
> VisSim Technical Consultant
> 12200-G Plum Orchard Drive Office:(301)572-3293 Fax: (301)872-3293
> Silver Spring, Maryland 20904 OpenGL/ImageVision/OpenInventor/Performer
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            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:55:35 PDT

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