Haruo NOMA (noma++at++mic.atr.co.jp)
Fri, 26 Sep 1997 17:06:57 +0900 (JST)
Thank you for your rapid suggestion.
We tried to retouch the sample code and run....
However, all windows are displayed on first display.
Output were
/usr/share/Performer/src/pguide/libpf/C++/multipipe shuttle1.obj
PF Notice: pfdLoadFile_obj: shuttle1.obj
PF Print: :0.0
PF Print: :1.0
PF Warning/Usage: pfPipe::setScreen() pfPipe 1 screen
request of 1 is greater than number of available hardware screens (0 -
0). Clamping to screen 0
PF Notice: Using 60Hz video rate.
PF Notice: Initializing stage 0x4 of pipe 0
PF Notice: Pipe 0 size: 1280x1024
PF Notice: Initializing stage 0x4 of pipe 1
PF Notice: Pipe 1 size: 1280x1024
This output shows that
1) the function setWSConnectionName() can assign pipes to each window
manager correctly.
2) However, the function setScreen() can not understand hardware screen.
3) So, the pipe 0 & 1 are assigned on first display (screen?).
On my ONYX, we added one extra RE2 so we have two screens and two keyboards.
In my sense, TKO looks to work well on our environment. Does our ONYX has
some hardware trouble around RE2 and TKO?
Haruo Noma
At 2:28 PM -0500 97.9.25, Allen Bierbaum wrote:
> The following code works in the C++ version.
>
> for (loop=0; loop < max; loop++)
> {
> char str[PF_MAXSTRING];
> char pipeStr[PF_MAXSTRING];
>
> pipe[loop] = pfGetPipe(loop);
>
> // START HERE
>
> sprintf(pipeStr, ":%d.0", loop); // TKO
> //sprintf(pipeStr, ":0.%d", loop); // SKO
>
> pfNotify(PFNFY_ALWAYS, PFNFY_PRINT, pipeStr);
> pipe[loop]->setWSConnectionName(pipeStr);
> pipe[loop]->setScreen(loop);
>
> // END HERE
>
> pfPipeWindow *pw = new pfPipeWindow(pipe[loop]);
> sprintf(str, "IRIS Performer - Pipe %d", loop);
> pw->setName(str);
> if (NumScreens > 1)
> {
> pw->setOriginSize(0, 0, 300, 300);
> } else
> pw->setOriginSize((loop&0x1)*315, ((loop&0x2)>>1)*340, 300, 300);
>
> pw->setConfigFunc(OpenPipeWin);
> pw->config();
> }
>
>
> Hope this help.
>
----------------
Haruo Noma
ATR Media Integration and Communications Research Lab.
Tel: +81-774-95-1401 Fax: +81-774-95-1408
e-mail: noma++at++mic.atr.co.jp
=======================================================================
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:56:00 PDT