]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/camera.h
3e3d517c2e8f6f8574ba9fd88c8a5f106f5dd572
[dragonblocks_alpha.git] / src / client / camera.h
1 #ifndef _CAMERA_H_
2 #define _CAMERA_H_
3
4 #include <linmath.h/linmath.h>
5 #include "types.h"
6
7 extern struct Camera {
8         mat4x4 view;
9         vec3 eye, front, right, up;
10         struct {
11                 vec3 front;
12                 vec3 right;
13                 vec3 up;
14         } movement_dirs;
15 } camera;
16
17 void camera_init();
18 void camera_set_position(v3f32 pos);
19 void camera_set_angle(f32 yaw, f32 pitch);
20
21 #endif // _CAMERA_H_