projects
/
vrlugburz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- added glutIgnoreKeyRepeat in miniglut
[vrlugburz]
/
src
/
player.h
diff --git
a/src/player.h
b/src/player.h
index
f7451c9
..
ddba877
100644
(file)
--- a/
src/player.h
+++ b/
src/player.h
@@
-6,6
+6,7
@@
struct player {
struct level *lvl;
struct player {
struct level *lvl;
+ struct cell *vis; /* cell visibility list */
int cx, cy;
cgm_vec3 cpos; /* cell position (derived from cx,cy) */
int cx, cy;
cgm_vec3 cpos; /* cell position (derived from cx,cy) */
@@
-13,7
+14,7
@@
struct player {
cgm_vec3 vpos; /* VR position within the cell */
cgm_quat vrot; /* VR orientation */
cgm_vec3 vpos; /* VR position within the cell */
cgm_quat vrot; /* VR orientation */
- int dir; /* cardinal direction, clockwise, 0 is west */
+ int dir; /* cardinal direction, clockwise, 0 is north */
float height;
/* view matrix, derived from all of the above by upd_player_xform */
float height;
/* view matrix, derived from all of the above by upd_player_xform */
@@
-23,6
+24,12
@@
struct player {
};
void init_player(struct player *p);
};
void init_player(struct player *p);
+
+void move_player(struct player *p, int right, int fwd);
+void turn_player(struct player *p, int turn);
+
void upd_player_xform(struct player *p);
void upd_player_xform(struct player *p);
+void upd_level_vis(struct player *p);
+
#endif /* PLAYER_H_ */
#endif /* PLAYER_H_ */