Allan Schaffer (allan)
Mon, 8 Sep 1997 17:47:17 -0700
First question; do you have a dual-display ("TKO") setup or just two
graphics pipes? If TKO, check out the example below from the
archives. But if you have a "standard" configuration (one keyboard,
two graphics pipes) the pipes need to be addressed as :0.0 and :0.1.
[my apologies if the attributions below are incorrect]
From: "Dave Pape" <pape++at++evl.eecs.uic.edu>
Date: 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();
}
--
Allan Schaffer allan++at++sgi.com
Silicon Graphics http://reality.sgi.com/allan
=======================================================================
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:55:53 PDT