Archived

This topic is now archived and is closed to further replies.

My First Tutorial

This topic is 5007 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
You go the link right !

You are implying that all windows return to a common message loop, so all your game windows need to recieve messages, pass them back to the WinMain, which needs to pass them back to the window for response.

Is this more efficient than having any window handle specific messages it''sself ?

(Genuine question, I am not trying to ctiticise you, at least you have a Tutorial out )

Share this post


Link to post
Share on other sites
To tell the truth, this tutorial had SDL in mind when I was writing it. Everything would run in the same window. I think that this would be faster because there are no clumsy if statments, and it is called directly. This method also seems to be more friendly with multi-threading, if the situation arrises.

Share this post


Link to post
Share on other sites
I never thought about using a stack...
I can see the obvious advantage to using them for this purpose. I think I like my method for transfering control just a little bit better. Only because a global function for switching states gives you a little more freedom. I could be wrong though. My next tutorial will cover general engine orginization.

BTW like my site?

Share this post


Link to post
Share on other sites