Chris Thrasher
1bc2e81711
Fix incorrect clang-format documentation
2024-08-26 16:04:04 -06:00
Chris Thrasher
4a463ec136
Throw custom sf::Exception
type
2024-08-25 12:17:49 -06:00
Chris Thrasher
6589d5a847
Fix incorrect merge conflict resolution
2024-08-23 07:07:15 +01:00
Lukas Dürrenberger
e192d6e6f8
Merge branch '2.6.x' into master
2024-08-22 09:33:43 +01:00
rini c
d324367603
Warn about the current state of development in the pull request template ( #3199 )
2024-08-22 09:16:40 +01:00
Jonny
b60b7b4fcb
Use imported target for openal to simplify copying dll's
2024-08-21 16:22:52 -06:00
Chris Thrasher
7d1d630457
Reimplement event assertions to loosen constexpr restrictions on event subtypes
...
Co-authored-by: Vittorio Romeo <vittorio.romeo@outlook.com>
2024-08-21 14:16:09 -06:00
Chris Thrasher
238cd2c56d
Merge remote-tracking branch 'origin/2.6.x' into feature/backmerge
2024-08-21 11:54:43 -06:00
Chris Thrasher
c6e0f1ad2b
Fix how macOS fullscreen video modes are detected
...
Co-authored-by: Lorenzooone <lollo.lollo.rbiz@gmail.com>
2024-08-21 11:40:40 -06:00
Jonny Paton
50ced215d0
gitignore vs folder
2024-08-20 15:50:14 +01:00
CosminPerRam
8f6a8316ad
chore: update stb_image from 2.29 to 2.30
2024-08-15 21:18:58 +01:00
Lukas Dürrenberger
fa9f991686
Mark standard library types as code in doc strings
2024-08-15 13:56:14 +01:00
CosminPerRam
6a94997ac9
chore: update catch2 from 3.6.0 to 3.7.0
2024-08-15 08:54:23 +01:00
Michal Tabaszewski
8096ba24fc
Rename getLoop() to isLooping() and setLoop() to setLooping()
2024-08-08 15:01:28 -06:00
Chris Thrasher
a71b3a497b
Remove use of deprecated ALooper_pollAll
2024-08-08 14:14:14 -06:00
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
6b4da70e15
Remove use of deprecated ALooper_pollAll
2024-08-07 17:28:48 -06:00
Chris Thrasher
2a4ca6e053
Prevent crash when setting empty uniform array
...
The root of the problem is accessing the first element of an empty
array which reads out-of-bounds memory.
2024-08-01 14:03:58 -06:00
Chris Thrasher
dffdaa52a7
Pass sf::Color
s by value
2024-07-31 09:25:21 -06:00
Chris Thrasher
779b963530
Stop using macOS 11 images
2024-07-29 07:21:08 +02:00
Lorenzooone
03179abbf6
Fix issue with openal arm requiring vc_redist
2024-07-29 00:11:07 +02:00
Chris Thrasher
b50f62da43
Test constexpr construction of aggregates
2024-07-27 17:27:39 -06:00
ZXShady
8c895fd7e1
Pass sf::IpAddress
by value
...
`sf::IpAddress` is a wrapper around `std::uint32_t` and should be passed by value
2024-07-27 15:53:03 -06:00
ZXShady
d6acbf7efb
Update InputSoundFile.cpp ( #3177 )
2024-07-26 07:15:41 +02:00
ZXShady
a256c5cdcd
Remove useless attributes from implementation files ( #3175 )
2024-07-21 22:50:00 -06:00
Chris Thrasher
b0b4c7ff3d
Fix documentation regarding bit widths
2024-07-21 17:52:58 -06:00
Chris Thrasher
0831f055ce
Require that sf::WindowBase::handleEvents
receives at least one argument
2024-07-21 11:59:05 -06:00
Chris Thrasher
c8c8673259
Pass sf::Vector2<T>
s by value
...
As a rule of thumb, if the type is less than or equal to the CPU
register width times two then you ought to pass it by value. This
will lead to more efficient code generation.
2024-07-19 10:33:00 -06:00
ZXShady
6c415471d2
Apply changes
...
Putting the `= default` in the header file like other files do and not in the `.inl` implementation files for consistency
2024-07-18 14:16:27 -06:00
Alexander Weinrauch
9d418b033f
Fixed broken joystick axis mappings under Linux
2024-07-18 09:48:18 -06:00
Chris Thrasher
b4c7e4a890
Stop running tests that sometimes hang indefinitely
2024-07-17 17:12:58 -06:00
Chris Thrasher
7083b6562e
Fix typos
2024-07-15 14:16:36 -06:00
Bambo-Borris
5eb57ae5f1
Fix white square problem in OpenGL example
...
Because the sf::Texture::m_texture value changes when the texture is
reloaded from disk, we need to rebind the texture since the previously
bound sf::Texture::m_texture value is no longer a valid identifier.
2024-07-15 12:32:08 -06:00
kimci86
72eb115551
Remove inheritance in sf::Event subtypes
...
This avoids confusing auto-completion hints when looking for an event
subtype to use as `sf::Event::is` or `sf::Event::getIf` type parameter.
This also avoids the inconsistency between what is possible with
`sf::Event::is` and `sf::Event::getIf` functions (they do not accept
event subtypes parents) and what would be possible with
`sf::Event::visit` (it could take a handler for a parent type).
2024-07-15 12:20:35 -06:00
Vittorio Romeo
01f26346cb
Fix typo in WindowBase::setMaximumSize
2024-07-15 10:59:32 -06:00
vittorioromeo
7ba672139c
Simplify sf::WindowBase::handleEvents
and add basic tests
2024-07-09 17:51:41 +02:00
Lukas Dürrenberger
2a6e15f9cc
Merge branch '2.6.x' into master
2024-07-09 10:40:45 +02:00
binary1248
85e5ce5d65
Added event handling example.
2024-07-08 15:16:20 -06:00
binary1248
41c48a84bc
Added visitation support to Event and WindowBase via handleEvents.
2024-07-08 15:16:20 -06:00
Chris Thrasher
5873a7a157
Fix null pointer dereference when creating fullscreen window
...
Regression introduced in 7556d1b
2024-07-08 13:12:17 -06:00
Chris Thrasher
dc8b6dbbfa
Remove unnecessary namespace usage
2024-07-06 10:33:53 -06:00
Chris Thrasher
88646246fc
Consolidate getErrorString
functions
2024-07-06 09:09:09 -06:00
Chris Thrasher
ee036b064c
Modernize management of Udev pointers
2024-07-05 22:33:31 -06:00
Chris Thrasher
f911d01e01
Use lowercase literal suffixes
2024-07-04 16:28:57 -06:00
Lukas Dürrenberger
121fa9cf74
Revert "Simplify/optimize sf::AudioResource
implementation"
...
This reverts commit cede2def8b
as it's
still possible to force a wrong destruction order.
2024-07-04 22:05:28 +02:00
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
binary1248
742beeabfe
Added assert that a texture is valid when attempting to bind it.
2024-06-27 15:48:45 -06:00