summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
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;
-}