Commit Graph

3463 Commits

Author SHA1 Message Date
Chris Thrasher
f443a9529b Take advantage of clang-format-14 features 2023-07-08 14:39:24 -06:00
Chris Thrasher
20f34d38fd Add tests for sf::Font 2023-07-07 13:21:56 -06:00
Lukas Dürrenberger
0e06af987d
Merge branch '2.6.x' into master 2023-07-07 21:00:28 +02:00
Chris Thrasher
f65c0058b9
Merge branch '2.6.x' into feature/backmerge 2023-07-07 12:05:02 -06:00
Lukas Dürrenberger
25920bb6d7 Ensure that the OpenGL extensions have been loaded 2023-07-04 23:53:26 +02:00
Lukas Dürrenberger
af5edaab91 Remove brew update until GitHub fixes the issue 2023-07-04 10:45:15 +02:00
vittorioromeo
5f73a1514d Split 'System/Utils' into header and source 2023-07-03 13:54:46 -06:00
Erik Bolumburu
a143da5f52 Added assert messages to Vector3 functions 2023-06-30 11:13:50 +02:00
Erik Bolumburu
b8ca0f6523 Added asserts for cwiseDiv() 2023-06-28 22:34:20 +02:00
Erik Bolumburu
867d878c1c Added messages to Vector2 function asserts.
Added assert messages to asserts in the Vector2 functions from SFML3 to make it more clear exactly what the comparison is between a value and the Vector2 constructor is achieving.
2023-06-28 22:34:20 +02:00
Chris Thrasher
27542637aa Modernize memory management of X11 types 2023-06-28 10:05:15 -06:00
Chris Thrasher
a19f996a11 Remove C++11 header 2023-06-27 09:54:43 -06:00
Shane Whitmire
b391be2316 Make glyph a struct
This glyph class should most definetely be a struct. There aren't any
functions into it. This PR is more of a philosophy question than
anything else. I think we should make an argument for and against here
too.
2023-06-27 12:34:27 +02:00
Chris Thrasher
1f23f7818e Don't override CMAKE_MODULE_PATH
The Conan package for SFML has to fix this so apparently it's a
real world problem.
2023-06-23 10:14:21 -06:00
Chris Thrasher
a8e901e754 Assert that a video mode exists before trying to use it
This converts a segfault into a more predictable failure, at least
in debug builds.
2023-06-22 16:54:41 -06:00
Chris Thrasher
e9e25d52bc Loosen restrictions on unrecognized compilers
A core tenet of CMake is the idea that you can use any valid C++
compiler. By enumerating all supported compilers and emitting and
hard error when an unrecognized compiler is detected, we are violating
that tenet.

Relaxing this message from a fatal error to merely a warning continues
to communicate to users that their build may not succeed but it leaves
the door open for the build to potential succeed if the compiler meets
all of our requirements.
2023-06-22 16:26:26 -06:00
Chris Thrasher
a0c10b8dfb Update state of developoment in README 2023-06-21 15:11:44 -06:00
Lukas Dürrenberger
93cc99b8df
Merge '2.6.x' to master 2023-06-21 19:40:23 +02:00
Lukas Dürrenberger
48fde44047 Merge branch '2.6.x' into master 2023-06-21 13:31:16 +02:00
Lukas Dürrenberger
11b73743c4 Update changelog with all changes for 2.6.0
Highlights:
- Support for Scancode
- Create windows without OpenGL context
- Create windows with a Vulkan context
- SFML supports macOS arm64 also known as M1 chipset
- Unit testing foundation
2023-06-20 23:44:57 +02:00
Lukas Dürrenberger
f47403ab4d Update version number to 2.6.0 2023-06-20 23:44:57 +02:00
Lukas Dürrenberger
8a8348ebeb Replace C++11 with SFML int types 2023-06-20 07:38:54 +02:00
abd-ennour
7af8719a49 Add missing "#pragma once" directive to src/SFML/Network/SocketImpl.hpp. 2023-06-03 15:28:38 -06:00
MetGang
8835f42589 Make sf::Clock pausable 2023-06-02 11:32:04 -06:00
binary1248
b39be46db0 Moved most variables in sfml-graphics, GlResource and GlContext out of namespace scope. 2023-06-02 10:22:48 -06:00
abd-ennour
6a3e44bc4d Added missing doxygen tag \return in a function "[[nodiscard]] bool open(sf::InputStream& stream, Info& info) override;" and missing comments "// namespace <namespace>" in Window/WindowBase.cpp and ALCheck.cpp. 2023-06-02 16:45:46 +02:00
Chris Thrasher
da8614cb2f Test MinGW build in CI 2023-05-31 10:26:50 -06:00
Chris Thrasher
53e2fab582 Prefer named colors 2023-05-25 17:08:42 -06:00
Chris Thrasher
865a50899c Test for correct network ordering of packets 2023-05-22 08:51:37 -06:00
Chris Thrasher
e5b85fc9b7 Remove workaround for supporting old versions of Visual Studio 2023-05-22 08:50:28 -06:00
Chris Thrasher
d131beb0fd Fix misspellings
I used the Python tool codespell to find these
2023-05-21 14:37:46 -06:00
Chris Thrasher
fe2ca0b82e Fix clang-tidy-16 failures 2023-05-21 11:59:52 -06:00
Chris Thrasher
33030e94d9 Use std::byte 2023-05-21 02:21:44 -06:00
Chris Thrasher
48a37230d4 Fix typo in log message 2023-05-20 18:32:14 -06:00
Chris Thrasher
e6cc75f8a6 Fix how we specify CATCH_CONFIG_FAST_COMPILE
Fixes a warning that was emitted about how we were doing this wrong
after CMake policy 0077 was added.
2023-05-18 10:43:58 -06:00
Shane Whitmire
a08cdadcb1 Fix 2.6.x failing to compile on gcc 13.1.1 because of missing headers
I was getting this error until I added this header:
/home/dogunbound/SFML/SFML/src/SFML/Audio/SoundFileReaderMp3.cpp:68:23:
error: ‘uint64_t’ is not a member of ‘std’;

This is a fix
2023-05-15 20:41:01 -06:00
Ted Lyngmo
9855552f64 Add sf::Shape::getGeometricCenter()
This adds

    virtual Vector2f getGeometricCenter() const = 0;

Signed-off-by: Ted Lyngmo <ted@lyncon.se>
2023-05-15 16:13:39 -06:00
Ted Lyngmo
f95d159711 Fix build failure when using g++ (GCC) 13.1.1
This fixes #2550

Signed-off-by: Ted Lyngmo <ted@lyncon.se>
2023-05-15 10:34:34 -06:00
Chris Thrasher
e4db2b4de6 Manage AAsett* with std::unique_ptr 2023-05-14 14:35:49 -06:00
Chris Thrasher
1e9161b57e Use C++ headers 2023-05-13 18:55:51 -06:00
Chris Thrasher
a5135271cb Remove reference to deleted file 2023-05-13 18:08:54 -06:00
Chris Thrasher
f6dfc04938 Switch to Catch2 2023-05-13 12:38:11 -06:00
Chris Thrasher
b14d0b47e6 Fix broken sf::swap overloads 2023-05-13 12:20:44 -06:00
Chris Thrasher
98a59d62c7 Upgrade to CMake 3.22 2023-05-13 12:09:09 -06:00
Chris Thrasher
27249d42ed Add sf::WindowBase::set{Min|Max}imumSize()
Co-authored-by: Shane Whitmire <dogunbound5@gmail.com>
Co-authored-by: michael.david.howard@outlook.com <michael.david.howard@outlook.com>
2023-05-12 14:36:06 -06:00
JS Fauteux
c45f6378d6 Remove Codecov binary GPG check
This started randomly failing on macOS one day. We're not sure why
it started failing but we think it's relatively unimportant so we
can get rid of it.
2023-05-11 17:29:31 -06:00
Chris Thrasher
fb1cfdc48d Add misc-const-correctness clang-tidy check 2023-05-04 16:22:03 -06:00
Chris Thrasher
29863b14a5 Remove default sf::Sprite constructor 2023-05-03 13:33:42 -06:00
Chris Thrasher
839ad6cf70 Emit resize event any time size changes
Fixes bug where resize events only got triggered upon manual window
resizing OR if one called setSize with a height that was too large.
2023-04-30 17:52:27 -06:00
BlackyDrum
c2e065b9bc Fix typo in 'Http.hpp' 2023-04-29 16:34:24 -06:00