Releases: SFML/SFML
SFML 2.6.1
A small bugfix update to the massive SFML 2.6.0 release from earlier this year.
Largely addressing issues in the build process, but also fixing a few issues in specific, less tested scenarios, see the full changelog below.
Note again that SFML 2 will only see fixes for critical issues as patch releases (e.g. 2.6.2), but all the other development efforts are focused on SFML 3. For more details and future discussions, see the Roadmap.
Changelog
Also available on the website: https://www.sfml-dev.org/changelog.php#sfml-2.6.1
General
- Stop overwriting CMAKE_MODULE_PATH (#2577)
- Loosen restrictions on unknown compilers (#2585)
- Fix CI deprecation warnings (#2624)
- Fix unused compiler flag error in Clang (#2625)
- Disable warnings as errors by default (#2680)
Window
Bugfixes
- Fix macOS resize event bug (#2618)
- Skip ClientMessage events with other window ID unless it is for IM (#2651)
Graphics
Bugfixes
- Ensure OpenGL extensions are loaded before querying maximum texture size (#2603)
- Fixed RenderTexture being upside down on Android (#2730)
- Fix warnings in Linux OpenGL ES codepaths (#2747)
Audio
Bugfixes
- Remove use of C++11 header (#2591)
Contributors
Thank you! 🎉
SFML 2.6.0
After 5.5 years, we're proud to announce a new and massive SFML release. Over the past few years a lot has changed code-wise, in the team, in the community, and also with the roadmap of SFML. We would like to thank every single one of our contributors, who helped make this release - check the lengthy list at the bottom. Thank You!
It's important to note, that this will be the final SFML 2.x release. We will provide fixes for critical issues as patch releases (e.g. 2.6.1), but all the other development efforts are focused on SFML 3. For more details and future discussions, see the Roadmap.
Highlights
- ⌨️ Support for Scancodes
- 🗔 Create windows without OpenGL context
- 🪟 Create windows with a Vulkan context
- 💻 SFML supports ARM64 on macOS, i.e. M1 and M2 chipsets
- 🧪 Unit testing foundation has been created
Changelog
Also available on the website: https://www.sfml-dev.org/changelog.php#sfml-2.6.0
General
- Various CMake enhancements (#1477, #1509, #1561, #1563, #1576, #1624, #1739, #1960)
- Small documentation changes (#1519, #1608, #1628, #1657, #1658, #1652, #1665, #1697, #1774, #1776, #1853, #2038, #2083, #2271)
- Various casting fixes (#1499, #1553, #2040, #2222, #2297, #2298, #2323, #2576)
- Add unit testing foundation to SFML (#623, #1475)
- Changed Doxygen single-line comment format (#1622, #1623)
- Add support for GitHub Actions (#1716, #1751, #2058, #2114)
- Add support for NetBSD (#1535, #1723)
- Slight increase performance and code refactor (#1732)
- Use public domain resources for examples (#1627, #1718)
- Add support for CPack and NSIS with CPack (#1114)
- Enable support for unity builds (#1787, #1788)
- Various clean ups (#1848, #1849, #2219, #2220, #2221, #2241)
- Enable and enforce a large set of warnings (#1785, #1791, #1846, #1906, #1908, #2048, #2066, #2073, #2094, #2100, #2106, #2142, #2217, #2218)
- Enable search box for the Doxygen documentation (#1841, #1940, #2173, #2477)
- Enhancements of the CI pipeline (#2046, #2263, #2294)
- Fix header include paths in Doxygen documentation (#2512)
- Fix compilation for GCC 13.1.1 (#2553)
- [macOS] Add support for arm64 on macOS (#1749, #1750, #1761, #1843, #1868)
- [iOS] Build examples for iOS as well (#1418, #1520, #1522)
- [Windows] Properly support Clang on Windows (#1612, #1720, #1784, #1795)
- [Windows] Link legacy stdio definitions on newer Visual Studio versions (#1712)
- [Windows] Provide additional metadata through resource files (#1419, #1779)
- [Android] Add 64-bits libraries for Android (#1648, #2165)
- [Android] Adjust NDK search path to support newer NDKs (#1575)
- [macOS] Copy logo.png to Resources in Cocoa example (#1818)
- [Windows] Add support for Visual Studio 2022 (#1819)
- [Android] Build sfml-main with position-independent code (#2393, #2397)
System
Features
- [Android] Simplify management of ActivityStates (#1845)
Bugfixes
Window
Features
- Allow creation of a window without an OpenGL context (#1484)
- Dynamically load EGL and GLES extensions as is done for desktop GL (#1539, #1577, #1603, #2157, #2160)
- Add support for creating Vulkan window surfaces (#1557)
- Scancode support (#1235, #1400, #1596, #2009, #2096, #2148, #2243)
- [Linux] Add support for colored cursors in Unix implementation (#1693, #1694)
- [Linux] Added support for directional arrow resize cursors on Linux (#1688)
- [Linux] Add support for X Input Method (#1840, #1850, #2191, #2242)
- [Linux] Add support for Direct Rendering Mode (DRM) / Kernel Mode Setting (KMS) (#2029, #2146, #2246, #2259, #2400)
- [Windows] Use monitor aware DPI scaling on Windows (#2268)
Bugfixes
- Fix
sf::Context::getActiveContext
to stop returning inactive contexts (#1794) - [Linux] Fixed crash with X11 when
$DISPLAY
is not0.0
(#724, #1504) - [Android] Ensure
setActive(false)
is called before the surface is destroyed in EglContext (#1530, #1531) - [Android] Fixed EGL incorrectly being passed the anti-aliasing level as
EGL_SAMPLE_BUFFERS
instead ofEGL_SAMPLES
(#1533, #1534) - [Linux] Fix OpenGL extensions not loading in a specific Linux VM configuration (#1495, #1543)
- [Windows] Fixed potential buffer overrun in Win32 OpenGL error handling (#1245, #1246)
- [Windows] Fix no longer hides cursor when hovering title bar (#1569, #1570)
- [macOS] Initialize
m_context
correctly inSFContext
constructors (#1582, #1610) - [Android] Fixed navigation bar not being entirely hidden on Android (#1538, #1554)
- [Windows] Make the process to set a DirectInput device's axis mode more conservative (#1634)
- [Linux] Fix an issue where the cursor wasn't changed instantaneously (#1686)
- [Windows] Fix issue where joystick/controller POV values were not set correctly for DirectInput devices (#1719)
- [Android] Fix warning: control may reach end of non-void function (#1713)
- [Windows] Fixed Win32 requestFocus in multi-threaded environment (#1600)
- [Android] Fix issue where
EGL_DEFAULT_DISPLAY
isNULL
(#1639, #1740) - [macOS] When initializing an OpenGL view with an existing window, call
finishInit
(#1759, #1760) - [macOS] Fix potential crash when changing cursor (#1721, #1736)
- [Android] Fixed
SIGSEGV
after pressing back button on Android (#531, #1580) - [Android] Fix issue with
waitEvent
and an OpenGL Context (#1532, #1790) - [iOS] Fix issue where OpenGL ES libraries couldn't be located (#1687, #1804)
- [macOS] Fix issue where window wouldn't be closing because of events still being processed (#1581, #1814)
- [Windows] Preserve the drop shadow for system cursors on Windows (#1731)
- [Windows] Use GetWindowLongPtr for better overall compatibility (#1806)
- [macOS] Ensure proper nesting of autorelease pools on OS X (#1549, #1820)
- [Linux] Fix typo in window construction (#1951, #1953)
- [Linux] Prevent crash in Unix JoystickImpl with too many file descriptors (#1900, #1941)
Graphics
Features
- Allow re-creation of the shared context as a core context if the user requests a core profile context (#1434, #1443)
- Added
getPosition()
andgetSize()
tosf::Rect
(#1047) - Added
Font::hasGlyph
field (#1644) - Implemented saveToMemory and saveImageToMemory (#988, #1597, #1669)
- Implement smoothing for fonts (#1690, #2064, #2072)
- Add Min and Max blend modes (#1710, #1756)
- Support geometry shaders when a OpenGL 3.2+ context is available (#1768, #1769, #1786, #1789)
- Align encodings for new line characters (#2107)
- Update stb_image to 2.28, thus adding support for more image formats (#1712, #2322, #2464)
- [macOS] Improve high DPI handling on macOS (#1817)
Bugfixes
- Fixed missing checks for empty vertex arrays when updating the vertex buffers in
sf::Text
(#1558, #1560) - Remove unnecessary
glFlush()
insf::Texture
(#1609) - Fixed text rendering artifacts on Radeon cards (#1568)
- Force OpenGL states to be reset when RenderTarget detects that a new context has to be tracked (#1625, #1630)
- Don't set default Texture Rect of a
sf::Sprite
before the user provided one (#1725) - Added auto hinting compensation to fix too wide gaps between small glyphs (#1745, #1746)
- Fix support for sRGB color space in
sf::RenderTexture
(#1092, #1757) - Fix incorrect glyph rect for text outline (#1826, #1827, #1836)
- Fix alpha value calculation for semi-transparent pixels on fully transparent pixels with
sf::Image::copy()
(#1993) - Fix getLocalBounds inconsistency for
sf::Text
(#2129, #2132) - [iOS] Ensure the proper default framebuffer is bound when activating a RenderWindow (#1471, #1487)
Audio
Features
- Allow explicitly closing
sf::InputSoundFile
(#1516) - Replace use of auto_ptr for future-proofing (#1546)
- Adjustable processing interval in
sf::SoundStream
(#1517, #1666) - Fix
sf::Music
sometimes failing to loop after seeking (#1707) - Add MP3 decoding support (#1232, #1796, #1851)
Bugfixes
- Rename FindVorbis -> FindVORBIS, for consistency with exported variables (#1626, #1629)
- Fix naming of VORBIS in
SFMLConfigDependencies.cmake.in
(#1636, #1637) - Fixed copy assign operator in
sf::Sound
so it checks for self-assignment (#1744) - Fix SoundStream::play to restart the sound if it was played before (#2175)
Networking
Features
Bugfixes
Contributors
Thank You! 🎉
- @1aam2am1
- @acsbendi
- @AMDmi3
- @assematt
- @b0guslaw
- @binary1248
- @bloodsword
- @Bromeon
- @Ceylo
- @ChrisThrasher
- @Coder-Rahul-Y
- @cschreib
- @czateusz
- @danieljpetersen
- @DanielRabl
- @devnexen
- @dogunbound
- @DrMcCoy
- @DW-Ant
- @Edgaru089
- @eigenbom
- @eliasdaler
- @EpicCoder
- @Eren121
- @eXpl0it3r
- @fgallegosalido
- @Franckltung
- @GermanAizek
- @hanetzer
- @hobby8
- @Ironbell
- @jcowgill
- @JeffSwenson
- @jhlgns
- @jkeller51
- @JonnyPtn
- @jqdg
- @kimci86
- @lieff
- @lioPixiumDigital
- @mantognini
- @MarioLiebisch
- @Marukyu
- @mickelson
- @Milerius
- @Mozzg
- @mrzeusthecoder
- @nedoxff
- @oomek
- @PKEuS
- @pmachapman
- @reconndev
- @rewrking
- @Sakarah
- @sevagh
- @SGauvin
- @ShadowsFriend
- @Si1ver
- @spacechase0
- @StrikerX3
- @substring
- @swordfatih
- @TankOs
- @texus
- @therocode
- @ThisKwasior
- @Unarelith
- @Unarelith
- @utilForever
- @ventsin
- @vfjpl
- @vittorioromeo
- @Waldegger
- @zackthehuman
- @zakinadhif
2.5.1
Changelog
SFML 2.5.1
Also available on the website: https://www.sfml-dev.org/changelog.php#sfml-2.5.1
General
- Various CMake fixes (#1414, #1416, #1436, #1439, #1467, #1470)
- Fixed the installation of pkg-config files (#1466)
- Fixed two conversion warnings (#1454)
- [Android] Fixes all symbols in sfml-main are hidden (#1457, #1460)
- [Android] Fixed some
#define
flag problem (#1458) - [Android] Fix deadlock in main cleanup (#1265)
- [iOS] Modernized toolchain file (#1411)
- [iOS] Check that
<SFML/Main.hpp>
is used (#1412) - [macOS] Add
-ObjC
flag to fix static linking on macOS (#1485)
Window
Bugfixes
- [iOS] Use default supported rotations when none are specified (#1417)
- [iOS] Fixed autocomplete window overlaps keyboard (#1473, #1482)
- [Linux] Fixed dual monitor issue (#1226, #1238)
- [Linux] Fixed issue where fullscreen window didn't go over task bars on top and left on in Ubuntu (#1224)
- [Linux] Fixed the Unix clipboard implementation causing an abort due to internal data races in Xlib (#1437)
- [macOS] Added additional system cursors (#1401, #1413, #1425)
- [Windows] Fixed swapped colors for custom cursors (#1464, #1465, #1491)
Graphics
Bugfixes
- Fixed a bug in which a
sf::RenderTexture
would not be re-activated after being re-created (#1438) - Fixed
sf::RenderTextureImplFBO
's destructor incorrectly triggering deletion of othersf::RenderTextureImplFBO
's active FBOs (#1440) - Fix
sf::RenderWindow::setActive
incorrectly trying to unbind an FBO during deactivation (#1442) - Fixed
sf::RenderTexture::display()
dereferencing a NULL pointer when being called beforesf::RenderTexture::create()
(#1446) - Fixed bug in
sf::Text
when applying an outline color/thickness (#1176) - Squash duplicated
sf::Font
glyphs to single chars (#1461) - Fixed two issues with glyph sub-pixel positioning (#1452)
- Reduced context locking & unlocking while creating textures (#1459)
- Fixed the error message when the wrong bitmap font size is selected (#1456, #1474, #1492)
Audio
Bugfixes
- Fixed performance issue with reading WAV files (#1450)
SFML 2.5.0
Changelog
SFML 2.5.0
Also available on the website: https://www.sfml-dev.org/changelog.php#sfml-2.5.0
General
- Replaced FindSFML.cmake with SFMLConfig.cmake (#1335)
- Markdown'd and updated readme, changelog, contributing and license files (#1196, #1368, #1317)
- Improve packaging support (#1173)
- Added Tagfile generation and search (#1327)
- Added CMake variables to select the modules to be built (#798, #800)
- Do not install extlibs if
SFML_USE_SYSTEM_DEPS
is true (#1236, #1237) - Fixed various type conversion/comparison warnings (#1325)
- [Android] Increased minimum API version to 14 (#1362)
- [Android] Removed custom toolchain and added support for the newest NDK version and Gradle (#1350, #1393)
- [iOS] Updated the binary libs from exlibs/libs-ios (#1207, #1209)
- [iOS] Use a CMake toolchain file for iOS build (#1268, #1269)
- [iOS] Install extlibs if needed (#1348)
- [iOS] Drop 32 bit support (#1374)
- [iOS] Force correct iOS architecture for cmake (#1373, #1377)
- [iOS] Added iOS example (#1378)
- [macOS] Fixed launch of cocoa examples (#1334)
- [macOS] Improved application signing process (#1020, #1036, #1194)
- [macOS] Improved CMake script (#1215, #1371)
- [macOS] Use
-stdlib=libc++
(#1361) - [OpenBSD] Added support for OpenBSD (#1330)
System
Bugfixes
- Added protected destructor to
sf::NonCopyable
to prevent possible resource leaks (#1125, #1161) - Fixed crash when
sf::Clock
is constructed in a global scope (#1258)
Window
Features
- Implemented Cursor API (#269, #784, #827)
- Implemented Clipboard API (#715, #1204, #1221)
- Renamed a few key codes (#1395)
- Added joystick example (#1363)
- [Windows] Added support for interfacing with joysticks via DirectInput when it is available (#1251, #1326)
- [Windows] Fix discrete GPU preference symbols being exported from the wrong place (#1192, #1406)
Bugfixes
- [Android] Return correct key code for delete/backspace (#1309, #1362)
- [iOS] Don't need to find vorbisfile or vorbisenc (#1347)
- [Linux] Fixed
sf::Window::getPosition()
returning incorrect position because of differences in window managers (#1228, #1266) - [Linux] Fix X11 key repeat handling not filtering out events from other windows (#1223, #1230, #1291)
- [Linux] Restore fullscreen of a non-visible window (#1339)
- [macOS] Fixed window menu not working (#1091, #1180, #1193)
- [macOS] Fixed crash with application messing hardware detection e.g. TeamViewer (#1323)
- [macOS] Added support for (some) Hat/POV axis (#1248)
- [Windows] Prevent uninitialized read by zeroing memory (#1264)
- [Windows] Fixed modifier keys handling (#1357)
Graphics
Features
- Implemented additional line spacing and letter spacing in
sf::Text
(#928, #1366) - Added
sf::VertexBuffer
class (#1308) - Added GPU local texture copying support, allowing performance optimizations and texture swapping (#1119, #1319, #1320)
- Optimize performance by skipping
glTexCoordPointer()
call if not needed (#1015) - Generate shape outline vertices only if necessary (#925, #1356)
- Removed dependency to libjpeg, stb_image_write now supports writing JPEG files (#1278, #1279)
- Enable comparing
sf::Transform
and optimize resetting OpenGL back to the identity matrix (#1298) - Added missing
setActive()
virtual method tosf::RenderTarget
(#1157) - Updated stb_image to v2.16 and stb_image_write to v1.07 (#1270)
- Added
sf::RenderTexture
stencil and multisampling support (#1274, #1285) - Added example demonstrating
sf::VertexBuffer
,sf::Shader
andsf::Thread
usage (#1352) - Optimized
sf::RenderTexture
performance (#1379)
Bugfixes
- Properly free memory in
sf::Font::cleanup()
(#1119) - Fixed memory leak in
sf::Font
(#1216) - Fix OpenGL texture coordinate pointer not being updated correctly under certain conditions (#1297)
- Fix for broken text when the font is reloaded (#1345)
- Fix memory leak in
sf::Text
(#1233, #1360) - Fixed strict aliasing punning warning when generating the key of a glyph in Font.cpp (#1187, #1396)
- Fixed OpenGL version string being parsed incorrectly on some platforms (#1249, #1390)
- [macOS] Worked around render target bug (#1132, #1342)
- [Windows] Replaced time-based joystick poll with a hardware event handler (#1179, #1195, #1198, #1199, #1421)
Audio
Features
- Added loop point support to
sf::Music
(#177, #629) - Added support for the extensible PCM wave file format (#1296)
- [iOS] Enable audio module (#1338)
Bugfixes
- Fixed inconsistent seek behavior in
sf::SoundStream
(#1118) - Fixed stack overflow in
sf::SoundStream::fillAndPushBuffer()
(#1154) - Fixed seeking quirks in the FLAC reader (#966, #1162)
- Allow polymorphism with
sf::SoundSource
(#1185) - Fixed WAV file writer writing wrong header values (#1280, #1281)
- Small bugfix to argument of
alcCaptureOpenDevice()
(#1304, #1305) - [iOS] Find OpenAL correctly (#1263, #1376)
- [Windows] Updated OpenAL Soft to 1.18.1 fixing crashes (#1247, #1260)
Network
Features
Bugfixes