blob: 133fedc51ce4388cbf480deab75fe07087c4ac1e (
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
36
37
38
39
40
|
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: camera.hh
// Description: Client view matrix calculations
#ifndef CLIENT_ENTITY_CAMERA_HH
#define CLIENT_ENTITY_CAMERA_HH
#pragma once
#include "shared/types.hh"
namespace config
{
class Float;
class Unsigned;
} // namespace config
namespace camera
{
extern config::Float roll_angle;
extern config::Float vertical_fov;
extern config::Unsigned 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
|