ld33_umonster

diff src/game.h @ 0:4a6683050e29

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 22 Aug 2015 07:15:00 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/game.h	Sat Aug 22 07:15:00 2015 +0300
     1.3 @@ -0,0 +1,30 @@
     1.4 +#ifndef GAME_H_
     1.5 +#define GAME_H_
     1.6 +
     1.7 +#include "vmath/vmath.h"
     1.8 +
     1.9 +extern int win_width, win_height;
    1.10 +extern unsigned long cur_time;
    1.11 +
    1.12 +extern bool dbg_wireframe;
    1.13 +extern int dbg_int;
    1.14 +
    1.15 +enum { MOD_ALT, MOD_CTL, MOD_SHIFT };
    1.16 +
    1.17 +bool game_init();
    1.18 +void game_cleanup();
    1.19 +void game_update(unsigned long time_msec);
    1.20 +void game_display();
    1.21 +void game_reshape(int x, int y);
    1.22 +void game_keyboard(int key, bool press);
    1.23 +void game_modifier_key(int key, bool press);
    1.24 +void game_mbutton(int bn, bool press, int x, int y);
    1.25 +void game_mmotion(int x, int y);
    1.26 +
    1.27 +void set_fullscreen(bool fs);
    1.28 +void redisplay();
    1.29 +void quit();
    1.30 +
    1.31 +void draw_teapot();
    1.32 +
    1.33 +#endif	/* GAME_H_ */