Lioncash
b724a4d90c
General: Tidy up clang-format warnings part 2
5 years ago
ReinUsesLisp
e38ed26b98
common/math_util: Support float type rectangles
6 years ago
Lioncash
1edf018319
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
b9238edd0d
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
45211a7a91
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
f11173f88c
common/math_util: Make Rectangle's constructors constexpr
Allows objects that contain rectangle instances to be constexpr
constructible as well.
7 years ago
Lioncash
cc0801745a
common/math_util: Remove unnecessary static from PI
const/constexpr variables have internal linkage by default.
7 years ago
Lioncash
74fd0aa2e8
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
f2a03468b1
math_util: Always initialize members of Rectangle
Prevents potentially using the members uninitialized.
7 years ago
Lioncash
fae2dd0344
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
55f5d0f777
MathUtil: add PI constant
9 years ago
James Rowe
793339b73a
Round the rectangle size to prevent float to int casting issues
And other minor style changes
9 years ago
James Rowe
d9305b0a07
Add default hotkey to swap primary screens.
Also minor style changes
9 years ago
James Rowe
5f72aade77
Rework frame layouts to use a max rectangle instead of hardcoded calculations
9 years ago
Yuri Kunde Schlesner
396a8d91a4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
dc8479928c
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