Commit Graph

3622 Commits

Author SHA1 Message Date
Bruno Van de Velde
6b9f3e36c2 Use a relative install path for pkgconfig files
This allows the pkgconfig install path to still be correct when changing the CMAKE_INSTALL_PREFIX after the first cmake run.
2024-12-20 21:27:13 +00:00
Lukas Dürrenberger
6f8655590e Add limitation info regarding setMouseCursorVisible 2024-12-19 19:44:28 -06:00
Lukas Dürrenberger
c4d4e8f62a Fix Channel Map size in documentation 2024-12-19 19:44:28 -06:00
Lukas Dürrenberger
03812a545d Add additional documentation regarding channel maps 2024-12-14 16:33:30 -07:00
Lukas Dürrenberger
f734dec6fb Add migration guide note regarding channel maps 2024-12-14 15:55:04 -07:00
Lukas Dürrenberger
2e8dc0f94f Patch out include and pkgconfig files for external libraries 2024-12-14 21:59:28 +01:00
Chris Thrasher
cb38877a8c Ensure current desktop mode is also a fullscreen mode
Port of PR #3331
2024-12-13 14:22:47 -07:00
Lukas Dürrenberger
71a8ac7e70 Fix naming of PDB files for sfml-main 2024-12-13 20:35:19 +01:00
Lukas Dürrenberger
e103eb1272 Use new HTML Help flag for the install target 2024-12-11 17:22:53 +01:00
James Cowgill
ccda2659d4 Store IpAddress::m_address in host byte order
This changes the ordering of `IpAddress` objects to be lexographical
which is more intuitive, and it fixes unit test failures on big-endian
systems.
2024-12-08 23:20:43 +01:00
James Cowgill
34ec2795a1 Fix Ogg ov_read call on big-endian systems
In the `ov_read` API, the fouth parameter says what endianness the
samples should be returned in - `0` for little-endian, and `1` for
big-endian. SFML wants samples in the host endian, so we need to set
this parameter to 1 on big-endian systems.

Fixes a unit test failure on big-endian systems.
2024-12-08 15:08:13 -07:00
Lukas Dürrenberger
f930cbc562 Remove additional, obsolete extlibs 2024-12-06 13:02:30 +01:00
James Cowgill
e1bb69b3b5 Fix segfault if XOpenIM fails
If `XOpenIM` fails we will store a `nullptr` into `sharedXIM`. When
the shared `XIM` is destroyed we call the deleter `XCloseIM` on the
`nullptr` which segfaults.

Fix this by adding a new `closeIM` helper function which checks for
null first.
2024-12-05 08:48:44 +01:00
James Cowgill
ad70442246 Do not cache atom name if XInternAtom fails
If `XInternAtom` is called with `onlyIfExists` set, then it can
legitimately return `None`. We should not cache this value because it
might change in the future.

This bug can sometimes be triggered because we use
`getAtom("UTF8_STRING", true)` and `getAtom("UTF8_STRING")`. If the
first call caches `None` because the atom didn't exist, then the
second call could return `None` instead of creating a new atom like it
should.
2024-12-05 08:48:44 +01:00
Chris Thrasher
f88b768ba6 Ensure a C compiler is found during configuration
In 248fd6d we added a lot of 3rd party C source files. That means
building SFML has the additional requirement of needing a C compiler.
I would expect that all of this would be properly handled by those
upstream projects properly telling CMake to find a C compiler but
apparently that is not the case.

By removing `LANGUAGES CXX` we are telling CMake to fall back to its
default behavior to find a C and C++ compiler.
2024-12-05 08:46:09 +01:00
Lukas Dürrenberger
0d05ed739c Add comment regarding input monitoring access on macOS 2024-12-05 08:38:16 +01:00
binary1248
248fd6dda8 Build dependency libraries instead of bundling pre-built binaries. 2024-12-04 23:52:24 +01:00
Chris Thrasher
ae87def93e Use char32_t for UTF-32 characters
This is probably an oversight from https://github.com/SFML/SFML/pull/2480
2024-11-30 18:28:34 -05:00
Chris Thrasher
51e38f51d4 Add tests for sf::Utf 2024-11-28 17:57:05 -05:00
Chris Thrasher
574d8295dd Fix bug in sf::Utf32::count 2024-11-27 08:39:39 -07:00
Chris Thrasher
1a2f566f12 Update migration guide 2024-11-25 15:02:11 -07:00
Chris Thrasher
97541c6244 Add more tests for sf::SoundStream 2024-11-25 11:50:43 -07:00
Chris Thrasher
eec0ece713 Add missing sf::SoundSource tests 2024-11-24 15:21:33 -07:00
kimci86
d78cec0236 Add keyboard example program 2024-11-24 09:58:05 -07:00
kimci86
ffaf37ef1f Fix typo in asset licenses table 2024-11-24 09:58:05 -07:00
Chris Thrasher
832c608a5b Provide minimum compiler versions to compile SFML 3
These are estimates. We don't necessarily have access to all prior
compiler releases and don't continuously test with these old
compilers so it's possible that we accidentally drop support in a
future v3 release  even without raising the minimum C++ requirement.
2024-11-20 16:32:11 -07:00
Lukas Dürrenberger
4d09b8fd61 Revert "Stop uploading code coverage from non-pull request CI runs"
This reverts commit 46a1b568a9 as it seems
to cause wrong reporting on pull request coverage info, likely due to
missing baselines from the master branch "push".
2024-11-19 18:42:33 -07:00
Chris Thrasher
6ece7bdc9b Mention the removal of sf::SoundStream::setProcessingInterval 2024-11-19 17:12:37 -07:00
Lukas Dürrenberger
cbc43da1d7
Merge branch '2.6.x' into master 2024-11-19 22:10:15 +00:00
Chris Thrasher
f648ae8f35
Merge branch '2.6.x' into feature/backmerge 2024-11-19 13:02:44 -07:00
Andrew Mickelson
55ecc6498a Fix DRM mode setting to use SFML window dimensions
- Actually use the dimensions of the SFML window as the DRM mode
      dimensions when setting a DRM mode.
    - If SFML window dimensions don't match a valid DRM mode, show
      the window contents on screen in the current mode instead of
      simply failing to show anything.
    - With these change the SFML examples are now working for me
2024-11-19 11:05:47 -07:00
Chris Thrasher
9aca44d704 Catch changelog up to the current state of trunk branch 2024-11-17 17:25:56 -07:00
Chris Thrasher
ed24853b90 Update changelog for SFML 3.0.0 2024-11-17 15:24:57 -07:00
Chris Thrasher
d8c66ffc8d Remove backticks which are not correctly formatted 2024-11-17 12:58:27 -07:00
Chris Thrasher
e21ba4dc95 Add more robust tests for sf::Music::setLoopPoints 2024-11-12 00:43:59 -07:00
Lukas Dürrenberger
5383d2b394 Update SFML version to 2.6.2 2024-11-09 21:00:47 +00:00
Lukas Dürrenberger
39cf24ba36 Update changelog for 2.6.2 2024-11-09 21:00:47 +00:00
Lukas Dürrenberger
58085efb29 Close the open window first
This prevents race conditions where for a brief moment two different
window implementations can exist and cause uniqueness issues
2024-11-09 16:40:12 +00:00
acsbendi
15e001608a Fixed wrong fullscreen resolution 2024-11-09 16:04:54 +00:00
Andrew Mickelson
34b6bda233 [drm] Fix DRM mode setting to use SFML window dimensions
- actually use the dimensions of the SFML window as the DRM mode
      dimensions when setting a DRM mode.
    - If SFML window dimensions don't match a valid DRM mode, show
      the window contents on screen in the current mode instead of
      simply failing to show anything.
    - With these change the SFML examples are now working for me
2024-11-09 15:57:06 +00:00
kimci86
dff83039aa Do not combine \a with backticks in doxygen comments
Using \a command displays the next word in italics ignoring the markdown
format so \a `something` display `something` in italics including
backticks.
Removing \a so that backticks are properly interpreted.
2024-11-08 19:58:22 -07:00
kimci86
799ca304ce Format index argument as code in shapes getPoint/setPoint documentation
We do the same in sf::Text::findCharacterPos documentation already.
2024-11-08 19:58:22 -07:00
kimci86
a8b0f6fb70 Emphasize words in documentation with markdown syntax 2024-11-08 19:58:22 -07:00
kimci86
25fde58395 Fix doxygen brief description of sf::Angle user-defined literals
Otherwise the brief description ends at "e.g."
2024-11-08 19:58:22 -07:00
kimci86
6f16e3d701 Do not put backticks after \relates doxygen command
to fix unwanted backticks appearing in generated HTML
2024-11-08 19:58:22 -07:00
Chris Thrasher
07875320fe Add missing backtick 2024-11-08 17:00:25 -07:00
Chris Thrasher
06108ddf18 Add missing backtick
https://github.com/SFML/SFML-Website/pull/234#issuecomment-2465666419

Co-authored-by: kimci86 <kimci86@hotmail.fr>
2024-11-08 14:56:31 -07:00
Chris Thrasher
1df88e5664 Update migration guide 2024-11-06 11:11:45 -07:00
Chris Thrasher
8758649b5d Add tests for sf::Listener 2024-11-01 13:51:06 -06:00
Chris Thrasher
fa28722ff7 Improve const correctness 2024-10-30 16:21:40 -06:00