summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author0undefined <oscar@nelin.dk>2026-02-08 00:48:26 +0000
committer0undefined <oscar@nelin.dk>2026-02-08 00:51:41 +0000
commitd623fb2cc40cb3648441f1818e172637b108f6a1 (patch)
tree6067277ea1d8b590900505894b21d76ba70702e6 /include
parentb8bbf51f27237d9036bf77250043538a65f6dbf4 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/crate.h6
1 files changed, 6 insertions, 0 deletions
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 <daw/types.h>
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,