summaryrefslogtreecommitdiffstats
path: root/game/client/entity/camera.hh
blob: 2484bfd4a99df07c4fd7c4bc07edc397af1932bf (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
33
34
35
#ifndef CLIENT_CAMERA_HH
#define CLIENT_CAMERA_HH 1
#pragma once

#include "shared/types.hh"

namespace config
{
class Float;
class Unsigned;
} // namespace config

namespace entity::camera
{
extern config::Float roll_angle;
extern config::Float vertical_fov;
extern config::Unsigned view_distance;
} // namespace entity::camera

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

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

#endif // CLIENT_CAMERA_HH