[info-performer] pfuMapPWinColors

Date view Thread view Subject view Author view

From: Dr. Sabine Gillner (sabine.gillner++at++uni-tuebingen.de)
Date: 10/08/2004 18:26:44


Hi Performers !

I tried to use pfuMapPWinColors to change the colormap of my pfPipeWindow.
This is my code:

// Configure and open GL window
    pfPipe *p = pfGetPipe(0);
    pfPipeWindow *pw = new pfPipeWindow(p);
    pw->setWinType(PFPWIN_TYPE_X);
    pw->setName("OpenGL Performer");
    pw->setOriginSize(0,0,500,500);

// colormap
    pfVec3 colors[2];
    int ic;
    for (ic = 0;ic<2;ic++)
    {
        colors[ic][0] = (float)ic/255.0 ;
        colors[ic][1] = (float)ic/255.0;
        colors[ic][2] = (float)ic/255.0;
    }
    pfuMapPWinColors(pw,colors,1,2);
    pw->open();

Unfortunately it didn't work. I get the following error message:

> X Error of failed request: BadWindow (invalid Window parameter)
> Major opcode of failed request: 3 (X_GetWindowAttributes)
> Resource id in failed request: 0x0
> Serial number of failed request: 137
> Current serial number in output stream: 138

Any ideas ?

Sabine

-- 
 
 ---------------------------------------
|	Sabine Gillner	:-)		|
|	Universität Tübingen		|
|	LS Kognitive Neurowissenschaft	|
|	Auf der Morgenstelle 28		|
|	72076 Tübingen			|
|	Tel.: +49 (0)7071 2974604	|
 ---------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Oct 08 2004 - 09:28:24 PDT