projects
/
vkray
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
create swapchain, images and image views for the swapchain
[vkray]
/
src
/
app.c
1
#include <stdlib.h>
2
#include "app.h"
3
#include "vk.h"
4
5
int app_init(void)
6
{
7
if(vk_init() == -1) {
8
return -1;
9
}
10
return 0;
11
}
12
13
void app_cleanup(void)
14
{
15
vk_cleanup();
16
}
17
18
19
void app_display(void)
20
{
21
}
22
23
void app_reshape(int x, int y)
24
{
25
if(vk_reshape(x, y) == -1) {
26
abort();
27
}
28
}
29
30
void app_keyboard(int key, int press)
31
{
32
if(!press) return;
33
34
switch(key) {
35
case 27:
36
app_quit();
37
break;
38
}
39
}
40
41
void app_mouse(int bn, int press, int x, int y)
42
{
43
}
44
45
void app_motion(int x, int y)
46
{
47
}