From d623fb2cc40cb3648441f1818e172637b108f6a1 Mon Sep 17 00:00:00 2001 From: 0undefined Date: Sun, 8 Feb 2026 01:48:26 +0100 Subject: Display game on whole window Making the framebuffer display on its separate quad was pretty easy. Now it just remains to make a more versatile method for simple 2D rendering. A super-simple implementation could be nice for text and simple UI elements, along with a middle-way allowing for custom shaders. --- include/crate.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/crate.h') diff --git a/include/crate.h b/include/crate.h index e776d17..a6cfc31 100644 --- a/include/crate.h +++ b/include/crate.h @@ -1,6 +1,12 @@ #include static const f32 px = (float)(1. / 96.); +static f32 quad_fullscreen[8] = { + -1.f, -1.f, + 1.f, -1.f, + 1.f, 1.f, + -1.f, 1.f, +}; static f32 quad[8] = { -1.f, -1.f, 1.f, -1.f, -- cgit v1.3