Re: Multiprocess init

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 10/02/2000 19:08:44


Angus Dorbie wrote:
>
> Hans Peter Palboel wrote:
> >

> > ........................ A search of the archives suggested
> > the pipewindow init callback, but that is not working (and wouldn't that
> > do the init for each pipewindow?).

I missed this.

As someone else pointed out to me offline, this should work, this is the
callback which actually opens the window for you. There are examples in
the pguide section which show how to use this callback and it is invoked
in the performer draw process.
For example from complex.c:

pfPWinConfigFunc(Shared->pw, OpenPipeWin);

static void
OpenPipeWin(pfPipeWindow *pw)
{
    pfPipe *p;
    Window w;
    Display *dsp;
   
    pfOpenPWin(pw);

    /* create a light source in the "south-west" (QIII) */
    Sun = pfNewLight(NULL);
    pfLightPos(Sun, -0.3f, -0.3f, 1.0f, 0.0f);
}

Cheers,Angus.

-- 
For Performer+OpenGL tutorials http://www.dorbie.com/

"In the middle of difficulty lies opportunity." --Albert Einstein


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 02 2000 - 19:08:50 PDT

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