1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <yage.cpp> using namespace yage; int main() { Window window; window.create("Simple Game", 800, 640); while(!window.shouldClose()) { window.clearBuffer(); SpriteBatch sp; sp.begin(); window.pollEvents(); window.swapBuffer(); } }