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