Quote: "You can then modify each template"
I suppose you suggest me to modify the Core.cpp file from this:
while (!bExitLoop)
{
if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
if (msg.message == WM_QUIT) bExitLoop = true;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else
{
// call gApp each frame
try
{
if (!agk::IsCapturingImage()) gApp.Loop();
}
catch (...)
{
uString err = agk::GetLastError();
err.Prepend("Uncaught exception: \n\n");
MessageBox(NULL, err.GetStr(), "Error", 0);
bExitLoop = true;
}
}
}
to this:
while (!bExitLoop)
{
if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
if (msg.message == WM_QUIT) bExitLoop = true;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else
{
// call gApp each frame
try
{
if (!agk::IsCapturingImage())
if (!gApp.Loop())
break;
}
catch (...)
{
uString err = agk::GetLastError();
err.Prepend("Uncaught exception: \n\n");
MessageBox(NULL, err.GetStr(), "Error", 0);
bExitLoop = true;
}
}
}
Oh I missed this point. Surely it helps! Thanks a lot