Commit Graph

3596 Commits

Author SHA1 Message Date
Bruno Van de Velde
4c0b0b8397 Don't check the CMAKE_ANDROID_API version. It was replaced with CMAKE_SYSTEM_VERSION and we can use versions older than 26 with the current NDK 2023-11-15 17:29:42 -07:00
Bruno Van de Velde
fcf9f78a81 Use position-independent code on Android even when linking statically 2023-11-15 17:29:42 -07:00
Bruno Van de Velde
f582f05365 Don't search for OpenGL when linking statically on Android 2023-11-15 17:29:42 -07:00
Bruno Van de Velde
025a9ddc53 Removed sfml-activity which is no longer needed to bootstrap Android applications 2023-11-15 17:29:42 -07:00
Chris Thrasher
ec50a7332b Fix sf::Rect docs 2023-11-15 15:58:01 -07:00
Chris Thrasher
9cb4a68c9a Test class templates with multiple template types 2023-11-15 12:07:31 -07:00
Lukas Dürrenberger
c7d1112234 Abort looping in SoundStream::streamData if an OpenAL error occurs that would have caused it to never terminate.
Backports #2026 and fixes #1831 for SFML 2
2023-11-15 10:55:02 -07:00
Chris Thrasher
d3a79e6282 Add sf::Rect<T>::getCenter() 2023-11-15 09:30:01 -07:00
Chris Thrasher
0d4c34cf9b Add tests for sf::Image::loadFromMemory 2023-11-15 10:55:07 +01:00
Chris Thrasher
1f345d7d25 Fix incorrect variable expansion 2023-11-15 10:54:26 +01:00
Bruno Van de Velde
4665d5554a Build the android example in CI 2023-11-14 16:04:30 -07:00
Bruno Van de Velde
4d65844978 Modernized android example
- Replaced ndk-build with CMake
- Updated Groovy DSL (.gradle files) to Kotlin DSL (.gradle.kts files)
- Updated Android Gradle plugin from 3.0 to 7.4
- Config file now targets a more recent Android SDK (and NDK)
- Remove deprecated settings from AndroidManifest
2023-11-14 16:04:30 -07:00
Bruno Van de Velde
cf3dfb72a2 Removed support for ndk-build on Android (in favor of CMake) 2023-11-14 16:04:30 -07:00
Chris Thrasher
c20ab7d6d8 Ensure GNUInstallDirs cache vars are included before first used 2023-11-14 07:46:41 -07:00
binary1248
2495a9ba67 Don't enable/disable non-existant GL_FRAMEBUFFER_SRGB on OpenGL ES. 2023-11-13 09:08:20 +01:00
binary1248
5b60905689 Added missing VS_DEBUGGER_WORKING_DIRECTORY to sfml_add_test macro since tests now rely on loading file resources. 2023-11-12 20:36:30 +01:00
binary1248
116c101a77 Fixed window tests not accepting a context with better than requested settings. 2023-11-12 10:35:48 -07:00
Chris Thrasher
b16114fa23 Replace std::memcpy with a more expressive alternative 2023-11-10 00:24:51 -07:00
Chris Thrasher
f588589089 Use inline to define constant in header 2023-11-10 00:24:39 -07:00
Chris Thrasher
dcfccbec6e Remove declaration of unimplemented function 2023-11-10 00:22:35 -07:00
Chris Thrasher
39ba64cfc6 Upgrade to Android NDK r24 2023-11-08 17:13:55 -07:00
binary1248
4fce7e4991 Embed MSVC debugging information when building using a compiler launcher in order to allow ccache to cache compiler output when running a CI workflow. 2023-11-07 10:31:00 -07:00
Chris Thrasher
9b223b45a5 Remove references to C compilers 2023-11-06 11:57:47 -07:00
Chris Thrasher
d672b3504e Add more tests for sf::Shape 2023-11-05 15:46:49 -07:00
Chris Thrasher
133bcda6cb Add more readability-identifier-naming rules 2023-11-05 15:05:25 -07:00
binary1248
2a8a01ca6c Perform the majority of GitHub Actions workflow MSVC building using Ninja with the exception of ClangCL+MSBuild. 2023-11-05 21:53:58 +01:00
binary1248
ea6cf002b6 Added support for running the GitHub actions workflow using CCache. 2023-11-04 00:37:18 -06:00
Lukas Dürrenberger
4faff85629
Merge 2.6.x to master 2023-11-01 23:25:16 +01:00
Chris Thrasher
0b3de0d8e2
Merge branch '2.6.x' to master 2023-11-01 11:08:57 -06:00
Chris Thrasher
7c8d1b5332 Use more sf::Vector operations
When dealing with calculations that are fundamentally two dimensional
it's helpful to use a 2D data type as much as possible rather than
decomposing the calculations into x and y components. The more we use
vector operations the better chance we have of easiliy reasoning about
what the code is doing.
2023-10-31 19:45:13 -06:00
André Polomat
9a4929c844 Fixed sockets not closing before being moved into 2023-10-31 19:43:40 -06:00
Chris Thrasher
7e927c488b Manage memory with std::unique_ptr 2023-10-31 19:37:59 -06:00
Chris Thrasher
4ec85b932e Unify SocketImpl headers
The two headers only differed in their inclusions and two type
aliases. It's easier to use the preprocessor than the maintain two
nearly identical files.
2023-10-31 17:09:20 -06:00
binary1248
8c9c5c5b99 Added missing SFML_USE_STATIC_STD_LIBS checks to CMake configuration. 2023-10-31 23:22:28 +01:00
Chris Thrasher
5d0996906b Manually inline all of sf::priv::ImageLoader
This layer of indirection was unnecessary. All of its functions
were only used once somewhere inside of Image.cpp. The code is shorter
and simpler and easier to reason about if we put the implementations
of these functions directly in Image.cpp.
2023-10-31 15:54:07 -06:00
Chris Thrasher
13dd9f59cf Manage memory with higher level constructs 2023-10-31 15:05:26 -06:00
Chris Thrasher
69ea0cd863 Update changelog 2023-10-29 18:03:26 -06:00
Chris Thrasher
7f57bb4fe6 Update version to 2.6.1 2023-10-29 18:03:26 -06:00
Chris Thrasher
5cf740fd93 Remove output parameter from sf::Image::saveToMemory 2023-10-28 17:58:21 -06:00
Chris Thrasher
0fcd1dd0f1 Add tests for sf::Image::loadFromFile failure 2023-10-27 19:21:36 -06:00
Chris Thrasher
fd2c42c7d1 Add tests for sf::Image::saveToMemory 2023-10-27 19:21:36 -06:00
Chris Thrasher
9a8ca3227f Add UBsan to CI 2023-10-27 16:36:38 -06:00
André Polomat
014366b84a Updated the test for the maximum antialiasing level of render texture
it returns 32 on my system, 64 should still be a reasonable value
2023-10-27 12:46:27 -06:00
Chris Thrasher
0512748fce Run clang-tidy on OpenGL ES codepaths 2023-10-26 22:11:59 -06:00
Chris Thrasher
e2e0f36d98 Fix warnings in Linux OpenGL ES codepaths
Because CI didn't cover this code we didn't know there were
warnings in these codepaths to address.

Not sure why GCC's -Wduplicated-branches is being emitted or how
exactly to fix it. It's easier to simply ignore it in this one
particular file.
2023-10-24 08:44:42 -05:00
Lukas Dürrenberger
e45628e2eb Add a support file 2023-10-23 11:41:04 -05:00
Lukas Dürrenberger
7d0fa3c3fa Add new versions of the issue templates 2023-10-23 11:41:04 -05:00
Lukas Dürrenberger
326ccf8f81 Ignore description text in the PR template 2023-10-23 11:41:04 -05:00
Chris Thrasher
2cbcd60a45 Remove redundant link library
Clang was warning about this

  ld: warning: ignoring duplicate libraries: 'lib/libsfml-system-s-d.a'
2023-10-23 13:07:27 +02:00
Chris Thrasher
6fa330d077 Prefer C++ standard lib over C standard lib 2023-10-22 22:57:04 -05:00