Created
August 8, 2016 11:27
-
-
Save astrcomp/77a473b6c4a528ee3a76b26d0ab0c729 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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