binary1248
e185f6d53e
Replace factory functions with throwing constructors
2024-08-08 09:19:32 -06:00
binary1248
698f265277
(Re-)Introduce default constructors and load/open member functions for resource objects that can be reused.
2024-08-08 09:19:32 -06:00
Chris Thrasher
e1469aa8f2
Use [[nodiscard]]
in more places
2024-06-27 15:12:15 -06:00
binary1248
be63ffa8d4
Fixed SoundEffects example allocating effect processor resources based on source channel count instead of engine channel count.
2024-06-27 08:17:23 +02:00
kimci86
fca4fa1aa2
Rename Font::loadFromFile into Font::openFromFile
...
Similar renaming for Font::loadFromMemory and Font::loadFromStream.
The goal is to better express the need to keep the source available,
similar to Music::openFromFile for example.
2024-06-25 22:53:28 +02:00
vittorioromeo
86c1a71a93
Remove default empty state of sf::Event
2024-06-23 19:11:10 +02:00
vittorioromeo
52ce862a00
Remove default empty state of sf::Music
2024-06-08 20:54:10 +02:00
Chris Thrasher
5484824948
Remove unnecessary static casts
2024-06-05 11:54:36 -06:00
Chris Thrasher
bfd65989e9
Remove default empty state of sf::Texture
2024-06-04 13:19:58 -06: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
504b850f03
Remove default empty state of sf::Font
2024-05-19 14:01:54 -06:00
binary1248
002b8953fa
Added support for user defined sound effect implementations.
2024-05-16 21:52:16 -06:00
Vittorio Romeo
a61eb6aeef
Do not use 'sf::err' in examples
2024-05-14 21:08:09 -06:00
trustytrojan
ca0a231b35
Add operator bool()
to sf::Event
for checking if the event type is not Empty
2024-05-03 22:50:59 +00:00
Chris Thrasher
59447dd8e5
Rewrite sf::Event
API to improve type safety
...
This new API is built on top of std::variant. This allows us to
store many different event types in a space-efficient way and access
the active event type in a type-safe manner that eliminates the
categories of UB that are possible with unions.
Co-authored-by: kimci86 <kimci86@hotmail.fr>
2024-05-01 18:00:58 +00:00
Chris Thrasher
04c36fdd1a
Improve const correctness
2024-04-27 23:33:52 +00:00
binary1248
c0ca39ed21
Added Sound Effects example.
2024-04-25 10:24:11 +02:00