diff options
| author | Roberto Esteves <contact@robertoesteves.dev> | 2026-01-05 14:11:50 +0000 |
|---|---|---|
| committer | Roberto Esteves <contact@robertoesteves.dev> | 2026-01-05 14:11:50 +0000 |
| commit | 52c6a7635056ee78d282ba2a55eb26f2663bb577 (patch) | |
| tree | 9d37d851e63e96e53ef3836321f03d4f2839edef /test.c | |
| parent | da12440cabe270584ff650703e90db540d2ec4c9 (diff) | |
- add meson build system
- refactor executable to be a test
- remove stdlib from base library
Diffstat (limited to 'test.c')
| -rw-r--r-- | test.c | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -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; -} |