Commit Graph

3586 Commits

Author SHA1 Message Date
vittorioromeo
7cec342b2b DRY shader creation via helper lambda 2024-09-26 16:33:05 -06:00
vittorioromeo
a9c56da99e Fix island example freeze when submitting work too quickly 2024-09-26 18:04:32 +02:00
Chris Thrasher
d2ca038e2a Actually let's not 2024-09-25 20:37:43 -06:00
Chris Thrasher
9d1e5d9acf Prevent reading from an uninitialized character buffer
If `GLEXT_glGetInfoLog` fails then `log` is left unchanged which
can lead to a reading from an uninitialized buffer on the following
line. Initializing the buffer ensures this never happens. While I
was touching this code I elected to switch to `std::array` as well
since SFML has made previous efforts to stop using C-style arrays
and I wanted to continue that effort.
2024-09-25 19:34:16 -06:00
Zombieschannel
40fc524b8d InputImpl.hpp now has Android implementation 2024-09-25 17:15:16 -06:00
ZXShady
0d33ddeccf Change glCheck macro to be usable as an expression 2024-09-25 09:47:36 -06:00
Chris Thrasher
c8cf84511d Fix clang-tidy-19 errors 2024-09-24 18:42:31 -06:00
Vittorio Romeo
1f11e91bed Avoid unnecessary assignment in Text::findCharacterPos 2024-09-22 14:20:25 +02:00
Lukas Dürrenberger
02fe28f35b Fix regex for SFML_USE_STATIC_STD_LIBS 2024-09-19 21:21:33 +02:00
kimci86
267bbe35b8 Simplify island example using vectors and extracting repetitive code 2024-09-17 22:38:51 +02:00
Lorenzooone
5545df7290 Use lazy loading for keyboard scancodes on macos (backport) 2024-09-16 17:41:41 -04:00
Lorenzooone
6bcc3414fc Use lazy loading for keyboard scancodes on macos 2024-09-16 16:35:12 -04:00
Vittorio Romeo
20b048fb08 Replace swap with move where appropriate 2024-09-16 13:29:52 -04:00
Lukas Dürrenberger
6591c59504 Add window create functions without style specifier
This brings the create() functions inline with the constructor overloads
for WindowBase, Window, and RenderWindow
2024-09-16 12:05:59 -04:00
Vittorio Romeo
e2ea1d8a7c Simplify and extend [E]GLCheck implementation 2024-09-16 12:02:54 -04:00
Lukas Dürrenberger
2dd72be036 Fix Windows ARM64 support with regards to Mesa 3D
- Only fail the Mesa 3D arch check, if it's been enabled
- Add a cross-compilation CI job for Windows ARM64
- Fix ARM64 architecture detection for the Ninja generator
2024-09-14 13:44:34 +02:00
Lukas Dürrenberger
8ff95f7a5e Add the missing ChannelMap to the example code 2024-09-14 09:11:16 +02:00
Lukas Dürrenberger
2116a3ba85 Extend the migration guide regarding the sf::Text constructor change 2024-09-12 17:54:34 -06:00
Chris Thrasher
eeb43e4747 Use sf::Vector3f to simplify Vulkan example 2024-09-12 15:18:44 -06:00
Chris Thrasher
44b5237148 Fix out of date documentation code 2024-09-12 14:37:07 -06:00
Chris Thrasher
7eab4606e0 Use standard CMake variables for Doxygen paths 2024-09-12 12:21:09 -06:00
Chris Thrasher
acc87dfd32 Simplify how Doxygen CMake variables are set 2024-09-12 12:21:09 -06:00
Vittorio Romeo
9c3fcd72d0 Use gender-neutral language in comments 2024-09-12 17:37:10 +02:00
Lukas Dürrenberger
016e201d17 Use backticks for SFML types in doc comments 2024-09-11 16:02:01 -06:00
Chris Thrasher
5e56f01612 Use macOS to build documentation 2024-09-11 16:02:01 -06:00
Chris Thrasher
ab109cd3cd Use ON and OFF for CMake booleans
CMake supports a number of strings for truthy and falsey values.
ON/OFF and TRUE/FALSE are the most popular but 1/0 is also supported.
This is mostly a style choice but I'm inclined to believe that ON/OFF
is the most popular option and I'm generally in favor of style
choices that better align with the community at large.
2024-09-11 14:36:13 -06:00
Chris Thrasher
157d4d9163 Stop using deprecated DOXYGEN_EXECUTABLE variable
This was deprecated in CMake 3.9.

See https://cmake.org/cmake/help/v3.22/module/FindDoxygen.html#variable:DOXYGEN_EXECUTABLE
2024-09-11 13:48:12 -06:00
Chris Thrasher
7fdce1235e Link to migration guide from changelog 2024-09-10 12:03:01 -06:00
Chris Thrasher
54c7edb2a0 Update v2.6.2 changelog 2024-09-10 11:27:31 -06:00
Chris Thrasher
2b4a72ee06 Fix more outdated references to Mac OS X 2024-09-09 23:42:26 -06:00
Lukas Dürrenberger
9f52cfec39 Change spelling of anti-aliasing 2024-09-09 18:37:00 -06:00
Lukas Dürrenberger
265a0cb03f Rename Vector2 & Vector3 functions to better fit the naming convention 2024-09-08 12:09:32 -06:00
Chris Thrasher
61d78105e3 Assert against C-style string arguments being null 2024-09-05 22:02:55 -06:00
Lorenzooone
e16f895057 Add missing openal name 2024-09-01 22:58:41 -06:00
Chris Thrasher
74dfd76b25 Pass sf::Vector2<T> by value in test code 2024-09-01 17:51:54 +01:00
Chris Thrasher
73e5abe583 Fix typo in migration guide 2024-09-01 08:59:58 -06:00
Chris Thrasher
b55327b5b9 Remove unused header 2024-08-31 16:46:47 -06:00
Chris Thrasher
a7f7026804 Fix Doxygen warning 2024-08-31 12:02:59 -06:00
Chris Thrasher
8ed98e337b Treat Doxygen warnings as errors 2024-08-31 12:02:59 -06:00
ZXShady
44339c3d67 Fix event handling stack corruption on MSVC 2024-08-30 14:52:48 -06:00
Chris Thrasher
27943ea774 Disallow constructing sf::String from std::nullptr_t 2024-08-30 09:55:55 -06:00
Chris Thrasher
705aa7e891 Add migration guide 2024-08-30 08:41:24 -06:00
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