Mark Aubin (aubin++at++mustang.engr.sgi.com)
Mon, 26 Apr 1999 15:19:32 -0700 (PDT)
Yes, this is possible.
Before sproc'ing off your Performer app, you should give it the
Window id of your GL window that RapidApp has created for you.
In the ginit() callback for the GL window, get the Window id
like this:
Window xwin = XtWindow(w)
Then in your Performer code (this should be in a
sproc'd function so the motif loop can continue):
pfInit();
pfMultiprocess (PFMP_APP_CULL_DRAW);
pfConfig();
pfPipe *p0 = pfGetPipe (0);
pfChannel *c0 = new pfChannel (p0);
pfPipeWindow *pw = new pfPipeWindow (p0);
pw->setWinType (PFWIN_TYPE_X);
pw->setWSDrawable (NULL, xwin);
pw->setWSWindow (NULL, xwin);
pw->config ();
If you need a more complete example, send me email.
--Mark Aubin
On Apr 21, 3:08pm, Goncalo Carvalho wrote:
> Subject: Performer and RapidApp
> Hi,
>
> I'm in need to write a editor for the specification of virtual voyages.
> I was wondering if anyone was able to successfully initialize Performer
> with a rapidapp built application. I use the GL widget container and
> initialize Performer but nothing gets drawn.
> I've checked motif.C code but no success so far.
>
> Thank you for your attention
>
> Goncalo
>
> --
> -----------------
> Goncalo Carvalho
> CCG/ZGDV
> www.ccg.uc.pt
> goncalo++at++ccg.uc.pt
> -----------------
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Goncalo Carvalho
This archive was generated by hypermail 2.0b2 on Mon Apr 26 1999 - 15:20:10 PDT