Dave Pape (pape++at++evl.eecs.uic.edu)
Wed, 17 Apr 1996 05:54:55 -0500
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/
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:43 PDT