Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 08 Mar 2012
Offline Last Active Apr 03 2012 12:13 AM

Posts I've Made

In Topic: PeekMessage(PM_NOREMOVE) + Fullscreen = fail?

02 April 2012 - 01:38 AM

Sure, NOREMOVEchecks if there's a message on the queue and returns true if there is. Then, you use GetMessage to pull it off the queue and process it. You're right that looping on it until all messages have been processed is the better way to do it (even better: render in a separate thread, so you don't slow your render loop if processing tons of input/messages).

That said, it doesn't give any insight as to why the behavior is different. In both the first and second cases, the message queue is processed successfully; messages are caught, translated, and passed. Starting fullscreen or windowed works in both, but switching contexts via alt-enter doesn't work in the latter.

In Topic: Setting up a project for cross-platform development

08 March 2012 - 03:28 PM

I'd suggest getting familiar with CMAKE. It's a bit convoluted to learn, but once you get it up and running it can automatically generate VS project files on Windows and Linux. I haven't used it with Mac, but I would imagine it would be able to do the same.