import Crafter.Graphics; import std; using namespace Crafter; constexpr std::uint32_t width = 1280; constexpr std::uint32_t height = 720; int main() { Device::Initialize(); Window window(width, height, "Hello Drawing!"); for(std::uint32_t x = 0; x < width; x++) { for(std::uint32_t y = 0; y < height; y++) { window.renderer.buffer[x*height+y].r = 255; window.renderer.buffer[x*height+y].g = 0; window.renderer.buffer[x*height+y].b = 0; window.renderer.buffer[x*height+y].a = 255; } } window.Render(); window.StartSync(); }