Original Post
For now, my game-engine/application-library uses callbacks. For each window you create, you make four callbacks to handle what happens when the window is opened, updated, rendered, and closed. The entire program is started with the "SystemBegin" callback, which allows you to initialize your application, and create windows. For example:
I don't have much experience with other application systems, so I would like to hear some insight. What would be the better way to design an application?
bool SystemBegin()
{
if (!mainWindow.Create("Main Window", 300, 500, true))
{
return false;
}
mainWindow.GiveControllers(MainOpen, MainClose, MainUpdate, MainRender);
mainWindow.Show(false);
return true;
}I don't have much experience with other application systems, so I would like to hear some insight. What would be the better way to design an application?