Sharon Clay (src++at++rose.asd.sgi.com)
Thu, 15 May 1997 03:06:20 -0700
->> Can anyone venture a guess as to problems??
->
->Do you get stencil bits with the visual you request with the iR?
FYI, you can use pfQuerySys of PFQSYS_MAX_STENCIL_BITS or
PFQSYS_MAX_MS_SAMPLES to query the max number of stencil bits on
the system. By default we ask for 1 on all recent machines.
On Extreme we asked for 0 by default because stencil steals from
the zbuffer.
->Pixel depth and the exact parameters of all the visual attributes
->would be critical. Try requesting an explicit visual id you know
->you can get and is supported on the platform.
Woops, I think Angus meant description, NOT id. NEVER hard code
a visual id number in your code these ids are not guaranteed to
be preserved across system configurations, or even across IRIX releases
on a given system.
If you want/need to be more sophisticated, check out
libpfutil/xwin.c::pfuChooseFBConfig().
This is the source code for a visual chooser so you can see
how one requests all visuals on the system and looks through
them looking at different attributes to choose a visual.
Finally, remember that you can use shell commands to inspect the configuration
of a window:
% xwininfo -tree (click mouse in window)
look for your main drawing window X id
% xwininfo -id 0xXXXXXX <- X id from above
now look at visual id
% glxinfo [-v]
to get info on visual id
src.
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com (415) 933 - 1002 FAX: (415) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
=======================================================================
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:55:14 PDT