Re: TKO & pf 2.0

New Message Reply Date view Thread view Subject view Author view

Dave Pape (pape++at++evl.eecs.uic.edu)
Wed, 17 Apr 1996 05:54:55 -0500


> On Apr 15, 11:08am, Vali Lalioti wrote:
> > I have a problem with using two pipes and two screens on a machine that
> > is set to the "triple keyboard option" (TKO). The warning I get is that
> > there is no screen 1, which probably is true since with this option
> > the displays are 0.0, 1.0,2.0 instead of 0.0, 0.1, 0.2.
> > Is there any way to solve this problem?
> > I include a small example and the error messages.
> >
> > sincerely yours,
> > Dr. V. Lalioti.

  I recently ran into on this problem as well. The program below
shows the relevant calls which finally worked on our TKO.
Note that this only works with the OpenGL libraries. If I compile
with IrisGL, both windows are opened on the same display.

   -Dave

-----
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <Performer/pf.h>

void config0(pfPipeWindow *pwin)
{
 pfOpenWSConnection(":0.0",TRUE);
 pfOpenPWin(pwin);
}

void config1(pfPipeWindow *pwin)
{
 pfOpenWSConnection(":1.0",TRUE);
 pfOpenPWin(pwin);
}

int main(int argc,char **argv)
{
 pfPipe *pipe[2];
 pfPipeWindow *pwin[2];

 pfInit();
 pfMultipipe(2);
 pfConfig();

 pipe[0] = pfGetPipe(0);
 pfPipeWSConnectionName(pipe[0],":0.0");
 pfPipeScreen(pipe[0],0);
 pwin[0] = pfNewPWin(pipe[0]);
 pfPWinOriginSize(pwin[0],0,0,512,512);
 pfPWinConfigFunc(pwin[0],config0);
 pfConfigPWin(pwin[0]);

 pipe[1] = pfGetPipe(1);
 pfPipeWSConnectionName(pipe[1],":1.0");
 pfPipeScreen(pipe[1],0);
 pwin[1] = pfNewPWin(pipe[1]);
 pfPWinOriginSize(pwin[1],0,0,512,512);
 pfPWinConfigFunc(pwin[1],config1);
 pfConfigPWin(pwin[1]);

 while (1)
        {
        pfSync();
        pfFrame();
        }
 pfExit();
}

-- 
---------------------------------------------------------------------------
Dave Pape                          Electronic Visualization Laboratory, UIC
pape++at++evl.eecs.uic.edu              http://evlweb.eecs.uic.edu/pape/

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:52:43 PDT

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