Re: pfPipeWindows and OpenGL

New Message Reply Date view Thread view Subject view Author view

inca++at++public.bta.net.cn
Mon, 20 Jan 1997 22:24:12 +0800


Hi,

sorry i make a mistake in last mail, please discard it.

-- 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);

        in multiprocess case, use: pfPWinConfigFunc(pw,OpenPipeWindow);
        and pfConfigPWin(pw); you can do pfOpenPWin() in function
        OpenPipeWindow.
>
> 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 OpenPipeWindow(),
        try PFMP_APPCULLDRAW, PFMP_APP_CULLDRAW.

> wincxt=pfGetPWinGLCxt(pw);
>
> glXMakeCurrent(dpy,win,wincxt); /* if win is zero, fault */

key problem is pfGetPWinWSWindow doesn't work in APP process when multiprocess
case. man page say it works, but it doesn't. it works in DRAW process.
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


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:54:22 PDT

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