Misplaced Pages

Simple and Fast Multimedia Library

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from SFML) Graphics and Multimedia Library written in C++
SFML logoSFML logo
Original author(s)Laurent Gomila, and others
Developer(s)SFML Team
Initial releaseAugust 9, 2007; 17 years ago (2007-08-09)
Stable release3.0.0 / December 21, 2024; 11 days ago (2024-12-21)
Repository
Written inC++
Operating systemLinux, macOS, Windows, FreeBSD
TypeAPI
Licensezlib License
Websitewww.sfml-dev.org

Simple and Fast Multimedia Library (SFML) is a cross-platform software development library designed to provide a simple application programming interface (API) to various multimedia components in computers. It is written in C++ with bindings available for Ada, C, Crystal, D, Euphoria, Go, Java, Julia, .NET, Nim, OCaml, Python, Ruby, Rust, Node.js, Beef and Zuko. Experimental mobile ports were made available for Android and iOS with the release of SFML 2.2.

SFML handles creating and input to windows, and creating and managing OpenGL contexts. It also provides a graphics module for simple hardware acceleration of 2D computer graphics which includes text rendering using FreeType, an audio module that uses OpenAL, replaced by miniaudio as of v3.0.0, and a networking module for basic Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) communication.

SFML is free and open-source software provided under the terms of the zlib/png license. It is available on Linux, macOS, Windows and FreeBSD. The first version v1.0 was released on 9 August 2007, and the latest version, v3.0.0, was released on 21 December 2024.

Software architecture

Modules

SFML consists of various modules:

While the graphics module is one of the main features of SFML, developers who are interested in only creating an environment to program directly in OpenGL can do so by using the Window module on its own without the graphics module. Similarly, the other modules can also be used independently of each other, except for the System module which is used by all of the modules.

Language bindings

SFML is written in C++ and provides a C++ interface (it also provides a C interface through the official CSFML binding). Several language bindings exist that enable using SFML in other programming languages.

This table lists supported bindings for SFML as of 2024.

Name Language Supported version
ASFML Ada 2.6
CSFML C 2.6
BeefSFML Beef 2.5
SFML.Net .NET 2.6
CrSFML Crystal 2.6
bindbc-sfml D 2.5
DSFML D 2.1
EuSFML2 Euphoria 2.4
csfml-fpc Free Pascal 2.5
go-sfml Go 2.5.1
GoSFML2 Go 2.0
Hackage Haskell 2.3
JSFML Java 2.2
CSFML.jl Julia 2.5.1
nim-csfml Nim 2.3
Ocsfml OCaml 2.2
OCaml-SFML OCaml 2.5.1
PasSFML Pascal 2.4
pySFML Python 2.3.2
rbSFML Archived 2018-05-27 at the Wayback Machine Ruby 2.3.2
rust-sfml Rust 2.6.1
zig-sfml Zig 2.6.1
sfml.js Node.js 2.5.1
zukoSFML Zuko 2.5

Official bindings

Unofficial add-ons

SFML provides the basic functions on which higher-level software can be built. Add-on libraries exist that provide added support for graphical user interfaces (GUIs), 2D lighting, particle systems and animation, video playback and tilemaps.

Reception and adoption

SFML is primarily used by hobbyist game developers, small independent video game developers, and startup companies consisting of several developers at most. Because SFML does not require writing large amounts of code, it has also been adopted by many Ludum Dare participants. Compared to older libraries such as Simple DirectMedia Layer (SDL) and Allegro, the SFML user base is relatively small but growing. As of 25 December 2024, its GitHub software repository has been starred by over 10,000 users.

SFML has been used in teaching at universities and in scientific projects.

Video game use examples

Further examples of games using SFML are listed on IndieDB.

Other software use

See also

References

  1. "License".
  2. "GitHub - SFML/SFML: Simple and Fast Multimedia Library". GitHub. 14 December 2021.
  3. ^ "Bindings (SFML / Download)". SFML. Retrieved 13 November 2014.
  4. "Changelog (SFML / Development)". Retrieved 18 December 2014.
  5. "Replacing OpenAL with miniaudio". GitHub. Retrieved 2024-12-25.
  6. Gomila, Laurent. "SFML 2.1 (SFML / Download)". SFML. Retrieved 9 August 2014.
  7. "SFML/Config.cmake at f24ca9a84012531cf886f72354c1f88341dd7ac7 · SFML/SFML". GitHub. Retrieved 13 November 2014.
  8. "Release SFML 3.0.0 · SFML/SFML". GitHub. Retrieved 2024-12-25.
  9. "SFGUI". SFGUI. Archived from the original on 17 February 2020. Retrieved 13 November 2014.
  10. "TGUI". TGUI. Retrieved 13 November 2014.
  11. "hovatterz/light". GitHub. Retrieved 13 November 2014.
  12. "Bromeon :: Thor". Jan Haller. Retrieved 13 November 2014.
  13. "sfeMovie". sfeMovie. Retrieved 13 November 2014.
  14. "Tiled SFML Map Loader | SourceForge.net". SourceForge. Retrieved 13 November 2014.
  15. "sfml | Ludum Dare". Ludum Dare. Retrieved 13 November 2014.
  16. "SFML/SFML". GitHub. Retrieved 25 December 2024.
  17. "SFML Setup". University of Mary Washington. Archived from the original on 25 March 2018. Retrieved 13 November 2014.
  18. "Rensselaer Center for Open Source Software". Rensselaer Polytechnic Institute. Retrieved 13 November 2014.
  19. "CSCI 261 - Programming Concepts". Colorado School of Mines. Retrieved 13 November 2014.
  20. "COMPSCI 464: Computer Graphics". Boise State University. Archived from the original on 13 November 2014. Retrieved 13 November 2014.
  21. "Engaging Computing Group | Comp4spr14 / PS5b". University of Massachusetts Lowell. Archived from the original on 17 February 2023. Retrieved 13 November 2014.
  22. "Tianyu Cheng's Homepage". University of Texas at Austin. Retrieved 13 November 2014.
  23. Chung, Brendon (20 August 2011). "Atom Zombie Tech « Blendo news". Blendo Games. Retrieved 9 August 2014.
  24. "The Away Team - Sci-fi Interactive Fiction". 7 July 2016. Retrieved 1 April 2020.
  25. "Chesster [SFML Puzzle Game]". 18 October 2011. Retrieved 13 November 2014.
  26. "cosmoscroll - SFML-based shoot'em up game. - Github". GitHub. Retrieved 19 July 2015.
  27. "Development Update - Lighting and Saving | Siege Games". Siege Games. 3 April 2012. Retrieved 13 November 2014.
  28. ^ "Pirate's Treasure & Enchanted Forest". Retrieved 13 November 2014.
  29. "NEWS for Extreme Tux Racer". Revision 698. 27 August 2017. Retrieved 12 September 2017.
  30. "HolySpirit Windows game | Desura". Desura. 13 November 2014. Retrieved 19 July 2015.
  31. "FAQ - Hope Dev Blog". 2015-08-11. Retrieved 11 August 2015.
  32. "I Can Transform". Retrieved 9 November 2018.
  33. "Jin Conception". Daily Mirror. 5 June 2021. Retrieved 11 May 2022.
  34. "miki151/keeperrl". GitHub. Retrieved 11 January 2015.
  35. "Kroniax available in the Play Store!". Retrieved 15 November 2014.
  36. "Limit Theory Forums • View topic - SFML::Texturing". Retrieved 13 November 2014.
  37. "M.A.R.S. - a ridiculous shooter - M.A.R.S. 0.7.2 Bugfix Release". M.A.R.S. 26 April 2011. Retrieved 13 November 2014.
  38. "SFML 2.0 | BP | I make video games". Ben Porter. Retrieved 13 November 2014.
  39. "Open Hexagon - challenging fast paced game". Retrieved 13 November 2014.
  40. "LZR Ovid the Owl". Leeran Z. Raphaely. Retrieved 13 November 2014.
  41. "Eigen's development notes". Eigen Lenk. Retrieved 13 November 2014.
  42. "Tools and resources for making an indie game | Koobazaur's Domain". Jakub Kasztalski. 2013-04-20. Retrieved 13 November 2014.
  43. "Version 1.0.2 is available of PC and Linux news - Project Black Sun Game - Indie DB". Indie DB. 20 December 2011. Retrieved 13 November 2014.
  44. "TacWars puzzle RPG home page". Facebook.
  45. "The Duke". 8 June 2009. Retrieved 13 November 2014.
  46. "Philippe Offermann » The Shooting Of Isaac". Philippe Offerman. Retrieved 13 November 2014.
  47. "Vagante | Tools of the Trade". Vagante Game. 3 December 2013. Archived from the original on 13 November 2014. Retrieved 13 November 2014.
  48. "Zloxx II - An action Jump'n'Run". Retrieved 15 November 2014.
  49. sfml/games
  50. "Download | Aquila - a C++ library for digital signal processing". Zbigniew Siciarz. Retrieved 13 November 2014.
  51. "Otter - A 2D C# Framework built on SFML 2". Kyle Pulver. Retrieved 13 November 2014.
  52. "Florian Rival's personal website". Florian Rival. Retrieved 14 November 2014.
  53. "Good news for ImmersionEngine". Facebook. Retrieved 12 February 2015.
  54. "is::Engine - 2D C++ game engine for Android and PC". Is Daouda. Retrieved 19 February 2020.

Further reading

External links


List of widget toolkits
Low-level platform-specific
On AmigaOS
On Classic Mac OS, macOS
On Windows
On Unix,
under X11
On BeOS, Haiku
On Android
CLI
Low Level Cross-platform
CLI
C
Java
High-level, platform-specific
On AmigaOS
On Classic Mac OS, macOS
Object Pascal
Objective-C, Swift
C++
CLI
On Windows
CLI
C++
Object Pascal
On Unix,
under X11
On Android
High-level, cross-platform
C
C++
Objective-C
CLI
Adobe Flash
Go
Haskell
Java
JavaScript
Common Lisp
Lua
Pascal
Object Pascal
Perl
PHP
Python
Ruby
Tcl
XML
shell
Dart
Categories: