binary1248
5048c4d801
Added sf::Texture tests.
2023-03-30 22:24:40 +02:00
Jim-Marsden
a8bc8cf889
Added move constructor, and move assignment operator.
2023-03-29 23:48:05 +02:00
Chris Thrasher
2d2f684786
Fix clang-tidy-16 errors
2023-03-28 19:54:06 -06:00
binary1248
25da9833c2
Fixed GlContext not being activated if it shares the same address as a previously destroyed GlContext.
2023-03-27 19:50:18 -06:00
binary1248
acba3e6165
Replaced xvfb-run with manually starting Xvfb and running fluxbox to emulate a window manager and combined test and coverage steps into a single step.
2023-03-27 19:46:07 -06:00
binary1248
ccda8a9db0
Reduce TransientContextLock overhead if there is already a context active on the current thread.
2023-03-24 10:42:02 +01:00
binary1248
05d9f2046a
Since the CODECOV_TOKEN secret isn't being made available to every pull request, revert to having the Codecov uploader auto-detect.
2023-03-24 10:37:50 +01:00
binary1248
b510042b0d
Fixed Codecov uploader being run with the SHA of the merge commit instead of the HEAD commit when a job is run in a pull request context.
2023-03-23 09:57:58 -06:00
Chris Thrasher
bc5ddb3495
Don't automatically build docs
...
This means you can leave the docs enabled in the build without being
constantly spammed by all the console output that entails.
https://salsa.debian.org/games-team/libsfml/-/blob/master/debian/patches/02_build-doc-once.patch
2023-03-23 09:57:16 -06:00
Chris Thrasher
2df79840c4
Remove commented out CSS tag
...
https://salsa.debian.org/games-team/libsfml/-/blob/master/debian/patches/01_remove-googleapi-css.patch
2023-03-23 09:57:16 -06:00
Chris Thrasher
10584485a3
Export symbol required to use sfml-activity
2023-03-22 21:18:02 -06:00
binary1248
6ca627ee9d
Manually upload coverage report instead of using codecov-action.
2023-03-19 16:21:55 -06:00
Vittorio Romeo
641cf54cc3
Use 'std::optional' in 'transientContext'
2023-03-14 22:24:58 -06:00
Vittorio Romeo
33e96657b7
Remove redundant 'reset' calls in 'TransientContext` destructor
2023-03-14 20:26:11 -06:00
Chris Thrasher
0b62543942
Don't automatically run tests after build
...
The runtests target must be used on Windows for the sake of code
coverage. However we can't use that target on all other platforms
because on some non-Windows platforms like Android, the tests don't
even get configured. If you try to build a target that doesn't exist
you get a hard failure. Using CTest is better because it will still
return zero even if no tests are found as is the case on Android.
2023-03-14 20:23:17 -06:00
Chris Thrasher
b6c54ac589
Use unity builds to speed up clang-tidy runtime
2023-03-14 10:08:23 -06:00
Lukas Dürrenberger
90f05ac4e8
Switch to using Documentation IP ranges in tests
...
Documentation IP ranges are define in RFC 5737 and are 'safe' address
for documentation purposes
2023-03-09 16:40:01 -07:00
binary1248
f4e0c4b4c0
Make moving Shapes, swapping Textures and swapping VertexBuffers noexcept.
2023-03-07 16:32:35 -07:00
Chris Thrasher
66bec29aff
Remove unreachable code
2023-03-07 16:07:02 -07:00
Chris Thrasher
a100f847d5
Replace std::rand
with <random>
2023-03-07 13:23:12 -07:00
binary1248
42a53cfb1d
Make use of CODECOV_TOKEN in ci.yml in order to work around Github Actions API errors that occur.
2023-03-07 10:03:34 +01:00
metaquarx
474de4d16e
Allow setting window icon with sf::Image
2023-02-21 15:48:33 -07:00
Vittorio Romeo
698b7ee49f
Remove unused headers and reduce physical dependencies
2023-02-20 23:30:25 +01:00
Chris Thrasher
5bd3722598
Fix sf::Rect
docs
2023-02-19 17:40:03 -07:00
Chris Thrasher
0e1d33f910
Test install interface with frameworks
2023-02-17 00:28:58 -07:00
Chris Thrasher
41aa062272
Add modernize-use-auto
clang-tidy check
2023-02-15 09:42:50 -07:00
Chris Thrasher
2a2ddee221
Disable unreliable tests
2023-02-15 09:39:11 -07:00
Chris Thrasher
9d0b2ba592
Add tests for sf::Cursor
2023-02-14 07:34:07 -07:00
Chris Thrasher
cdf8ab38fb
Add tests for sf::VertexBuffer
2023-02-13 11:47:53 -07:00
Chris Thrasher
0a08e903dc
Assert extension string is not null
2023-02-12 14:03:31 -07:00
Chris Thrasher
949d9f44e1
Simplify implementation of sf::Clock
2023-02-11 14:02:22 -07:00
Lukas Dürrenberger
6dd5f69d16
Merge 2.6.x to master
2023-02-10 09:33:03 +01:00
Chris Thrasher
7c825b182f
Test install interface for Static DRM builds
2023-02-09 20:24:58 -07:00
Chris Thrasher
5e75336753
Merge remote-tracking branch 'origin/2.6.x' into feature/backmerge
2023-02-09 20:22:56 -07:00
Chris Thrasher
6aaf132d41
Add support for installing with static libs when using DRM
2023-02-09 20:12:43 -07:00
Chris Thrasher
04483c58d9
Build sfml-main with position-independent code
2023-02-08 14:37:17 -07:00
Chris Thrasher
2af65286b7
Add tests for sf::WindowBase
2023-02-08 00:22:42 -07:00
Chris Thrasher
347b306d21
Don't terminate DRM display if it's null
2023-02-08 00:22:42 -07:00
Chris Thrasher
ef20b58895
Enable display tests for non-DRM Linux builds
...
I think this was an oversight. These jobs already run with xvfb-run
so we ought to be including the display-dependent tests.
2023-02-08 00:22:42 -07:00
kimci86
205794eb3f
Explicitly specify required X11 components
2023-02-07 17:21:34 -07:00
Chris Thrasher
eb162df723
Use X11's find module
...
Added in CMake 3.14 so this wasn't accessible in prior versions of
SFML
2023-02-06 15:12:58 -07:00
Chris Thrasher
938e90b7d2
Use std::string_view
for parameter type
2023-01-31 17:02:13 -07:00
Chris Thrasher
218fccd926
Don't install CMake on Android
2023-01-30 17:27:45 -07:00
OURABIG
7a50075a8b
changes this UPPER_CASE CMake function names to lower_case. CONFIGURE_FILE becomes configure_file and INSTALL becomes install.
2023-01-30 16:42:16 -07:00
Thibaut PONCHON
642d981acf
Replace std::strcmp by std::string_view::operator==
...
clang-format validation pass
Remove unecessary cstring include
2023-01-29 12:10:34 -07:00
Chris Thrasher
401615f5e6
Use Ninja in CI
2023-01-29 11:14:10 -07:00
Chris Thrasher
0f2671a25c
Add more clang-tidy checks
2023-01-25 14:53:33 -07:00
tverrbjelke
7074849814
Fixes Typo in documentation of WindowBase
...
modified: include/SFML/Window/WindowBase.hpp
2023-01-25 10:07:16 -07:00
Andreas Hüwel
8737bbe970
Fixses mostly unimportant typo in documentation of WindowBase
...
modified: include/SFML/Window/WindowBase.hpp
2023-01-25 10:07:16 -07:00
Chris Thrasher
0c418dce4d
Use std::unordered_map
2023-01-25 10:06:03 -07:00