summaryrefslogtreecommitdiff
path: root/example/simple.c
diff options
context:
space:
mode:
authorpryazha <pryadeiniv@mail.ru>2025-10-12 15:25:23 +0500
committerpryazha <pryadeiniv@mail.ru>2025-10-12 15:25:23 +0500
commit818f818f583881156eb279c71b1359bf2c4f3580 (patch)
tree874e8d2fdc5334bc70925aa87923791f7662ddb8 /example/simple.c
parent3cf987880e384140bf996c37f820ddeea38bc60e (diff)
change identation, maybe will change back, add own gl functions loading, and glx example
Diffstat (limited to 'example/simple.c')
-rw-r--r--example/simple.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/example/simple.c b/example/simple.c
new file mode 100644
index 0000000..b53b47b
--- /dev/null
+++ b/example/simple.c
@@ -0,0 +1,16 @@
+void
+init(struct prge_context *prge_ctx)
+{
+}
+
+void
+update(struct prge_context *prge_ctx, f32 dt)
+{
+}
+
+void
+render(struct prge_context prge_ctx)
+{
+ gl_clear_color(0.18f, 0.18f, 0.18f, 1.0f);
+ gl_clear(gl_color_buffer_bit);
+}