Skip to content

Instantly share code, notes, and snippets.

@astrcomp
Created August 8, 2016 11:27
Show Gist options
  • Save astrcomp/77a473b6c4a528ee3a76b26d0ab0c729 to your computer and use it in GitHub Desktop.
Save astrcomp/77a473b6c4a528ee3a76b26d0ab0c729 to your computer and use it in GitHub Desktop.
while (msg.message != WM_QUIT)
{
// If there are Window messages then process them.
if (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
// Otherwise, do animation/game stuff.
else
{
// DirectX Draw HERE
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment