OpenGL visual selection in Performer

New Message Reply Date view Thread view Subject view Author view

Marek Czernuszenko (marekc++at++chevron.asd.sgi.com)
Tue, 9 Jul 1996 13:26:44 -0700


Hi,

I try to get a conformation from Performer that requested visual was set.
I use pfGetPWinFBConfigId to get visual id, but it always returns 0, no
matter if this visual was set or not (first printf statement).
On the other hand, when I specify visual explicitly (second printf
statement) I get correct number.

Is this a bug ? Is there an other way to make sure that visual was set ?

Thanks in advance,

-Marek

{
int attrs[] = { PFFB_DOUBLEBUFFER, PFFB_RGBA,
                PFFB_RED_SIZE, 1, PFFB_GREEN_SIZE, 1, PFFB_BLUE_SIZE, 1,
                PFFB_DEPTH_SIZE, 1, PFFB_STEREO,
                PFFB_SAMPLE_BUFFER, 1,
                PFFB_SAMPLES, 4,
                None };

 pfPWinFBConfigAttrs(pwin,attrs);
 printf("Visual Id: %d\n",pfGetPWinFBConfigId(pwin));

 pfPWinFBConfigId(pwin, 129);
 printf("Visual Id: %d\n",pfGetPWinFBConfigId(pwin));
}

-- 
-----------------------------------------------------------
Marek Czernuszenko        http://www.eecs.uic.edu/~mczernus
Silicon Graphics Inc.     (415) 933-7234           

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:09 PDT

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