Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Caanon

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.

PARTNERS