#include "logger.h"
#include "cdpmi.h"
#include "audio.h"
+#include "sball.h"
+#include "vmath.h"
static int handle_sball_event(sball_event *ev);
static void recalc_sball_matrix(float *xform);
return 1;
}
- if((vmidx = match_video_mode(640, 480, 16)) == -1) {
+ if((vmidx = match_video_mode(FB_WIDTH, FB_HEIGHT, FB_BPP)) == -1) {
return 1;
}
if(!(vmem = set_video_mode(vmidx, 1))) {
}
}
- if(init(argc, argv) == -1) {
+ if(demo_init(argc, argv) == -1) {
status = -1;
goto break_evloop;
}
for(;;) {
int key;
while((key = kb_getkey()) != -1) {
- demo_key(key, 1);
+ demo_keyboard(key, 1);
if(quit) goto break_evloop;
}
}
time_msec = get_msec();
- draw();
+ demo_draw();
}
break_evloop:
- cleanup();
+ demo_cleanup();
set_text_mode();
cleanup_video();
kb_shutdown();