diff options
Diffstat (limited to 'sdl/glframe.h')
-rw-r--r-- | sdl/glframe.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sdl/glframe.h b/sdl/glframe.h new file mode 100644 index 0000000..fa5c991 --- /dev/null +++ b/sdl/glframe.h @@ -0,0 +1,21 @@ +#ifndef _GLFRAME_H_ +#define _GLFRAME_H_ + +#include "math3d.h" + +typedef struct +{ + M3DVector3f v_location; /* location */ + M3DVector3f v_forward; /* where am I heading */ + M3DVector3f v_up; /* which way is up */ +} GLFrame; + +/* function prototypes */ +void reset_glframe(GLFrame *frame); +void get_camera_orientation(GLFrame *frame, M3DMatrix44f m); +void apply_camera_transform(GLFrame *frame); +void move_forward(GLFrame *frame, float delta); +void rotate_local_y(GLFrame *frame, float angle); + +#endif + |