blob: d83f9e4afd25d83f9d323bcce099f5d9f4095101 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 *);
void get_camera_orientation(GLFrame *, M3DMatrix44f);
void apply_camera_transform(GLFrame *);
void move_forward(GLFrame *, float);
void rotate_local_y(GLFrame *, float);
#endif
|