Sign in to follow this  
zerogmr

Application framework

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this