Does pf for Linux support Multi-pipes ?

New Message Reply Date view Thread view Subject view Author view

From: Erik Masson (emasson++at++netvigator.com)
Date: 11/02/2000 23:57:34


Guys,

I was wondering if pf supports multi-pipe under Linux ? I've got a
nice SGI 1200L with 4 Xeon CPU and 4 x 3Dfx V2 cards...

I can make used of all cards under Mesa3.x by calling
fxMesaSelectCurrentBoard(n), where n is the channel or the card number
that you wish to work on.

Any tough on that ?

Cheers,

Erik

Here is an example of a regular C application.

int main(int argc, char **argv)
{
  glutInitWindowPosition(0,0);
  glutInitWindowSize(width_channel_0, height_channel_0);
  glutInit(&argc, argv);

  glutInitDisplayMode(GLUT_RGBA|GLUT_DOUBLE);

#ifdef FX
  if(!fxMesaSelectCurrentBoard(0)) {
    fprintf(stderr,"The first Voodoo Graphics board is missing !?!?\n");

    return -1;
  }
#endif
  if(!(channel[0]=glutCreateWindow("Channel 0"))) {
    fprintf(stderr,"Error, couldn't open window\n");
    return -1;
  }

  reshapechannel0(WIDTHC0,HEIGHTC0);
  init();
  inittextures();
  glutDisplayFunc(drawchannel0);
  glutReshapeFunc(reshapechannel0);
  glutKeyboardFunc(key);
  glutSpecialFunc(special);

#ifdef FX
  if(!fxMesaSelectCurrentBoard(1)) {
    fprintf(stderr,"The second Voodoo Graphics board is missing !\n");
    exit(-1);
  }
#endif
  glutInitWindowPosition(WIDTHC0,0);
  glutInitWindowSize(WIDTHC1,HEIGHTC1);
  if(!(channel[1]=glutCreateWindow("Channel 1"))) {
    fprintf(stderr,"Error, couldn't open window\n");
    exit(-1);
  }

  reshapechannel1(WIDTHC1,HEIGHTC1);
  init();
  inittextures();
  glutDisplayFunc(drawchannel1);
  glutReshapeFunc(reshapechannel1);
  glutKeyboardFunc(key);
  glutSpecialFunc(special);

  glutIdleFunc(drawall);

  glutMainLoop();
}




New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Nov 02 2000 - 23:57:24 PST

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