From: Allan Schaffer (allan++at++sgi.com)
Date: 12/01/2005 11:52:34
John Kelso wrote:
> Thanks for your speedy response.
>
> Will this class only be implemented on the Prism, or on all platforms?
>
> That said, do you have some #ifdefs you'd recommend?
>
> I've stumbled across __ia64__, __linux__ and WIN32. Is there something
> like __irix__ I can use, or do I have to do some sort of test like:
For IRIX we typically use #ifdef __mips__
(don't know offhand where this comes from)
FYI, about how many pipes .. there's also an X11 macro to get the screen
count:
#include <X11/Xlib.h>
screens = ScreenCount(display);
Sometimes screen count is what you "really" want, other times the
physical pipe count is what you "really" want. It depends on whether
your system is configured to run the performer app..
(a) on one X server, with multiple screens
ie on screens :0.0, :0.1, :0.2, :0.3 ...
or
(b) across multiple X servers (aka multiple X displays),
with 1 or more screens each
ie on screens :0.0, :0.1, :1.0, :1.1 ...
The ScreenCount macro will provide the number of X screens for _this_ X
display. (Most helpful for case (a))
The code Amir posted will provide you with a count of the number of
pipes physically present in the system. (Most helpful for case (b))
Allan
-- Allan Schaffer allan++at++sgi.com Engr. Dept. Manager, Visual Systems Group 1-650-933-2160 Silicon Graphics http://www.sgi.com
This archive was generated by hypermail 2b29 : Thu Dec 01 2005 - 11:52:39 PST