From: Bram Stolk (bram++at++sara.nl)
Date: 07/05/2005 03:48:00
Rajesh R wrote:
> Dear Performers,
>
> How to check whether my application is running in a double buffered.
If you are on IRIX, you can use xwininfo to check.
xwininfo will list visual id.
see:
bram++at++vger:~$ xwininfo -root
xwininfo: Window id: 0x352 (the root window) (has no name)
Absolute upper-left X: 0
Absolute upper-left Y: 0
Relative upper-left X: 0
Relative upper-left Y: 0
Width: 1400
Height: 1050
Depth: 24
Visual id: 0x23
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x20 (installed)
Bit Gravity State: ForgetGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +0+0 -0+0 -0-0 +0-0
-geometry 1400x1050+0+0
Now, you can cross-reference against output from 'glxinfo -t'.
On linux, xwininfo does not give me visual id :-(
> If not double buffered, how to set it double buffered.
>
For forcing this, you can use:
pfWindow::setFBConfigAttrs()
There is a C example in:
/usr/share/Performer/src/pguide/libpr/C/winfbconfig.c
Bram
> Rajesh.R
> Virtual Reality LAB,
> Institute for Robotics and Intelligent Systems(IRIS)
> c/o Centre for Artificial Intelligence and Robotics,
> Ministry of Defence,
> Bangalore -1
> INDIA
>
>
>
> "Empty Vessels (brains) make more of noise"
>
This archive was generated by hypermail 2b29 : Tue Jul 05 2005 - 03:48:04 PDT