blob: 0fb5e584351d537dda1077e2c6945e90f5125ed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef _GLFRAME_H_
#define _GLFRAME_H_
#include "math3d.h"
typedef struct
{
M3DVector3f v_location; /* location */
M3DVector3f v_forward; /* z, where am I heading */
M3DVector3f v_up; /* y, which way is up */
} GLFrame;
/* function prototypes */
void glframe_reset(GLFrame *);
void glframe_get_camera_orientation(GLFrame *, M3DMatrix44f);
void glframe_apply_camera_transform(GLFrame *);
void glframe_move_forward(GLFrame *, float);
void glframe_rotate_local_y(GLFrame *, float);
void glframe_rotate_local_x(GLFrame *, float);
#endif
|