Re: Screen Blanking

New Message Reply Date view Thread view Subject view Author view

Simon Bennett (simonb++at++wormald.com.au)
Mon, 23 Feb 1998 08:56:03 +1010 (EST)


On Fri, 20 Feb 1998, TJANDRASA, HADI M. (JSC-ER7) wrote:

> Hi,
>
> Are there equivalent functions to "blanktime()",
> "blankscreen()", "curson()", and "cursoff()" in either
> Performer or OpenGL?

Performer has a bunch of nifty cursor routines. man pfuCursor

You can create an "invisible" cursor with pfuGetInvisibleCursor() and then
pfuSelCursor() to the index returned.

OpenGL has no real knowledge of the cursor - as that's window system
dependant - if you need it I have the X windows code to hide and show the
cursor (actually you never get rid of it - it's just "invisible")

Same for screen saver controls - the easiest approach is to use the IRIX
shell commands such as the command line version of blanktime.

If you want to use it in your programs however XActivateScreenSaver()
XResetScreenSaver() turn the screen saver on and off and XForceScreenSaver()
can turn it on or off according to a flag. XGetScreenSaver() returns the
current settings of the screen saver.

Alternately you can look into XSGIvcSetOutputBlanking().

If your screen saver is set to blank you can emulate blankscreen via these
calls - or just draw a big black polygon over the front of everything :)

Good luck.

+----------------------------------------------------------------------------+
  Simon Bennett simonb++at++wormald.com.au
  Wormald Technology Advanced Systems Engineering Ph: +61 2 9981 0669

                "Good judgement is the result of experience.
                 Experience is the result of poor judgement"

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:50 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.