Skip to content

Instantly share code, notes, and snippets.

View ChlorUpload's full-sized avatar
🌴
On vacation

Daegeon Song ChlorUpload

🌴
On vacation
View GitHub Profile
@ChlorUpload
ChlorUpload / main.cpp
Last active October 8, 2024 18:17
A Game loop using PeekMessage function
// Set project as empty windows project.
// A game loop using PeekMessage function.
// Uses double buffering.
#include <Windows.h>
#include <time.h>
#include <math.h>
#pragma comment(lib, "winmm.lib")