Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
clientdynamicinfo.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2022-3 rubenwardy <rw@rubenwardy.com>
4
5#pragma once
6
8#include "config.h"
9
10
12{
13public:
19
20 bool equal(const ClientDynamicInfo &other) const {
21 return render_target_size == other.render_target_size &&
22 std::abs(real_gui_scaling - other.real_gui_scaling) < 0.001f &&
23 std::abs(real_hud_scaling - other.real_hud_scaling) < 0.001f &&
25 }
26
27#if CHECK_CLIENT_BUILD()
28 static ClientDynamicInfo getCurrent();
29
30private:
31 static v2f32 calculateMaxFSSize(v2u32 render_target_size, f32 density, f32 gui_scaling);
32#endif
33};
core::vector2d< f32 > v2f32
Definition irr_v2d.h:15
core::vector2d< u32 > v2u32
Definition irr_v2d.h:14
Definition clientdynamicinfo.h:12
v2u32 render_target_size
Definition clientdynamicinfo.h:14
bool equal(const ClientDynamicInfo &other) const
Definition clientdynamicinfo.h:20
f32 real_gui_scaling
Definition clientdynamicinfo.h:15
f32 real_hud_scaling
Definition clientdynamicinfo.h:16
bool touch_controls
Definition clientdynamicinfo.h:18
v2f32 max_fs_size
Definition clientdynamicinfo.h:17