Thread: ShellView as a Game Engine

  1. #1
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195

    ShellView as a Game Engine

    Greetings.

    I have an application that uses OpenGL to make browsing in an explorer window more fun. Its essentially built upon a game engine architecture where in my Main Loop, I call my rendering function as well as dispatch messages. It works great as a stand alone application because I write my own Main Loop.

    But in order to get it to work as a shell view, I must inherit from the IShellView class. Everything works great, but I do not control my own loop. This Causes a problem because I do not know where to put my Render function call. I tried creating a timer and on its call, doing a render, but it is too slow.

    Is there a way that I can "hook" into the main loop of explorer (or whatever instantiates IShellViews) so that i can get smooth rendering?? Or is there a better way of getting smooth rendering that does not involve timers? maybe capturing the WM_PAINT event?
    Founder and avid member of the Internationsl Typo Associateion

  2. #2
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195
    Handling WM_PAINT events gives me smooth rendering at the same speeds as I had before BUT since these messages come VERY often (70+ per sec) all my other messages don't arrive in a prompt manner. Keyboard and mouse input is sluggish.

    Any suggestions?
    Founder and avid member of the Internationsl Typo Associateion

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-26-2006, 12:14 AM
  2. KJ game engine
    By Lionmane in forum Game Programming
    Replies: 4
    Last Post: 11-18-2005, 06:16 AM
  3. Game structure, any thoughts?
    By Vorok in forum Game Programming
    Replies: 2
    Last Post: 06-07-2003, 01:47 PM
  4. Game Engine Design
    By Russell in forum Game Programming
    Replies: 2
    Last Post: 10-01-2002, 02:26 PM
  5. game engine
    By onurak in forum Game Programming
    Replies: 1
    Last Post: 07-27-2002, 06:29 AM