Commit Graph

3467 Commits

Author SHA1 Message Date
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
Chris Thrasher
91956d152d Remove unnecessary scope 2024-05-31 15:23:22 -06:00
Chris Thrasher
86682d99dd Unify Vulkan implementations under one header 2024-05-31 13:14:54 -06:00
binary1248
01e4f3f783 Perform sanity checks on OpenGL extensions to make sure the required entry points are actually available. 2024-05-31 09:19:43 -06:00
binary1248
59414d5bfd Restore Shader and Island examples back to equivalent pre-API-change functionality. 2024-05-30 12:53:11 -06:00
Chris Thrasher
7987d3cedc Assume XrandR version >=1.3
As far as I can tell XrandR 1.3 was released in ~2009. It's safe to
assume anyone using SFML 3 or newer will have this version installed.
2024-05-29 11:36:01 -06:00
Chris Thrasher
ac620900ac Use more type safe interfaces 2024-05-29 12:20:25 +02:00
Chris Thrasher
4fbd1d34b1 Use delegating constructor 2024-05-29 12:19:05 +02:00
binary1248
123270f7ad Added support for retrieving a list of audio playback devices, getting the default audio playback device and changing the audio playback device during runtime. 2024-05-28 10:54:01 -06:00
Chris Thrasher
4b1751321a Reduce pointer usage 2024-05-27 09:06:30 -06:00
Chris Thrasher
55f0918c62 Remove sf::View::reset in favor of assignment operations
It's rare that a type truly needs a .reset function. Copy/move
assignment typically accomplishes the same thing with less code
and is easier to maintain since it doesn't require updating your
.reset() function as new data members are added.

To reset a type is conceptually the same thing as simply assigning
from a newly constructed instance of the same type.
2024-05-26 10:23:52 -06:00
Chris Thrasher
4f28851ee6 Fix outdated template code 2024-05-26 07:35:30 -06:00