Morph
f3417b01e1
input_common/motion_input: Make use of Common::PI constant
Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file.
5 years ago
Lioncash
2ef7815422
common: Make use of [[nodiscard]] where applicable
Now that clang-format makes [[nodiscard]] attributes format sensibly, we
can apply them to several functions within the common library to allow
the compiler to complain about any misuses of the functions.
5 years ago
Lioncash
78ddcbe3ba
General: Tidy up clang-format warnings part 2
5 years ago
ReinUsesLisp
c8c3fc647d
common/math_util: Support float type rectangles
6 years ago
Lioncash
f2551410bf
common/math_util: Provide a template deduction guide for Common::Rectangle
Allows for things such as:
auto rect = Common::Rectangle{0, 0, 0, 0};
as opposed to being required to explicitly write out the underlying
type, such as:
auto rect = Common::Rectangle<int>{0, 0, 0, 0};
The only requirement for the deduction is that all constructor arguments
be the same type.
7 years ago
Lioncash
e59ae7210a
common/math_util: Move contents into the Common namespace
These types are within the common library, so they should be within the
Common namespace.
7 years ago
Lioncash
2c80a3e089
common/math_util: Simplify std::make_signed usages to std::make_signed_t
Gets rid of the need to use typename to access the ::type alias.
7 years ago
Lioncash
fb1339a385
common/math_util: Make Rectangle's constructors constexpr
Allows objects that contain rectangle instances to be constexpr
constructible as well.
7 years ago
Lioncash
60d2e259bb
common/math_util: Remove unnecessary static from PI
const/constexpr variables have internal linkage by default.
7 years ago
Lioncash
b3577fccc1
common/math_util: Remove unused IntervalsIntersect() function
This hasn't been used since the project started, so we may as well get
rid of it to keep it from bit rotting.
7 years ago
Lioncash
9f5ba9df95
math_util: Always initialize members of Rectangle
Prevents potentially using the members uninitialized.
8 years ago
Lioncash
043546e4db
math_util: Remove the Clamp() function
C++17 adds clamp() to the standard library, so we can remove ours in
favor of it.
8 years ago
wwylele
078d188544
MathUtil: add PI constant
9 years ago
James Rowe
48d64ccad5
Round the rectangle size to prevent float to int casting issues
And other minor style changes
9 years ago
James Rowe
72786d410e
Add default hotkey to swap primary screens.
Also minor style changes
9 years ago
James Rowe
8e64c6c170
Rework frame layouts to use a max rectangle instead of hardcoded calculations
9 years ago
Yuri Kunde Schlesner
1e4a5da9f4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
628ed4376a
Sources: Run clang-format on everything.
9 years ago
tfarley
66b0d799ee
Render-to-texture flush, interval math fix
11 years ago
tfarley
05dc633a8c
OpenGL renderer
11 years ago
Emmanuel Gil Peyrot
a31fd7f86b
Common: Remove unused cruft from math_util, and remove a duplicated Rect class in common_types.
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
purpasmart96
ebfd831ccb
License change
11 years ago
Tony Wasserka
e02ff0121f
MathUtil: Make Rectangle work with unsigned types.
11 years ago
Lioncash
2f571a0d9d
Common: Add a clamp function to math_utils.h
12 years ago
Lioncash
90e994471a
Common: Move header guards over to pragma once
Also replaced C headers with the C++ equivalent ones
12 years ago
bunnei
de0a034a84
fixed project includes to use new directory structure
12 years ago
bunnei
63e46abdb8
got rid of 'src' folders in each sub-project
12 years ago
bunnei
c9b5b89e21
convert tabs to spaces
12 years ago
ShizZy
7564d28faf
replaced common code with dolphin common
12 years ago