[SDL] Mouse Input + Delay problem

Ankush Thakur ankush.gamedev at gmail.com
Mon Apr 7 10:33:42 PDT 2008


I'm attaching my main.cpp source file with this mail.

The trouble is that I have to handle a game variable called gameRunning.

So, the structure now is...

main()
   while gameRunning
      while frame time not elasped...
         draw
         check for clicks

    ........... etc etc.

The problem is that the game in eating increasing amounts of RAM per second.
I guess the reason is the two while loops or maybe I'm wrong.

My programming is not so good, so please feel free to scold me for any
concept/design errors in my program.

Any questions related to code, please ask.
Please help me out with this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080407/a3dc1be5/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: application/octet-stream
Size: 9970 bytes
Desc: not available
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080407/a3dc1be5/attachment-0001.obj 


More information about the SDL mailing list