Chris Thrasher
fbd8407a5f
Enable moving windows
2024-06-30 16:50:32 -06:00
Chris Thrasher
7556d1be78
Move fullscreen window bookkeeping to a lower level
2024-06-30 16:50:32 -06:00
Chris Thrasher
51b8b44e14
Use more [[nodiscard]]
2024-06-27 19:02:46 -06:00
Chris Thrasher
e1469aa8f2
Use [[nodiscard]]
in more places
2024-06-27 15:12:15 -06:00
Chris Thrasher
d7eeaea240
Add clang-tidy readability-else-after-return
check
2024-06-27 12:17:03 -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
vittorioromeo
6ab03cc3ee
Improve sf::Event
documentation and parameter naming
2024-06-25 14:54:41 -06: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
Chris Thrasher
7034e40ccc
Document missing parameter
2024-06-24 14:14:08 -06:00
Vittorio Romeo
cede2def8b
Simplify/optimize sf::AudioResource
implementation
2024-06-24 15:27:34 +02:00
Chris Thrasher
14cff7406f
Disallow construction from const T&&
2024-06-23 16:55:37 -06:00
vittorioromeo
86c1a71a93
Remove default empty state of sf::Event
2024-06-23 19:11:10 +02:00
kimci86
eb762db342
Fix sf::VideoMode usage example
2024-06-18 06:13:15 -06:00
Chris Thrasher
5580720ae0
Fix inconsistent factory function name
2024-06-17 10:10:00 -06: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
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
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
a303cee386
Consistently print errors in factory functions
2024-06-10 20:00:53 +02:00
Chris Thrasher
366b119963
Remove default empty state of sf::MemoryInputStream
2024-06-10 08:11:28 -05:00
Chris Thrasher
de8430bb29
Use std::optional
rather than sentinel values
2024-06-09 20:48:55 -05:00
vittorioromeo
52ce862a00
Remove default empty state of sf::Music
2024-06-08 20:54:10 +02: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
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
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
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
vittorioromeo
e53f4d62af
Turn 'ContextSettings' into an aggregate and update usages
2024-05-25 00:56:37 +02:00
Chris Thrasher
b583eaf160
Replace const char*
with std::string_view
2024-05-24 12:01:27 +02:00
Chris Thrasher
cc87ef7a3c
Use std::string_view
to construct sf::Shader
s without allocations
2024-05-23 19:26:13 -06:00
Chris Thrasher
fdcd899d2b
Remove default empty state of sf::RenderTexture
2024-05-22 23:37:42 -06:00
Chris Thrasher
e6d4ee7ad1
Fix sound file docs
2024-05-22 18:32:55 -06:00
vittorioromeo
8b36da3625
Use '{}' for default parameter initialization
2024-05-22 11:54:49 -06:00
Chris Thrasher
e9fadbbcb3
Remove default empty state of sf::InputSoundFile
and sf::OutputSoundFile
2024-05-22 09:46:37 -06:00
Chris Thrasher
53ade4baf1
Remove default empty state of sf::Cursor
2024-05-21 01:09:09 -06:00
Chris Thrasher
7234fc149b
Remove default empty state of sf::Shader
2024-05-19 20:58:58 -06:00
Chris Thrasher
504b850f03
Remove default empty state of sf::Font
2024-05-19 14:01:54 -06:00
Chris Thrasher
0ac278b2d6
Remove default empty state of sf::Image
2024-05-19 13:25:34 -06:00
Chris Thrasher
add6422e6b
Remove default empty state of sf::SoundBuffer
2024-05-19 13:09:38 -06:00
binary1248
002b8953fa
Added support for user defined sound effect implementations.
2024-05-16 21:52:16 -06:00
vittorioromeo
884206ce0c
Store angles internally as radians
2024-05-14 13:07:40 -06:00
Chris Thrasher
593c4fe173
Replace C arrays with std::array
2024-05-14 12:47:19 -05:00
Chris Thrasher
207b54e445
Merge branch '2.6.x' into feature/backmerge
2024-05-13 21:07:03 -06:00
Chris Thrasher
3acc332de0
Use American spellings
2024-05-13 00:44:27 -05:00