Vittorio Romeo
29f364eafa
Include '<utility>' for 'std::exchange'
2022-06-03 17:57:42 +02:00
Lukas Dürrenberger
417f003224
Merge branch '2.6.x'
2022-06-03 17:08:06 +02:00
DanielRabl
97a1bf2f5d
Use wide-string character consistently
...
Comparing '\r' against 8bit character instead of 16bit wide character.
2022-06-02 16:09:33 +02:00
Chris Thrasher
e1f36e66a5
Reduce casts to (void)
2022-06-01 08:19:40 +02:00
Chris Thrasher
b71ff372c7
Use ()
for functions with no parameters
2022-06-01 08:19:40 +02:00
Chris Thrasher
e0c4d14541
Use [[maybe_unused]]
for parameters that are sometimes not used
...
Depending on preprocessor settings, certain parameters may or may
not be used. Instead of casing to (void) when not used, it's easier
to use C++17's [[maybe_unused]] attribute to express this.
2022-06-01 08:19:40 +02:00
Chris Thrasher
58e93ddd19
Add tests for sf::View
2022-06-01 08:09:29 +02:00
Chris Thrasher
60131b19ef
Add tests for sf::Glyph
2022-06-01 08:09:29 +02:00
Andrew King
3e424550d8
Added comment for GCC 12.1 false-positive (issue #2100 )
2022-05-26 00:03:07 +02:00
Andrew King
6ff85eebe5
bugfix for #2100 : null-dereference in GCC 12.1.0
2022-05-26 00:03:07 +02:00
Chris Thrasher
7dd001e5c0
Simplify approximate comparisons of SFML types
...
Co-authored-by: kimci86 <kimci86@hotmail.fr>
2022-05-25 13:36:12 +02:00
Chris Thrasher
5fde1ca613
Hide symbols in cross platform manner
2022-05-21 21:35:35 +02:00
Chris Thrasher
62d1abe491
Stop setting CMake policy 0068
...
https://cmake.org/cmake/help/latest/policy/CMP0068.html
No longer necessary since CMake 3.9
2022-05-21 21:35:35 +02:00
Chris Thrasher
89a0489a44
Stop setting CMake policy 0042
...
https://cmake.org/cmake/help/latest/policy/CMP0042.html
No longer necessary since CMake 3.0
2022-05-21 21:35:35 +02:00
Chris Thrasher
1e6dc82304
Add tests for sf::CircleShape
2022-05-17 20:30:17 +02:00
Chris Thrasher
049e3ce8f2
Increase precision of operator<<(Vector2<T>)
2022-05-17 20:30:17 +02:00
Chris Thrasher
88515b2fca
Add polar coordinates constructor for sf::Vector2<T>
2022-05-17 20:30:02 +02:00
Chris Thrasher
0785093ebc
Use sf::Vector2<T>
for numeric parameter pairs
2022-05-17 08:33:11 +02:00
Chris Thrasher
488b139ea7
Fix conversion warning
2022-05-16 19:05:35 +02:00
Bambo-Borris
b2ab6d6ab3
Add extension methods to Vector3<T>
...
Includes relevant tests and updates TestUtilities to feature ApproxVec2 & ApproxVec3
2022-05-16 08:59:42 +02:00
Lukas Dürrenberger
65e357e901
Merge pull request #2099 from SFML/2.6.x
...
Backmerge 2.6.x to master
2022-05-10 23:39:34 +02:00
Chris Thrasher
3301c47755
Remove CompileOptionsOverride
...
These overrides existed to prevent MSVC errors related to duplicate
compiler warnings. Because we required a version of CMake older
3.15, CMake would add /W3 as a default compiler flag when using
MSVC. We then add /W4 in addition to that. Modern CMake versions
seem to deduplicate these warnings but older versions did not.
The easist fix is to raise the minimum CMake version to 3.15 which
changes the default behavior to no longer add /W3 without being
explicitly specified. See the below link for more information about
this behavior change.
https://cmake.org/cmake/help/latest/policy/CMP0092.html
2022-05-09 15:38:39 +02:00
Chris Thrasher
829cf3b502
Apply compiler warnings to test utilities
2022-05-09 15:38:24 +02:00
kimci86
9842c8fdf8
Fix incorrect cast when loading 16-bit samples from WAV file
2022-05-06 21:07:42 +02:00
Coder-Rahul-Y
9d401398e7
replacing NULL with nullptr in src/window file
2022-05-05 00:03:00 +02:00
CosminPerRam
6b4c287c20
Fixed unnecessary instantiation
...
Co-authored-by: kimci86 <kimci86@hotmail.fr>
2022-05-05 00:00:35 +02:00
CosminPerRam
27a82e733b
try_emplace in Font::loadPage
2022-05-05 00:00:35 +02:00
Chris Thrasher
c0a6cf1f0c
Remove unnecessary lossy conversions in test utilities
...
Both ApproxVec and ApproxDeg accept a double then convert that to
a float just to then convert it back to a double. We can save an
extra lossy conversion by just accepting a float instead of a double
in the first place.
2022-05-04 09:03:04 +02:00
Chris Thrasher
1e560ababd
Add tests for sf::err
2022-05-02 09:53:04 +02:00
Chris Thrasher
2a5ce3c989
Apply compiler warnings to tests
2022-05-02 08:39:02 +02:00
Chris Thrasher
8a4563361f
Set compiler warnings on a per-target, not per-file basis
...
No 1st party SFML targets contain 3rd party source code so it's
safe and correct to apply warnings to the entire target.
2022-05-02 08:39:02 +02:00
Chris Thrasher
f320fc0db4
Remove local variables that shadowed global
2022-05-02 08:39:02 +02:00
Lukas Dürrenberger
d1ff823d9d
Merge pull request #2082 from feature/backmerge
...
Backmerge 2.6.x to master
2022-05-02 08:35:39 +02:00
Lukas Dürrenberger
08982064f5
Add clarification of SFML's status of development
...
Co-authored-by: kimci86 <kimci86@hotmail.fr>
2022-05-02 08:30:59 +02:00
Coder-Rahul-Y
33cb8f4391
Corrected/clarified the setLoopPoints() documentation
...
The previous documentation talks about 'end points' but the current code does not take end point as an argument and hence does not allow specifying the end point of the loop. (Instead the functions allows specifying the beginning offset and the length of the loop.)
2022-04-28 20:12:29 +02:00
Lukas Dürrenberger
9a6142bd22
Merge branch '2.6.x'
2022-04-27 08:12:25 +02:00
Radek Dutkiewicz
b6ca47e128
DRM Implementation
...
Ported sfml-pi DRM/KMS backend written by @mickelson
Port co-authored by @substring
Co-authored-by: Andrew Mickelson <andrew.mickelson@gmail.com>
Co-authored-by: Gil Delescluse <frog2wah@gmail.com>
2022-04-26 07:44:14 +02:00
Lukas Dürrenberger
3ae85854e4
Merge pull request #2080 from SFML/feature/backmerge
...
2.6.x -> master backmerge
2022-04-23 12:12:17 +02:00
Lukas Dürrenberger
af209510d9
Merge branch '2.6.x' into master
2022-04-21 08:31:37 +02:00
kimci86
f7c88ee7ef
Fix font pages not being created with the desired smoothness
2022-04-21 08:24:40 +02:00
Peter Chapman
470822cfe4
Fixed incorrect value for fully transparent pixels
2022-04-21 08:23:10 +02:00
Chris Thrasher
f8c1ec283a
Print absolute paths when file not found
...
This is helpful when debugging why files won't load. By printing
the whole path we're making it more clear to the user exactly what
file is failing to load.
2022-04-21 08:22:19 +02:00
Chris Thrasher
c7705a8d9a
Remove remaining use of this->
2022-04-20 08:29:45 +02:00
Nadpher
8bad90df7c
Added community section to README
2022-04-19 09:54:38 +02:00
Chris Thrasher
4b93727413
Enable MSVC standards conformance
2022-04-19 08:33:27 +02:00
kimci86
28279c0686
Fix incorrect cast in Cursor::loadFromPixels Unix implementation
2022-04-13 08:49:20 +02:00
Chris Thrasher
9010e7ba38
Add tests for sf::RectangleShape
2022-04-12 08:15:44 +02:00
Chris Thrasher
a302a9829e
Ensure files end with newline character
2022-04-12 08:13:48 +02:00
Chris Thrasher
92ece7dcc3
Remove iOS 7 workarounds
2022-04-12 08:13:18 +02:00
Chris Thrasher
9cbd9c5976
Add tests for sf::Shape
2022-04-08 16:46:51 +02:00