Vittorio Romeo
ed201ce87a
Make 'Color' a 'constexpr' class
2021-12-18 21:34:05 +01:00
Vittorio Romeo
cfeb7651b5
Make 'Rect' a 'constexpr' class
2021-12-18 17:29:41 +01:00
Vittorio Romeo
f6bd12c300
Replace 'sf::NonCopyable' with '= delete'
2021-12-16 22:39:38 +01:00
Vittorio Romeo
3c7fba0f96
Reduce compile-time impact of 'windows.h'
2021-12-16 22:39:07 +01:00
Vittorio Romeo
ae3a38345d
Add tests for 'Vector' destructuring and 'constexpr' support
2021-12-16 22:19:59 +01:00
Vittorio Romeo
6cb10856c6
Make 'Vector2' and 'Vector3' 'constexpr' classes
2021-12-15 17:28:50 +01:00
Pawel Paruzel
96a4262fb9
Update Android example build to C++17
2021-12-15 12:52:27 +01:00
Pawel Paruzel
dfff93fe04
Update SFML Time classes to C++17
...
Ensure Clock uses a monotonic clock
Statically assert against low precision clocks
Allow suspend-aware clock for Android
Add descriptive documentation to sf::Clock
2021-12-15 12:52:27 +01:00
Vittorio Romeo
e9e353a7b2
Remove redundant APIs taking '(x, y)' in favour of ones taking 'sf::Vector'
2021-12-15 11:22:46 +01:00
Vittorio Romeo
bb854fa739
Strategic use of '[[nodiscard]]' in 'Audio' module
2021-12-14 15:19:37 +01:00
Vittorio Romeo
ab0378805d
Strategic use of '[[nodiscard]]' in 'System' module
2021-12-14 14:02:05 +01:00
Vittorio Romeo
b33f4bb205
Replace SFML multithreading primitives with standard C++ ones
2021-12-14 01:07:29 +01:00
Anton Vasiliev
db38696c48
Fix calling convention for SetProcessDpiAwareness
...
A few changes ago a WINAPI was lost on SetProcessDpiAwareness function
declaration. This is incorrect because it changes calling convention
from stdcall to cdecl.
2021-12-12 23:28:56 +01:00
Vittorio Romeo
363e964acc
Strategic use of '[[nodiscard]]' in 'Graphics' module
2021-12-10 01:27:05 +00:00
Vittorio Romeo
d02d3590fd
Use 'std::optional' instead of 'std::vector' for temporary 'AudioDevice'
2021-12-09 22:35:14 +00:00
Vittorio Romeo
7343b112fc
Strategic use of '[[nodiscard]]' in 'Network' module
2021-12-09 22:34:57 +00:00
Vittorio Romeo
3579ecbdb0
Strategic use of '[[nodiscard]]' in 'Window' module
2021-12-09 19:53:54 +00:00
Vittorio Romeo
bc5b41657c
Remove deprecated 'PrimitiveType::Quads'
2021-12-09 16:33:02 +00:00
Lukas Dürrenberger
40cac9a403
Merge pull request #1884 from SFML/feature/backmerge
...
Back-merge changes from 2.6.x to master
2021-12-09 16:36:37 +01:00
Lukas Dürrenberger
cd517ba267
Merge branch '2.6.x' into feature/backmerge
2021-12-09 14:36:55 +01:00
Vittorio Romeo
7f2243d826
Remove most deprecated 'PrimitiveType' enumators
2021-12-09 13:12:03 +00:00
Vittorio Romeo
6678fdd291
Remove deprecated 'Shader::setParameter' API
2021-12-09 13:12:03 +00:00
Vittorio Romeo
0e28212584
Remove deprecated overload of 'RenderWindow::capture'
2021-12-09 13:12:03 +00:00
Vittorio Romeo
e7a5039cd9
Remove deprecated overload of 'RenderTexture::create'
2021-12-09 13:12:03 +00:00
Vittorio Romeo
f6186d880d
Remove deprecated 'Text::[set|get]Color'
2021-12-09 13:12:03 +00:00
Vittorio Romeo
756a399909
Remove deprecated 'Keyboard::Key' enumerators and adjust usages
2021-12-09 13:12:03 +00:00
Vittorio Romeo
21d594a765
Remove 'MouseWheelEvent' and adjust usages
2021-12-09 13:12:03 +00:00
Vittorio Romeo
d12a2cd319
Use 'override' whenever possible instead of 'virtual'
2021-12-09 09:07:03 +01:00
2567551469
X11: fix XIM input method support
2021-12-09 09:04:59 +01:00
Vittorio Romeo
a23076d7bb
Replace 'BoolType' with 'explicit operator bool'
2021-12-09 09:03:55 +01:00
Vittorio Romeo
87e84bc9e5
Minor modernization changes: 'nullptr', range-based 'for' loops, ...
2021-12-08 21:41:20 +00:00
Vittorio Romeo
2839f6b4d2
Use 'auto' where no information is lost
2021-12-08 19:14:31 +00:00
Vittorio Romeo
9a0cc4b7dc
Use alias declarations instead of 'typedef'
2021-12-08 17:58:13 +00:00
Anton Vasiliev
f03a415121
Use std::vector.data() where appropriate
2021-12-08 16:26:03 +00:00
Vittorio Romeo
f87f5a3f72
Use 'shrink_to_fit' instead of 'swap'
2021-12-08 16:07:15 +00:00
Vittorio Romeo
3914bd0062
Remove redundant synchronization for 'static' variable initialization
2021-12-08 16:07:15 +00:00
Vittorio Romeo
8be8a76cba
Use 'auto', range-'for', and structured bindings to improve some loops
2021-12-08 13:05:52 +01:00
lieff
e458f4651e
Add MP3 decoding support using 'minimp3'
...
Co-authored-by: Lukas Dürrenberger <eXpl0it3r@my-gate.net>
Co-authored-by: Vittorio Romeo <vittorio.romeo@outlook.com>
2021-12-08 08:19:08 +01:00
Anton Vasiliev
ce5d410c74
Fix exception on Vulkan example shutdown
...
This change fixes exception on Vulkan example shutdown when drawing
to window after it was closed.
2021-12-08 01:06:37 +00:00
Anton Vasiliev
b9da3b879c
Fix possible exception on Vulkan example startup
...
This change fixes possible exception on Vulkan example startup when
validationLayers.size()) is zero.
2021-12-08 01:06:37 +00:00
Pawel Paruzel
d0ebdc8607
Let CMake autodetect Apple arch on M1 processor
2021-12-06 15:43:58 +01:00
Vittorio Romeo
51ebeaf383
Change most associative containers to their respective 'unordered' version
2021-12-06 14:01:56 +00:00
Lukas Dürrenberger
e53d9e88a9
Fix regression in copyToImage
...
When the source image is flipped, we want to read the source data
backwards and thus need to keep subtracting the "iterator" on the source
data.
2021-12-06 08:08:50 +01:00
Pawel Paruzel
11020363b1
Fix wrong cast in sf::Packet
...
Add unit tests
2021-12-06 08:06:20 +01:00
Vittorio Romeo
93410afdc7
Delegate 'WglContext(WglContext*)' constructor to more general one
2021-12-05 18:09:36 +00:00
Vittorio Romeo
eef309e870
Add '.gitignore' file
2021-12-05 01:28:05 +00:00
Vittorio Romeo
0f9e13a2bb
Use list-initialization to zero-initialize 'JoystickImpl.hpp' structures
2021-12-04 23:12:57 +00:00
Vittorio Romeo
dd14d7c57f
Use '[[fallthrough]]' attribute and enable relevant warning
2021-12-04 12:42:09 +01:00
Vittorio Romeo
4e1fcb3775
Remove 'SFML_DEPRECATED' and replace internal usages with '[[deprecated]]'
2021-12-03 19:36:47 +01:00
Vittorio Romeo
4358a303a7
Use emplacement operations to avoid unnecessary copies/moves
2021-12-03 19:34:16 +01:00