From: Dirk Reiners (reiners++at++igd.fhg.de)
Date: 06/19/2001 07:43:36
On Jun 18, 9:49pm, Angus Dorbie wrote:
> Subject: Re: Getting number of pipes in a system
> Including /usr/include/X11/Xlib.h you'll be able to use ScreenCount, it
> looks like it's just a macro to read nscreens from a private(?) part of
> the display structure.
>
>-- End of excerpt from Angus Dorbie
I think that will only help you when running single server, which not
everybody does. The easiest IMHO is to atoi(fgets(line, 100,
popen("/usr/gfx/gfxinfo | fgrep 'Graphics board' | wc -l", "r"))) (plus
frees and checks etc.) :)
As long is it's IRIX only and local that works nicely.
Dirk
-- -- -- Dirk Reiners OpenSG Forum dirk++at++opensg.org -- The OpenSG Open Source Scenegraph: http://www.opensg.org -- Next Beta: June, V1: SIGGRAPH *** See us in Booth 2167 *** -- Other Announcements: http://lists.sf.net/lists/listinfo/opensg-announce
This archive was generated by hypermail 2b29 : Tue Jun 19 2001 - 07:43:08 PDT