Simon Bennett (simonb++at++wormald.com.au)
Fri, 29 Mar 1996 21:09:15 +1000 (EST)
Well.. not quite sure why you'd want to do this (reset the exact
blanktime) the default value is around 10-14 minutes...
The "time" n is actually in graphics timer events, the speed of which you
can get with getgdesc(GD_TIMERHZ) not seconds.
I don't know of any way of getting the "blanktime" from GL but...
blanktime and the X screensaver extension interact which each other
(it's the implementation of the "preferred hardware blanking") so you
can get the value through X - use XGetScreenSaver() (3X11) from within your
application (it's talking to the server, so it doesn't matter that
you're running a GL program - you will need a handle to your display
however) or you can do it from the shell with "xset q"
+----------------------------------------------------------------------------+
Simon Bennett simonb++at++wormald.com.au
Wormald Technology Advanced Systems Engineering Ph: +61 2 9981 0611 (x512)
Common Sense doesn't seem to be
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:36 PDT