Commit Graph

3167 Commits

Author SHA1 Message Date
Chris Thrasher
48071ed335 Remove some references to SFML 2
Mentioning the version number isn't always necessary so I removed
some instances of the version number to prevent us redoing this work
for new major releases going forward.
2023-11-29 17:37:10 -07:00
Chris Thrasher
c3f69e5d64 Remove leading newlines 2023-11-29 15:54:38 -07:00
Chris Thrasher
c89c5eae69 Replace raw loops with standard algorithm 2023-11-28 09:41:28 -07:00
Chris Thrasher
c6919e28fc Prefer std::optional return types over output parameters 2023-11-28 09:37:03 -07:00
Chris Thrasher
fe0785769e Ensure consistent behavior between Android and other OSes
Android never checked if m_file was null and thus would invoke UB
upon calling certain functions whereas all other OSes would return
a defined value.
2023-11-27 17:22:15 -07:00
Chris Thrasher
9b751899eb Add tests for sf::InputSoundFile 2023-11-27 10:49:51 -05:00
Chris Thrasher
35d82b7847 Simplify implementation of sf::InputSoundFile::close 2023-11-27 10:49:51 -05:00
Chris Thrasher
0a1090c89d Let compiler define default constructors 2023-11-27 10:49:51 -05:00
Chris Thrasher
95465a3359 Modernize memory management of FLAC pointers 2023-11-26 23:30:19 -05:00
Chris Thrasher
f3341359eb Add tests for sf::SoundFileFactory 2023-11-26 19:53:07 -05:00
Chris Thrasher
2fcdec5153 Remove unnecessary reinterpret_casts 2023-11-26 18:08:02 -05:00
Chris Thrasher
fca84e4011 Implicitly define default constructors 2023-11-20 21:31:40 -07:00
Chris Thrasher
27acbab3d9 Use sf::Rect<T>::getCenter() in more places 2023-11-20 16:01:36 -07:00
Chris Thrasher
24a935b623 Remove unnecessary preprocessor conditionals
The build system handles whether or not these files are compiled.
We don't need the preprocessor to do that.
2023-11-20 16:00:27 -07:00
Chris Thrasher
1699105377 Remove unused CMake variable 2023-11-20 16:00:09 -07:00
Chris Thrasher
1e4cdf89b6 Use std::array to reduce code duplication
std::array lets us have a single source of truth for array size
rather than needing separate constants or magic numbers that have
to stay in sync with the underlying array.
2023-11-20 12:14:21 -07:00
binary1248
5a2f30c5ae Added support for scissor testing. 2023-11-20 11:01:33 -07:00
Chris Thrasher
08eca7c9a4 Default all sf::Font special member functions 2023-11-18 20:52:17 -07:00
Chris Thrasher
c1f92ed020 Remove compatibility measures with FindSFML.cmake 2023-11-16 13:40:12 -07:00
Chris Thrasher
dd706d6aed Remove leading newlines 2023-11-16 12:02:28 -07:00
Chris Thrasher
daa1efcf05
Add tests for various loadFromStream() functions 2023-11-16 10:03:29 -07:00
Bruno Van de Velde
0da4382d6c Android example no longer needs to search Audio and Network modules as they are no longer being linked 2023-11-15 17:29:42 -07:00
Bruno Van de Velde
18dfcedbd9 Setting ANDROID_ABI has no effect, the user should specify CMAKE_ANDROID_ARCH_ABI to select the ABI 2023-11-15 17:29:42 -07:00
Bruno Van de Velde
e0f76af21f Removed the warning for not being able to select the STL for Tegra-Android, as libc++ is the only STL left 2023-11-15 17:29:42 -07:00
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
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
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
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