PDA

View Full Version : Preventing screensaver in glut app



nadam
05-23-2002, 09:17 PM
How can I prevent the [Windows] screensaver from starting when running a glut-based application? I think I've read somewhere how to do it by taking care of specific windows messages in non-glut applications. Is there a similar (or different) method for glut-based applications?

CViper
05-24-2002, 01:53 AM
Not tried this yet, but according to the MSDN (msdn.microsoft.com/library), you should be able to use
SetThreadExecutionState( ES_DISPLAY_REQUIRED );