summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
authorRoberto Esteves <contact@robertoesteves.dev>2026-01-05 14:11:50 +0000
committerRoberto Esteves <contact@robertoesteves.dev>2026-01-05 14:11:50 +0000
commit52c6a7635056ee78d282ba2a55eb26f2663bb577 (patch)
tree9d37d851e63e96e53ef3836321f03d4f2839edef /test.c
parentda12440cabe270584ff650703e90db540d2ec4c9 (diff)
refactor some stuff:HEADmaster
- add meson build system - refactor executable to be a test - remove stdlib from base library
Diffstat (limited to 'test.c')
-rw-r--r--test.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/test.c b/test.c
deleted file mode 100644
index b371629..0000000
--- a/test.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "robsonGL.h"
-
-int main(int argc, char *argv[]) {
- rglContext ctx;
- ctx.buf.width = 800;
- ctx.buf.height = 600;
-
- if (rglBufferAlloc(&ctx.buf))
- return 1;
-
- rglSetColor(&ctx, 255, 255, 255, 255);
-
- rglBeginPath(&ctx, PathFill);
- rglPathMoveTo(&ctx, 0, 0);
- rglPathMoveTo(&ctx, 799, 599);
- rglPathMoveTo(&ctx, 799, 0);
- rglPathMoveTo(&ctx, 0, 599);
- rglEndPath(&ctx);
-
- rglDraw(&ctx);
-
- if (rglWritePPM(&ctx, "output.ppm"))
- return 1;
-
- return 0;
-}