|
|
|
 |
Posted 2008-08-11, 01:19 AM
in reply to Goodlookinguy's post starting "I say dedication and the fact that I..."
|
 |
 |
 |
It is part of a Game Engine, as you can probably see.
Alright, Section 3.2:
Code:
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
MSG msg;
static int iTickTrigger = 0;
int iTickCount;
if (GameInitialize(hInstance))
{
// Initialize the Game Engine
if (!GameEngine::GetEngine() ->Initialize(iCmdShow))
return FALSE;
// Enter the message loop
while (TRUE)
{
if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
// Process the message
if (msg.message == WM_QUIT)
break;
TranslateMesage(&msg);
DispatchMessage(&msg);
}
else
{
// Make sure the game isn't sleeping
if (!GameEngine::GetEngine() ->GetSleep())
{
// Check the Tick Counter to see if a game cycle has elapsed
iTickCount = GetTickCount();
if (iTickCount > iTickTrigger)
{
iTickTrigger = iTickCount +
GameEngine::GetEngine() ->GetFrameDelay();
GameCycle();
}
}
}
}
return 0;
}
GameEnd();
return TRUE;
} |

R.I.P
Pontiac
Jan. 1926 - Dec. 2010 est.
Check the Gallery and Scrapbook often!
[deviantArt Account!]
Spy Hard
Agent WD-40:
Quote:
Well, you carry a UB-21 Schnauzer with an OPS Silencer, that's KGB, You prefer an 18-K over an AK, Your surveillance technique is NSA, Your ID is CIA, you recieved your PHD at NYU, traded in your GTO for a BMW, you listen to CD's by REM and STP, and you'd like to see JFK in his BVDs getting down with OPP and you probably put the toilet paper back on the roll with the paper on the inside...
|
|
 |
 |
 |
|
|
|
|
|
|
|