I want to write a screen saver for Windows using the Windows API. How can I start to write it?
Basically a screensaver is just a normal application that accepts a few command line options, provided by windows, to determine if it should start fullscreen or in a preview window.
So, write a normal exe-application that takes the following command line arguments (from http://msdn.microsoft.com/en-us/library/ms686421(v=vs.85).aspx):
Next check out some DirectX / OpenGL / SDL tutorials and write some eye candy.
Obviously you should check for mouse movements and key presses and exit your application if the user wakes up.