Mario Liebisch
291e6248d6
Update CMakePresets and CMakeLists.txt
...
These changes ensure Visual Studio allows both Debug and Release builds,
while also supporting direct debugging of the examples.
If `CMAKE_BUILD_TYPE` is set in any way, Visual Studio will disable all
targets in the UI (and in generally have a really good tendency to bug
out).
2024-06-07 13:22:55 +02:00
Chris Thrasher
24dc6b5ea9
Reduce the scope of variables
2024-06-04 01:54:09 -06:00
Chris Thrasher
2c443d143b
Assume X11 UTF-8 support is present
2024-06-04 01:14:06 -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
Chris Thrasher
91956d152d
Remove unnecessary scope
2024-05-31 15:23:22 -06:00
Chris Thrasher
86682d99dd
Unify Vulkan implementations under one header
2024-05-31 13:14:54 -06:00
binary1248
01e4f3f783
Perform sanity checks on OpenGL extensions to make sure the required entry points are actually available.
2024-05-31 09:19:43 -06:00
binary1248
59414d5bfd
Restore Shader and Island examples back to equivalent pre-API-change functionality.
2024-05-30 12:53:11 -06:00
Chris Thrasher
7987d3cedc
Assume XrandR version >=1.3
...
As far as I can tell XrandR 1.3 was released in ~2009. It's safe to
assume anyone using SFML 3 or newer will have this version installed.
2024-05-29 11:36:01 -06:00
Chris Thrasher
ac620900ac
Use more type safe interfaces
2024-05-29 12:20:25 +02:00
Chris Thrasher
4fbd1d34b1
Use delegating constructor
2024-05-29 12:19:05 +02: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
4b1751321a
Reduce pointer usage
2024-05-27 09:06:30 -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
Chris Thrasher
4f28851ee6
Fix outdated template code
2024-05-26 07:35:30 -06:00
vittorioromeo
e53f4d62af
Turn 'ContextSettings' into an aggregate and update usages
2024-05-25 00:56:37 +02:00
Chris Thrasher
ad03953795
Use std::
namespace
2024-05-24 10:44:46 -06:00
Chris Thrasher
b583eaf160
Replace const char*
with std::string_view
2024-05-24 12:01:27 +02:00
copyrat90
51676b65db
Fix missing include of <algorithm>
2024-05-23 23:57:05 -06:00
Chris Thrasher
51a707628b
Simplify implementations of types without an empty state
...
Now that these types have no default empty state, we can make
assumptions about certain data members which allow us to skip doing
certain checks.
2024-05-23 20:04:57 -06: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
eb4170796a
Fix geometry shader example
...
This example is optional since it may be skipped on hardware where
geometry shaders are not supported. The way I rewrote it in 7234fc1
resulted in the shader still being attempted to be loaded even when
geometry shaders were not supported leading to the whole program
crashing.
My bad.
2024-05-23 14:34:57 -06:00
Chris Thrasher
fdcd899d2b
Remove default empty state of sf::RenderTexture
2024-05-22 23:37:42 -06:00
Chris Thrasher
6f459bb14c
Remove redundant parentheses
2024-05-22 20:36:55 -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
9f71ad3b24
Upgrade clang-tidy for Linux jobs
2024-05-21 01:06:16 -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
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