projects
/
vkray
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
4d845c527bb2ea7adf6c3889e15230f1e8b4426e
[vkray]
/
src
/
app.c
1
#include "app.h"
2
#include "vk.h"
3
4
int app_init(void)
5
{
6
if(vk_init() == -1) {
7
return -1;
8
}
9
return 0;
10
}
11
12
void app_cleanup(void)
13
{
14
vk_cleanup();
15
}
16
17
18
void app_display(void)
19
{
20
}
21
22
void app_reshape(int x, int y)
23
{
24
}
25
26
void app_keyboard(int key, int press)
27
{
28
if(!press) return;
29
30
switch(key) {
31
case 27:
32
app_quit();
33
break;
34
}
35
}
36
37
void app_mouse(int bn, int press, int x, int y)
38
{
39
}
40
41
void app_motion(int x, int y)
42
{
43
}