diff options
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; -} |