summaryrefslogtreecommitdiffstats
path: root/src/game/client/camera.hh
blob: 97187203dda59b4a34b54ab2dfc28bdec2f0991f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CLIENT_CAMERA_HH
#define CLIENT_CAMERA_HH 1
#pragma once

#include "shared/types.hh"

class ConfigFloat;
class ConfigUnsigned;

namespace camera
{
extern ConfigFloat roll_angle;
extern ConfigFloat vertical_fov;
extern ConfigUnsigned view_distance;
} // namespace camera

namespace camera
{
extern glm::fvec3 angles;
extern glm::fvec3 direction;
extern glm::fmat4x4 matrix;
extern chunk_pos position_chunk;
extern glm::fvec3 position_local;
} // namespace camera

namespace camera
{
void init(void);
void update(void);
} // namespace camera

#endif /* CLIENT_CAMERA_HH */