project-aster/scratch/scratch_run.cpp

34 lines
604 B
C++

// =============================================
// Scratch: scratch_run.cpp
// Copyright (c) 2020-2024 Anish Bhobe
// =============================================
#include "global.h"
#include "graphics.h"
#include "window.h"
int
main(int argc, const char *argv[])
{
Memory memory;
memory.Init(Gigabyte(4), Megabyte(128u));
Window window;
Graphics graphics;
window.Init("Scratch", {640, 480});
graphics.Init(&window, "Scratch", VERSION);
while (window.Poll())
{
}
graphics.Destroy();
window.Destroy();
memory.Destroy();
return 0;
}