SDL app to screensaver

Hi
I wrote a (very) basic OpenGL program using SDL and SDL_image under osx.
I now want to port that program to Windows (which should be no problem

  • hopefully ;).
    The problem however is, that I don’t have Visual Studio in reach (I
    used VC to port my projects in the past) so I need to fall back to
    DevCpp PLUS that the final product has to be a screensaver.
    Has anyone tried something similar (screensaver with devcpp and sdl)?
    I just found some tutorial on the net with - as it seems - lot’s of win
    api calls - is that a problem with devcpp?
    I have to say that I did not use the winapi until now and I’m not
    looking forward in doing so, but I don’t know if there are libraries
    around … so - does anyone know one?

BR Arne

Arne,

I recently turned my SDL OpenGL app into a screensaver. I tried to use
ScreenSaverProc (and the other callback functions) half-sucesfully, but
I ended up using the command line parameters that Windows passes to your
app. From what I’ve seen you don’t need to even include scrnsave.h or
the callbacks (still do though). They are /S to start the screensaver,
/P for preview, and a few others. Make sure you check for upper and
lower case – Windows likes to pick either.

If you want to take a look at the app it’s called Gravit. The example
you’re after is in main.c from line 400 onwards. It’s at
http://gravit.slowchop.com

Gerald

Arne Claus wrote:> Hi

I wrote a (very) basic OpenGL program using SDL and SDL_image under osx.
I now want to port that program to Windows (which should be no problem

  • hopefully ;).
    The problem however is, that I don’t have Visual Studio in reach (I
    used VC to port my projects in the past) so I need to fall back to
    DevCpp PLUS that the final product has to be a screensaver.
    Has anyone tried something similar (screensaver with devcpp and sdl)?
    I just found some tutorial on the net with - as it seems - lot’s of
    win api calls - is that a problem with devcpp?
    I have to say that I did not use the winapi until now and I’m not
    looking forward in doing so, but I don’t know if there are libraries
    around … so - does anyone know one?

BR Arne


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl