Nicolas Gauvin (nicolas++at++cae.ca)
Fri, 27 Sep 1996 15:46:19 -0400
> pipe = pfGetPipe(0);
> channel = pfNewChan(pipe);
> pfChanDrawFunc(channel, drawFrame);
> pfuInitInput(pipe, PFUINPUT_X);
>
> pfInitPipe(pipe, openPipeline);
>
>
> static void openPipeline(pfPipe * pipe)
>
> {
> pfuGLXWindow * win;
> Display * XDpy;
> void * arena;
>
> XDpy = (Display *)pfuOpenXDisplay(0);
> win = pfuGLXWinopen((pfuXDisplay*)XDpy, pipe, "Rotatable view", 100, 500,
100, 500);
> pfInitGLXGfx(pipe, (void*)XDpy, win->xWin, win->glWin, win->overWin,
PFGLX_AUTO_RESIZE);
>
> }
Here is a suggestion:
Instead of using pfu functions to open your own GLX window, create a
pfPipeWindow of type PFPWIN_TYPE_X. Then call pfuInitInput(pwin, PFUINPUT_X) on
this pipe window. Then you should be able to call pfuGetEvents without
problems. This works very well for me and has never crashed using Performer 2.0
and 2.0.2.
--
Nicolas Gauvin CAE Electronics Ltd., 8585 Cote De Liesse
Software Developer Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications tel: +1 514 341 2000 extension 2275
nicolas++at++cae.ca fax: +1 514 340 5496
=======================================================================
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:53:39 PDT