Commit Graph

3400 Commits

Author SHA1 Message Date
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
1a40f01957 Replaced SoundFileReaderWav implementation with miniaudio (dr_)wav decoder. 2024-05-17 16:32:42 +02:00
binary1248
002b8953fa Added support for user defined sound effect implementations. 2024-05-16 21:52:16 -06:00
Chris Thrasher
c89c32d7ba Allow more GitHub Actions runners to run the audio tests. 2024-05-16 15:14:44 -06:00
Lukas Dürrenberger
6766268f36 Use the SoundSource derived type specific status 2024-05-16 13:41:05 -06:00
Chris Thrasher
9722fb3724 Add tests for Audio module types 2024-05-16 12:06:21 -06:00
Vittorio Romeo
a61eb6aeef Do not use 'sf::err' in examples 2024-05-14 21:08:09 -06:00
Vittorio Romeo
353cd9717f Add <array> to PCH.hpp 2024-05-14 18:04:27 -06:00
Chris Thrasher
c0f9c78308 Remove redundant cache var assignment 2024-05-14 16:51:23 -06:00
vittorioromeo
884206ce0c Store angles internally as radians 2024-05-14 13:07:40 -06:00
binary1248
3345796907 Fall back to using the NULL audio backend if the default backends don't provide any devices. 2024-05-14 20:04:04 +02:00
Chris Thrasher
593c4fe173 Replace C arrays with std::array 2024-05-14 12:47:19 -05:00
Lukas Dürrenberger
b49dfebcfd
Merge branch '2.6.x' into master 2024-05-14 09:58:17 +02: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
Chris Thrasher
8c9fa1087e Remove misplaced comma 2024-05-13 00:44:27 -05:00
Chris Thrasher
742dffa0de Remove reference to old API
0785093 changed the API to use a vector instead of two scalar values
2024-05-13 00:44:27 -05:00
Chris Thrasher
b9b8366a45 Fix run-on sentences 2024-05-13 00:44:27 -05:00
Chris Thrasher
31503844cd Remove unnecessary sf:: namespace usage 2024-05-13 00:43:58 -05:00
Lukas Dürrenberger
1a4003fcc0 Add clarification about the RenderTexture state after creation 2024-05-12 19:35:14 -05:00
alexv
b79d5553fd Move the CPack configuration after SFML_CONFIGURE_EXTRAS 2024-05-09 16:07:49 +00:00
kimci86
b7e1a259f0 Update icons urls and color 2024-05-09 09:41:07 +02:00
kimci86
0d6a5f7fbe Make the new doxygen clipboard feature work and look good
CSS rules copied from doxygen default stylesheet generated with:
    doxygen -w html new_header.html new_footer.html new_stylesheet.css
2024-05-09 09:41:07 +02:00
kimci86
7f27cad9ae Fix search.js "Uncaught ReferenceError: Cookie is not defined" 2024-05-09 09:41:07 +02:00
Lukas Dürrenberger
66c5fae7c1 Fix XHTML Doxygen docs inconsistencies 2024-05-09 09:41:07 +02:00
Lukas Dürrenberger
891e567346 Fix missing namespace and file references 2024-05-09 09:41:07 +02:00
Lukas Dürrenberger
8d88e633e5 Update doxygen input file for doxygen 1.10.0 2024-05-09 09:41:07 +02:00
Lukas Dürrenberger
d95f99acf1 Fix configuration conflict in doxygen 1.10.0 2024-05-09 09:41:07 +02:00
Chris Thrasher
0777ce5ead Update to Catch2 v3.6.0 2024-05-07 17:02:47 +00:00
vittorioromeo
415668cb82 Update 'stb_image' to 2.29 2024-05-07 09:52:29 +02:00
Chris Thrasher
67fae8a301 Work around stalled Android CI job 2024-05-07 08:13:34 +02:00
vittorioromeo
ae269e1149 Make 'Event.inl' self-contained 2024-05-06 04:44:28 +00:00
Chris Thrasher
2d9cc54242 Work around failing network test on Android x86_64 API 24 2024-05-06 03:16:05 +00:00
binary1248
2386653bd3 Add GitHub actions support for running x86, x86_64 and arm64-v8a Android tests using an Android emulator. 2024-05-04 17:22:12 +00:00
binary1248
4daeac6459 Fall back to stdio when performing file input on Android without an activity. 2024-05-04 17:22:12 +00: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
Andrei
9534c000f6 Added missing \param field from sf::Keyboard::getDescription(Scancode code) in docs 2024-05-03 07:25:50 +00:00
Chris Thrasher
b7c526efc2 Fix API documentation bugs 2024-05-03 01:36:55 +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
Andrei
b447d41c6e Updated readme to point to SFML 2.6.1 2024-04-30 00:46:27 +00:00
Chris Thrasher
73126c93a3 Use std::optional to express functions that may not return a value 2024-04-29 19:09:39 +00:00
kimci86
71395e746e Define SoundStream::NoLoop as constexpr instead of enum 2024-04-28 16:36:57 +00:00
kimci86
bdd348c142 Make Sound::Status a scoped enumeration 2024-04-28 16:36:57 +00:00
Chris Thrasher
04c36fdd1a Improve const correctness 2024-04-27 23:33:52 +00:00
Chris Thrasher
1d95c65526 Prohibit use of malloc 2024-04-27 21:46:06 +00:00
Chris Thrasher
eb9c84309f Unify TODO comment style for better searchability
Continuing precedent set in b199cc6
2024-04-27 19:21:14 +00:00
Chris Thrasher
249caa2fb2 Require that variables are initialized 2024-04-27 19:20:52 +00:00