• Advertisement
Sign in to follow this  

Application framework

This topic is 4013 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

In the book "programming RPGs with directx 2nd edition", the author has you create an application framework, which he gives you the code for. What exactly does an app framework do?

Share this post


Link to post
Share on other sites
Advertisement
It's like a building framework. It is an outline of the basic structure with none of the details. Typically this includes code with no creativity that everyone would've needed to write but wouldn't enjoy it. Typically these kind of things include setting up a window or rendering context (always takes much more code than you think it should), a basic event handling loop ("press esc to quit, fill in the rest yourself!"), and something like:



void app::Initialize ()
{ // Your initializing code here!
}

void app::main_loop ()
{
while (app.running)
{ // your code here!!!
}
}

void app::Finish ()
{ // put all your destructors here
}



Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement