This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/main.cpp

20 lines
410 B
C++
Raw Normal View History

2022-01-30 21:24:16 +08:00
#include "engine.hpp"
#include "event.hpp"
int main(int argc, char** argv) {
engine.Init("sandbox", Size{720, 480});
Color color{0.1, 0.1, 0.1, 1};
Renderer::SetClearColor(color);
while (!engine.ShouldExit()) {
Renderer::Clear();
engine.PollEvent();
engine.Update();
engine.Render();
engine.SwapContext();
}
engine.Shutdown();
return 0;
}