Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: OpenGL MFC Screen Saver

  1. #1
    Intern Newbie
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    34

    OpenGL MFC Screen Saver

    Guys, I need some help.

    Do you know of any good tutorial, in English, that explains how to write an OpenGL screen saver using MFC?

    Or, better yet - have you seen any wizards that do this?

    thanks,
    Andrew

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,797

    Re: OpenGL MFC Screen Saver

    Using MFC for a screensaver isn't real pretty. The easiest way to create a screensaver is to use the Win32 Screensaver library. That library basically embeds the WinMain function for you. MFC generally has to have a global instance of a CWinApp derived class. This also embeds a WinMain function for you. There is a way to do it, and you can get code for it at http://www.codeguru.com. Do a search there on screensavers and you should be able to find it. It doesn't do the OpenGL code for you, but implementing OpenGL into it would be the same as implementing OpenGL into any MFC app. (Do a search on that too if you're not sure how to do it.) I do have a Screensaver Appwizard, but at the moment it doesn't do MFC, and it doesn't do OpenGL, so it's probably not what you really want.
    Deiussum
    Software Engineer and OpenGL enthusiast

  3. #3
    Intern Newbie
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    34

    Re: OpenGL MFC Screen Saver

    Thanks. I'll go check it out. I have an MFC screen saver wizard too. Integrating OpenGL into has proved really frustrating, though, which is why I was posting.

    cheers,
    Andrew

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •