VOX
A little voxel engine
Loading...
Searching...
No Matches
Settings.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "define.hpp"
4
5#include <shared_mutex>
6
12{
13
14public:
15
16 Settings();
17 ~Settings();
18
19 Settings(Settings & other) = delete;
20 Settings(Settings && other) = delete;
21 Settings & operator=(Settings & other) = delete;
22 Settings & operator=(Settings && other) = delete;
23
24 void setMouseSensitivity(double sensitivity);
25 double mouseSensitivity() const;
26
27
28private:
29
30 mutable std::shared_mutex m_mutex;
31
32 double m_mouse_sensitivity{0.2};
33
34};
Class to hold the settings of the application.
Definition: Settings.hpp:12
double mouseSensitivity() const
Definition: Settings.cpp:17
Settings(Settings &&other)=delete
~Settings()
Definition: Settings.cpp:7
void setMouseSensitivity(double sensitivity)
Definition: Settings.cpp:11
Settings()
Definition: Settings.cpp:3
Settings & operator=(Settings &other)=delete
Settings(Settings &other)=delete
Settings & operator=(Settings &&other)=delete