inca++at++public.bta.net.cn
Mon, 20 Jan 1997 21:54:01 +0800
-- Ulf Yngwe 97-01-20 08:41 wrote:
> pfInit();
_try_ pfMultiprocess(PFMP_APPCULLDRAW);
^^^
> pfConfig();
>
> p = pfGetPipe(0);
> pw = pfNewPWin(p);
> pfPWinType(pw, PFPWIN_TYPE_X);
> pfPWinName(pw, "IRIS Performer");
> pfPWinOriginSize(pw, 0, 0, 500, 500);
> pfOpenPWin(pw);
>
> dpy=pfGetCurWSConnection();
> win=pfGetPWinWSWindow(pw);
_try_ fprintf(stderr,"win is 0x%x\n",win);
^^^
is it zero or some number? then move win=pfGetPWinWSWindow(pw);
and fprintf(stderr,"win is 0x%x\n",win); to pfOpenPWin(), try
PFMP_APPCULLDRAW, PFMP_APP_CULLDRAW.
> wincxt=pfGetPWinGLCxt(pw);
>
> glXMakeCurrent(dpy,win,wincxt); /* if win is zero, fault */
key problem is pfGetPWinWSWindow don't work in APP process when multiprocess
case. man page say it works, but it don't.
Hope this helps.
liubin
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:22 PDT