Chris Thrasher
07001196eb
Clean up namespace usage
...
Always use std:: and always omit sf::
2023-04-06 08:45:46 -06:00
Chris Thrasher
f5e6c67daf
Remove unnecessary std::string::c_str()
calls
2023-04-06 14:33:49 +02:00
binary1248
61aeff13c9
Fixed wglGetProcAddress not providing OpenGL 1.1 functions when the context is provided by an Nvidia ICD.
2023-04-06 08:41:10 +02:00
Chris Thrasher
485d367a91
Inline sfml_add_external
2023-04-05 16:16:53 -06:00
binary1248
21af6fecf1
Fixed OpenGL entry points being loaded from OpenGL32.dll instead of failing to load if they are not provided by the vendor provided library on Windows.
2023-04-05 18:09:06 +02:00
Chris Thrasher
2c99b3343a
Remove default sf::Text
constructor
2023-04-05 09:54:56 -06:00
Chris Thrasher
57a40c531f
Be explicit about when new keys are added to the map
2023-04-05 09:54:56 -06:00
Chris Thrasher
f3aac01744
Use structured bindings
2023-04-05 09:44:10 -06:00
Chris Thrasher
f371a99b39
Implement sf::String
in terms of std::u32string
2023-04-04 15:47:34 -06:00
Chris Thrasher
93a8506498
Let compiler generated special member functions
2023-04-04 15:47:34 -06:00
Vittorio Romeo
988a38e0a9
Improve PCH by adding more commonly used headers
2023-04-04 23:36:24 +02:00
Jonathan De Wachter
6a3feda5ab
Make EGL pixel format selection follow the same procedure as the other context types and make OpenGL context version parsing more tolerant of garbage data. Fixes #2395
2023-04-04 14:22:30 -06:00
binary1248
7004db1cd9
Added sf::RenderWindow, sf::Shader and sf::Window tests.
2023-04-04 10:27:21 +02:00
Chris Thrasher
ebe4b3c437
Add tests for sf::String
2023-04-03 21:23:43 -06:00
Chris Thrasher
14dbd3c899
Remove old workaround for MinGW's lack of unicode support
...
Dates back to 2009 when 78247bd38
was written. I'm going to assume
the situation has improved in the last 14 years. There are SFML
users who weren't even alive in 2009...
2023-04-03 21:23:43 -06:00
Chris Thrasher
06c5c50537
De-constexpr
sf::String::InvalidPos
...
This fails to link on MinGW. Until that can be resolved we can go
back to a normal constant. Because this is just an integer it doesn't
matter all that much whether it's const or constexpr.
2023-04-03 21:23:43 -06:00
Jonny
741fe219da
Use built-in CMake support for iOS
...
* Use built-in iOS support for cmake and expand tests to cover more configurations
* Adjust CI builds
* Update examples version
---------
Co-authored-by: Chris Thrasher <chrisjthrasher@gmail.com>
2023-04-03 23:36:33 +02:00
Chris Thrasher
92e5a1e4e6
Implement move semantics for sf::Cursor
2023-04-03 01:02:26 -06:00
Lukas Dürrenberger
d500eee682
Merge branch '2.6.x' into master
2023-04-02 00:30:16 +02:00
Chris Thrasher
5ebba36d16
Merge branch '2.6.x' into feature/backmerge
2023-04-01 15:23:48 -06:00
binary1248
541e83ed12
Disable stringop-overflow warning when including minimp3 since it produces false positives.
2023-04-01 23:21:38 +02:00
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
Lukas Dürrenberger
2151ea5c1d
Align search box styling with the doc style
...
- Update doxyfile.in file to v1.9.6
- Add additional search box CSS overrides
2023-03-28 22:46:04 +02: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
Chris Thrasher
1bb494f4c0
Upgrade to stb_image 2.28
2023-03-23 19:11:24 -06: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