Initial commit. Linux backend is fully functional.
[umd.git] / tests / warp.c
blobd4fabcd51975775b53e38d413f02e33497f826a4
1 #include "umd.h"
2 #include <stdio.h>
3 #include <unistd.h>
5 int main(int argc, char **argv)
7 if (UMD_Init() < 0) {
8 fprintf(stderr, "%s\n", UMD_GetError());
9 return 1;
12 if (UMD_Warp(100, 100) < 0) {
13 fprintf(stderr, "%s\n", UMD_GetError());
14 return 3;
17 if (UMD_Quit() < 0) {
18 fprintf(stderr, "%s\n", UMD_GetError());
19 return 2;
22 return 0;