Archived

This topic is now archived and is closed to further replies.

Scraniel

Is it possible to make an OpenGL animation into a screensaver? and how?

Recommended Posts

Screensavers are NOT dll''s. They are renamed EXEs. Just make a program as usual, then change its extension to SCR. It will function as a screen saver.

But there are a few things a screen saver does special. You know they close upon keyboard or mouse input (you have to program that in, by the way). They also need to respond to certain window messages. When your window receives WM_SYSCOMMAND, check for a wParam of SC_SCREENSAVE. If you find it, have your wndproc return FALSE (or false). This prevents Windows from trying to launch your screensaver again.

That''s the basic stuff, but there''s a whole set of optional things that any professional screensaver should do. A good reference is at http://www.wischik.com/scr/howtoscr.html .

Share this post


Link to post
Share on other sites