Commit Graph

3578 Commits

Author SHA1 Message Date
Lukas Dürrenberger
59c4eba0e5 Update checkout action to the latest version 2024-06-22 21:51:37 +02:00
Lukas Dürrenberger
32bfb30293 Update macOS GitHub Actions images 2024-06-22 21:51:37 +02:00
binary1248
dfd14dbc1b Fixed cache state not correctly being ignored when switching between RenderTargets within a single context. 2024-06-21 21:39:55 +02:00
Chris Thrasher
f05baef521 Fix oversights from 735f2d9 2024-06-19 17:07:58 -06:00
Chris Thrasher
447e7b3844 Replace static_casts with vector operations 2024-06-19 06:24:40 -06:00
Chris Thrasher
6f5711e799 Decrease test precision to reduce flakey failures
Sometimes this job fails. Perhaps it needs to be resructured or
removed if we can't figure out how to make it more reliable.

https://github.com/SFML/SFML/actions/runs/9569223439/job/26381302304?pr=3106#step:21:137
2024-06-18 14:02:57 -06:00
Chris Thrasher
735f2d972d Replace sentinel values with std::optional 2024-06-18 12:35:29 -06:00
Chris Thrasher
8805b93c57 Work around errors with code coverage upload job 2024-06-18 11:04:39 -06:00
kimci86
eb762db342 Fix sf::VideoMode usage example 2024-06-18 06:13:15 -06:00
Chris Thrasher
d99d673330 Use std:: namespace 2024-06-17 16:10:04 -06:00
Chris Thrasher
5580720ae0 Fix inconsistent factory function name 2024-06-17 10:10:00 -06:00
vittorioromeo
16e9ae131d Fix poor setPlayingOffset precision (missing float conversion) 2024-06-16 23:13:26 +02:00
kimci86
66ecf34356 Create a new font page in Font::loadPage only when needed 2024-06-16 20:23:45 +02:00
kimci86
f96bf1f300 Rename Rect comparison operands to avoid confusion 2024-06-16 02:48:53 +02:00
kimci86
58e83056bb Some simplifications taking advantage of Rect position and size members 2024-06-16 02:48:53 +02:00
kimci86
65c0a8183c Simplify Rect unit tests 2024-06-16 02:48:53 +02:00
kimci86
1fd510c4bf Update Rect documentation 2024-06-16 02:48:53 +02:00
kimci86
c371bc6816 Remove Rect getPosition and getSize methods 2024-06-16 02:48:53 +02:00
kimci86
7e5ed78219 Replace Rect members left, top, width, height by position and size 2024-06-16 02:48:53 +02:00
vittorioromeo
e7b23ffcd1 Add timeout parameter to waitEvent 2024-06-14 15:00:46 +02:00
vittorioromeo
51efe50ec4 Simplify sf::Sprite implementation and reduce branches 2024-06-13 00:31:49 +02:00
Chris Thrasher
2f54312481 Fix documentation bugs 2024-06-12 14:38:04 -05:00
Lukas Dürrenberger
da17ec4f11 Fix void return value on a void function 2024-06-12 12:44:40 -05:00
Lukas Dürrenberger
8428fcac18 Revert "Disable problematic MSVC mutex flag temporarily"
This reverts commit 3263ef8455.
2024-06-12 12:44:40 -05:00
Lukas Dürrenberger
c71d456550 Revert "Update LLVM on Windows manually"
This reverts commit 84a448f495.
2024-06-12 12:44:40 -05:00
Chris Thrasher
304a7c1d69 Remove default empty state of sf::FileInputStream 2024-06-11 07:31:09 -05:00
copyrat90
37ac80dbe5 Update documentation of creating Music and Cursor 2024-06-11 12:29:31 +02:00
vittorioromeo
571eee359f Fix speaker name conflicts with miniaudio macros in unity builds 2024-06-11 01:07:31 +02:00
vittorioromeo
eabea655c5 Update self-referential owner ptr when moving SoundStream 2024-06-11 00:36:09 +02:00
vittorioromeo
a303cee386 Consistently print errors in factory functions 2024-06-10 20:00:53 +02:00
Chris Thrasher
52fb26c6cd Fix optional comparison to integer value 2024-06-10 09:29:54 -05:00
Chris Thrasher
366b119963 Remove default empty state of sf::MemoryInputStream 2024-06-10 08:11:28 -05:00
Lukas Dürrenberger
3263ef8455 Disable problematic MSVC mutex flag temporarily 2024-06-09 22:51:47 -05:00
Lukas Dürrenberger
84a448f495 Update LLVM on Windows manually 2024-06-09 22:51:47 -05:00
Chris Thrasher
de8430bb29 Use std::optional rather than sentinel values 2024-06-09 20:48:55 -05:00
vittorioromeo
8acb9d9ab1 Fix inconsistencies in sf::Texture move and swap 2024-06-08 17:50:44 -06:00
vittorioromeo
52ce862a00 Remove default empty state of sf::Music 2024-06-08 20:54:10 +02:00
vittorioromeo
e7d67cfa2a More Shader.cpp example simplifications 2024-06-07 17:43:54 +02:00
vittorioromeo
dae09a912c Rewrite Shader.cpp example 2024-06-07 01:01:11 +02:00
Chris Thrasher
5484824948 Remove unnecessary static casts 2024-06-05 11:54:36 -06:00
Chris Thrasher
3f38738a08 Revert "Simplify sf::Clock usage"
This reverts commit 08cfbc7d6c.
2024-06-05 12:28:00 +02:00
Chris Thrasher
100c9a3e35 Use fixed versions of CI images 2024-06-04 19:22:03 -06:00
Chris Thrasher
7b4e17be37 Remove unnecessary round trip conversion 2024-06-04 18:38:48 -06:00
Chris Thrasher
08cfbc7d6c Simplify sf::Clock usage 2024-06-04 17:54:50 -06:00
Paul Meffle
1e1c13b51d Add example raw_input 2024-06-04 13:24:10 -06:00
Paul Meffle
92bba1ed6f Add support for raw mouse input 2024-06-04 13:24:10 -06:00
Chris Thrasher
bfd65989e9 Remove default empty state of sf::Texture 2024-06-04 13:19:58 -06:00
Chris Thrasher
24dc6b5ea9 Reduce the scope of variables 2024-06-04 01:54:09 -06:00
Chris Thrasher
2c443d143b Assume X11 UTF-8 support is present 2024-06-04 01:14:06 -06:00
Chris Thrasher
46a71e4fe8 Add clang-tidy readability-redundant-member-init check
This has to be silenced for `sf::Vertex` because in some places within
SFML we initialize only a subset of this aggregate type. If we remove
the `{}` from `texCoords` then we get a compiler warning from Clang. It
feels like these two clang-based tools are somewhat contradictory.

error: missing field 'texCoords' initializer [-Werror,-Wmissing-field-initializers]
            m_points.append({{x, y}, {r, g, b}});
2024-06-04 00:56:24 -06:00