Lukas Dürrenberger
4faff85629
Merge 2.6.x to master
2023-11-01 23:25:16 +01:00
Chris Thrasher
0b3de0d8e2
Merge branch '2.6.x' to master
2023-11-01 11:08:57 -06:00
Chris Thrasher
7c8d1b5332
Use more sf::Vector
operations
...
When dealing with calculations that are fundamentally two dimensional
it's helpful to use a 2D data type as much as possible rather than
decomposing the calculations into x and y components. The more we use
vector operations the better chance we have of easiliy reasoning about
what the code is doing.
2023-10-31 19:45:13 -06:00
André Polomat
9a4929c844
Fixed sockets not closing before being moved into
2023-10-31 19:43:40 -06:00
Chris Thrasher
7e927c488b
Manage memory with std::unique_ptr
2023-10-31 19:37:59 -06:00
Chris Thrasher
4ec85b932e
Unify SocketImpl headers
...
The two headers only differed in their inclusions and two type
aliases. It's easier to use the preprocessor than the maintain two
nearly identical files.
2023-10-31 17:09:20 -06:00
binary1248
8c9c5c5b99
Added missing SFML_USE_STATIC_STD_LIBS checks to CMake configuration.
2023-10-31 23:22:28 +01:00
Chris Thrasher
5d0996906b
Manually inline all of sf::priv::ImageLoader
...
This layer of indirection was unnecessary. All of its functions
were only used once somewhere inside of Image.cpp. The code is shorter
and simpler and easier to reason about if we put the implementations
of these functions directly in Image.cpp.
2023-10-31 15:54:07 -06:00
Chris Thrasher
13dd9f59cf
Manage memory with higher level constructs
2023-10-31 15:05:26 -06:00
Chris Thrasher
69ea0cd863
Update changelog
2023-10-29 18:03:26 -06:00
Chris Thrasher
7f57bb4fe6
Update version to 2.6.1
2023-10-29 18:03:26 -06:00
Chris Thrasher
5cf740fd93
Remove output parameter from sf::Image::saveToMemory
2023-10-28 17:58:21 -06:00
Chris Thrasher
0fcd1dd0f1
Add tests for sf::Image::loadFromFile
failure
2023-10-27 19:21:36 -06:00
Chris Thrasher
fd2c42c7d1
Add tests for sf::Image::saveToMemory
2023-10-27 19:21:36 -06:00
Chris Thrasher
9a8ca3227f
Add UBsan to CI
2023-10-27 16:36:38 -06:00
André Polomat
014366b84a
Updated the test for the maximum antialiasing level of render texture
...
it returns 32 on my system, 64 should still be a reasonable value
2023-10-27 12:46:27 -06:00
Chris Thrasher
0512748fce
Run clang-tidy on OpenGL ES codepaths
2023-10-26 22:11:59 -06:00
Chris Thrasher
e2e0f36d98
Fix warnings in Linux OpenGL ES codepaths
...
Because CI didn't cover this code we didn't know there were
warnings in these codepaths to address.
Not sure why GCC's -Wduplicated-branches is being emitted or how
exactly to fix it. It's easier to simply ignore it in this one
particular file.
2023-10-24 08:44:42 -05:00
Lukas Dürrenberger
e45628e2eb
Add a support file
2023-10-23 11:41:04 -05:00
Lukas Dürrenberger
7d0fa3c3fa
Add new versions of the issue templates
2023-10-23 11:41:04 -05:00
Lukas Dürrenberger
326ccf8f81
Ignore description text in the PR template
2023-10-23 11:41:04 -05:00
Chris Thrasher
2cbcd60a45
Remove redundant link library
...
Clang was warning about this
ld: warning: ignoring duplicate libraries: 'lib/libsfml-system-s-d.a'
2023-10-23 13:07:27 +02:00
Chris Thrasher
6fa330d077
Prefer C++ standard lib over C standard lib
2023-10-22 22:57:04 -05:00
Chris Thrasher
6aabb75bcf
Fix sf::Image
tests
...
Bitten by a copy pasta error. We can't test for exact pixel values
since jpeg compression changes pixel values slightly.
2023-10-21 12:44:51 -05:00
Chris Thrasher
1c037e1cba
Add tests for sf::Image::saveToFile
2023-10-20 23:53:18 -05:00
Chris Thrasher
9b92e2e68e
Assert that sf::Image::{set|get}Pixel
coordinates are within bounds
...
Yay catching more UB :)
2023-10-20 23:53:18 -05:00
Chris Thrasher
fb873548b6
Print file extension when not recognized
2023-10-20 23:53:18 -05:00
Chris Thrasher
bb1a465e50
Add cppcoreguidelines-pro-type-member-init
clang-tidy check
...
This marks another good step towards systematically rooting out
undefined behavior in the form of reading uninitialized memory.
2023-10-17 21:41:36 -05:00
Chris Thrasher
63eff96581
Add cppcoreguidelines clang-tidy checks
...
The following checks have been added:
cppcoreguidelines-avoid-capturing-lambda-coroutines
cppcoreguidelines-avoid-goto
cppcoreguidelines-avoid-reference-coroutine-parameters
cppcoreguidelines-c-copy-assignment-signature
cppcoreguidelines-explicit-virtual-functions
cppcoreguidelines-interfaces-global-init
cppcoreguidelines-misleading-capture-default-by-value
cppcoreguidelines-missing-std-forward
cppcoreguidelines-noexcept-destructor
cppcoreguidelines-noexcept-move-operations
cppcoreguidelines-noexcept-swap
cppcoreguidelines-pro-type-cstyle-cast
cppcoreguidelines-slicing
cppcoreguidelines-use-default-member-init
cppcoreguidelines-virtual-class-destructor
2023-10-17 12:36:49 -05:00
Chris Thrasher
0de21b8ce3
Promote Windows Unity build jobs to main CI matrix
2023-10-16 13:45:01 -05:00
Chris Thrasher
4ff0dabba3
Promote Windows OpenGL ES jobs to main CI matrix
2023-10-16 13:45:01 -05:00
Chris Thrasher
12439919c7
Promote Linux OpenGL ES jobs to main CI matrix
2023-10-16 13:45:01 -05:00
Chris Thrasher
bdd6ad5145
Promote DRM jobs to main CI matrix
2023-10-16 13:45:01 -05:00
Bruno Van de Velde
13c8a1de4e
Fixed texture being upside down on Android when copying the texture of a RenderTexture
2023-10-12 15:22:37 -05:00
Bruno Van de Velde
67c9019eda
Fixed texture being upside down on Android when copying the texture of a RenderTexture
2023-10-09 09:59:33 -06:00
Chris Thrasher
fb88d1a8b3
Set Bash as the default shell
2023-10-09 00:22:34 -06:00
Chris Thrasher
f98ff0d26a
Assert against division by zero in public APIs
...
Yet another class of UB we can eliminate in debug builds.
2023-10-08 20:02:38 -06:00
binary1248
25bb6637eb
Cache packages downloaded when GitHub actions workflow is run.
2023-10-08 16:48:53 -06:00
binary1248
90ebf68ba3
Added GitHub Actions jobs to build with OpenGL ES on Linux GCC.
2023-10-08 12:13:41 -06:00
binary1248
fe778028a2
Fixed RenderTarget tracking not being notified to update its active target when an FBO RenderTexture is display()ed. Fixes #2630
2023-10-08 11:37:18 -06:00
Chris Thrasher
c0061797e3
Add more tests for sf::Window
2023-10-05 17:41:29 -06:00
Chris Thrasher
e638d7a5e9
Simplify how tests are automatically re-ran in CI
...
The flakiness is theoretically limited to Linux where we have to
use xvfb-run in CI. Because the tests are ran on Linux via ctest
we can more easily use CTest's built-in support for rerunning
failed tests. We have yet to actually observe this flakiness after
the other changes added in #2474 so it's possible the flakiness
has been entirely addressed.
While I was at it I de-duplicated some code for printing OpenGL
information.
2023-10-05 16:56:05 -06:00
Chris Thrasher
b856d806be
Improve sf::FileInputStream
test coverage
2023-10-05 16:46:31 -06:00
Bruno Van de Velde
46ba176463
Fixed compiling on Linux with SFML_OPENGL_ES
2023-10-05 14:11:31 -06:00
binary1248
e1fe3fdb06
Manually install MinGW when running GitHub Actions workflows.
2023-10-04 18:31:38 +02:00
binary1248
75be07fa34
Fix CMake minimum required version being too low to support specifying SYSTEM in target_include_directories for Visual Studio generators.
2023-10-03 21:04:47 -06:00
Chris Thrasher
793ee75873
Only install MinGW when necessary
...
Installing MinGW 11 takes way too long to tolerate doing this in
all Windows jobs.
2023-10-03 02:42:22 +02:00
Chris Thrasher
9d1d9cde33
Remove Intel oneAPI CI jobs
...
These started spontaneously failing due to some Debian package
repository key issues.
https://github.com/SFML/SFML/actions/runs/6365368228/job/17282319034#step:6:40
2023-10-01 21:39:58 +02:00
Chris Thrasher
cc147e5827
Install an older version of MinGW
...
Version 12 changes to URCT instead of MSVCRT which causes linker
issues with all the prebuilt MinGW binaries. This is still a liability
that will have to eventually be fixed.
2023-09-30 18:50:10 -06:00
Chris Thrasher
732115820b
Revert "Disable MinGW jobs until linker errors are addressed"
...
This reverts commit 3acb69e347
.
2023-09-30 18:50:10 -06:00