repo.or.cz
/
umd.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit. Linux backend is fully functional.
[umd.git]
/
tests
/
warp.c
blob
d4fabcd51975775b53e38d413f02e33497f826a4
1
#include
"umd.h"
2
#include <stdio.h>
3
#include <unistd.h>
4
5
int
main
(
int
argc
,
char
**
argv
)
6
{
7
if
(
UMD_Init
() <
0
) {
8
fprintf
(
stderr
,
"%s
\n
"
,
UMD_GetError
());
9
return
1
;
10
}
11
12
if
(
UMD_Warp
(
100
,
100
) <
0
) {
13
fprintf
(
stderr
,
"%s
\n
"
,
UMD_GetError
());
14
return
3
;
15
}
16
17
if
(
UMD_Quit
() <
0
) {
18
fprintf
(
stderr
,
"%s
\n
"
,
UMD_GetError
());
19
return
2
;
20
}
21
22
return
0
;
23
}