projects
/
vrfileman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implemented a laser pointer
[vrfileman]
/
src
/
app.h
diff --git
a/src/app.h
b/src/app.h
index
a95e117
..
83eaf5a
100644
(file)
--- a/
src/app.h
+++ b/
src/app.h
@@
-2,11
+2,14
@@
#define APP_H_
#include "gmath/gmath.h"
#define APP_H_
#include "gmath/gmath.h"
+#include "opt.h"
extern int win_width, win_height;
extern float win_aspect;
extern long time_msec;
extern int win_width, win_height;
extern float win_aspect;
extern long time_msec;
+extern double time_sec;
+extern float cam_height;
extern Mat4 view_matrix;
extern Mat4 view_matrix;
@@
-18,8
+21,16
@@
void app_reshape(int x, int y);
void app_keyboard(int key, bool pressed);
void app_mouse_button(int bn, bool pressed, int x, int y);
void app_mouse_motion(int x, int y);
void app_keyboard(int key, bool pressed);
void app_mouse_button(int bn, bool pressed, int x, int y);
void app_mouse_motion(int x, int y);
+void app_mouse_delta(int dx, int dy);
// the following functions are implemented by the window system backend
// the following functions are implemented by the window system backend
+void app_resize(int x, int y);
+void app_fullscreen(bool fs);
+void app_toggle_fullscreen();
+bool app_is_fullscreen();
+void app_grab_mouse(bool grab);
+void app_toggle_grab_mouse();
+bool app_is_mouse_grabbed();
void app_quit();
void app_redraw();
void app_swap_buffers();
void app_quit();
void app_redraw();
void app_swap_buffers();