projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed all the makefiles to build with the new libanim
[dosdemo]
/
src
/
demo.h
diff --git
a/src/demo.h
b/src/demo.h
index
1b246ed
..
bf3eaa6
100644
(file)
--- a/
src/demo.h
+++ b/
src/demo.h
@@
-13,12
+13,20
@@
extern unsigned long time_msec;
extern int mouse_x, mouse_y;
extern unsigned int mouse_bmask;
extern int mouse_x, mouse_y;
extern unsigned int mouse_bmask;
+enum {
+ MOUSE_BN_LEFT = 1,
+ MOUSE_BN_RIGHT = 2,
+ MOUSE_BN_MIDDLE = 4
+};
+
+extern float sball_matrix[16];
+
int demo_init(int argc, char **argv);
void demo_cleanup(void);
void demo_draw(void);
int demo_init(int argc, char **argv);
void demo_cleanup(void);
void demo_draw(void);
-void demo_keyboard(int key, int state);
+void demo_keyboard(int key, int press);
/* defined in main_*.c */
/* defined in main_*.c */
@@
-32,4
+40,9
@@
void set_palette(int idx, int r, int g, int b);
*/
void swap_buffers(void *pixels);
*/
void swap_buffers(void *pixels);
+/* call each frame to get 3D viewing spherical coordinates */
+void mouse_orbit_update(float *theta, float *phi, float *dist);
+
+void draw_mouse_pointer(uint16_t *fb);
+
#endif /* DEMO_H_ */
#endif /* DEMO_H_ */