diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/emu_window.cpp | 6 | ||||
| -rw-r--r-- | src/common/emu_window.h | 12 | ||||
| -rw-r--r-- | src/video_core/pica.h | 6 | ||||
| -rw-r--r-- | src/video_core/vertex_shader.h | 5 | ||||
| -rw-r--r-- | src/video_core/video_core.h | 7 |
5 files changed, 23 insertions, 13 deletions
diff --git a/src/common/emu_window.cpp b/src/common/emu_window.cpp index 43facb85c..b69b05cb9 100644 --- a/src/common/emu_window.cpp +++ b/src/common/emu_window.cpp | |||
| @@ -2,6 +2,12 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> | ||
| 6 | #include <cmath> | ||
| 7 | |||
| 8 | #include "common/assert.h" | ||
| 9 | #include "common/key_map.h" | ||
| 10 | |||
| 5 | #include "emu_window.h" | 11 | #include "emu_window.h" |
| 6 | #include "video_core/video_core.h" | 12 | #include "video_core/video_core.h" |
| 7 | 13 | ||
diff --git a/src/common/emu_window.h b/src/common/emu_window.h index 8eca6b5d5..a0ae4c9fa 100644 --- a/src/common/emu_window.h +++ b/src/common/emu_window.h | |||
| @@ -4,11 +4,17 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <tuple> | ||
| 8 | #include <utility> | ||
| 9 | |||
| 7 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 8 | #include "common/key_map.h" | ||
| 9 | #include "common/math_util.h" | 11 | #include "common/math_util.h" |
| 10 | #include "common/scm_rev.h" | 12 | |
| 11 | #include "common/string_util.h" | 13 | #include "core/hle/service/hid/hid.h" |
| 14 | |||
| 15 | namespace KeyMap { | ||
| 16 | struct HostDeviceKey; | ||
| 17 | } | ||
| 12 | 18 | ||
| 13 | /** | 19 | /** |
| 14 | * Abstraction class used to provide an interface between emulation code and the frontend | 20 | * Abstraction class used to provide an interface between emulation code and the frontend |
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 9628a7589..be8ff7590 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h | |||
| @@ -5,10 +5,10 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <cmath> | ||
| 8 | #include <cstddef> | 9 | #include <cstddef> |
| 9 | #include <initializer_list> | ||
| 10 | #include <map> | 10 | #include <map> |
| 11 | #include <vector> | 11 | #include <string> |
| 12 | 12 | ||
| 13 | #include "common/assert.h" | 13 | #include "common/assert.h" |
| 14 | #include "common/bit_field.h" | 14 | #include "common/bit_field.h" |
| @@ -1014,7 +1014,7 @@ struct float24 { | |||
| 1014 | u32 mantissa = hex & 0xFFFF; | 1014 | u32 mantissa = hex & 0xFFFF; |
| 1015 | u32 exponent = (hex >> 16) & 0x7F; | 1015 | u32 exponent = (hex >> 16) & 0x7F; |
| 1016 | u32 sign = hex >> 23; | 1016 | u32 sign = hex >> 23; |
| 1017 | ret.value = powf(2.0f, (float)exponent-63.0f) * (1.0f + mantissa * powf(2.0f, -16.f)); | 1017 | ret.value = std::pow(2.0f, (float)exponent-63.0f) * (1.0f + mantissa * std::pow(2.0f, -16.f)); |
| 1018 | if (sign) | 1018 | if (sign) |
| 1019 | ret.value = -ret.value; | 1019 | ret.value = -ret.value; |
| 1020 | } | 1020 | } |
diff --git a/src/video_core/vertex_shader.h b/src/video_core/vertex_shader.h index 7471a6de8..c997e6a77 100644 --- a/src/video_core/vertex_shader.h +++ b/src/video_core/vertex_shader.h | |||
| @@ -4,11 +4,10 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <initializer_list> | 7 | #include <type_traits> |
| 8 | 8 | ||
| 9 | #include <common/common_types.h> | 9 | #include "common/vector_math.h" |
| 10 | 10 | ||
| 11 | #include "math.h" | ||
| 12 | #include "pica.h" | 11 | #include "pica.h" |
| 13 | 12 | ||
| 14 | namespace Pica { | 13 | namespace Pica { |
diff --git a/src/video_core/video_core.h b/src/video_core/video_core.h index 3f24df7bd..14b33c9dd 100644 --- a/src/video_core/video_core.h +++ b/src/video_core/video_core.h | |||
| @@ -4,12 +4,11 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/emu_window.h" | ||
| 8 | |||
| 9 | #include "renderer_base.h" | ||
| 10 | |||
| 11 | #include <atomic> | 7 | #include <atomic> |
| 12 | 8 | ||
| 9 | class EmuWindow; | ||
| 10 | class RendererBase; | ||
| 11 | |||
| 13 | //////////////////////////////////////////////////////////////////////////////////////////////////// | 12 | //////////////////////////////////////////////////////////////////////////////////////////////////// |
| 14 | // Video Core namespace | 13 | // Video Core namespace |
| 15 | 14 | ||