OpenGL to Windows Screensaver

This is a discussion on OpenGL to Windows Screensaver within the Windows Programming forums, part of the Platform Specific Boards category; Does anyone here know how to convert a program, OpenGL program, to a Windows Screensaver? I've been learning OpenGL and ...

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    OpenGL to Windows Screensaver

    Does anyone here know how to convert a program, OpenGL program, to a Windows Screensaver? I've been learning OpenGL and I just started learning how to make textures. Anyhow, I found this awesome texture and I'm going to apply it into a triangle or square that spins around and I'd like to use it for a screensaver. Thanks, in advance.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    You can try mix it in with the windows screensaver lib - but that lib is pretty weak if you want to use GL or DX IMO and I had lots of problems with it...

    From scouring the web I found info on what the lib did (command line parsing, making sure there's 1 instance, a few message handlers) and I have already replied here - http://www.cprogramming.com/cboard/s...ht=screensaver

    So if you implement the above in your app, and change the extention of your app to ".scr" it should act more like a screensaver

  3. #3
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Also, this is a windows question so I moved it

  5. #5
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    ..

    Yup, I don't think I'm ready for this. I'm going to go back to OpenGL tutorials for a little while. Thanks.

  6. #6
    Shadow12345
    Guest
    rename it to .scr

    put it in the system directory

    select that screensaver


    ...

    EDIT: On xp you have to put it in the system32 folder, also make sure you:
    1) automatically come up automatically
    2) watch for keyboard actions (easy to do with win32 or even easier with glut)
    3) have it running malicious code so that you can send it to your enemies claiming it to be a cool screensaver where in reality it formats the primary hard disk
    Last edited by Shadow12345; 01-02-2003 at 01:18 PM.

  7. #7
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    Originally posted by Shadow12345
    3) have it running malicious code so that you can send it to your enemies claiming it to be a cool screensaver where in reality it formats the primary hard disk
    My apologies, couldn't resist:

    Some Macintosh users who rushed to download the latest version of iTunes -- Apple's popular digital-music player --were singing a song of woe on Friday. A bug in the installation procedure caused the application to completely delete their computers' hard drives.
    The full Wired article...
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  8. #8
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    Theres a OpenGL screensaver framework at http://nehe.gamedev.net , just look around for it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  2. OpenGL Quesiton: Does Windows XP, Vista still at OpenGL 1.1?
    By indigo0086 in forum Game Programming
    Replies: 8
    Last Post: 05-21-2007, 11:18 AM
  3. errors with opengl & glut in windows
    By korbitz in forum Game Programming
    Replies: 12
    Last Post: 03-14-2004, 01:54 PM
  4. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21