Software:Simple and Fast Multimedia Library

From HandWiki
Revision as of 14:57, 9 February 2024 by Corlink (talk | contribs) (update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Graphics and Multimedia Library written in C++
Simple and Fast Multimedia Library
SFML logo
SFML logo
Original author(s)Laurent Gomila, and others
Developer(s)SFML Team
Initial releaseAugust 9, 2007; 17 years ago (2007-08-09)
Stable release
2.6.1 / November 4, 2023; 12 months ago (2023-11-04)
Written inC++
Operating systemLinux, macOS, Windows, FreeBSD
TypeAPI
Licensezlib License[1][2]
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, and Rust.[3] Experimental mobile ports were made available for Android and iOS with the release of SFML 2.2.[4]

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 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.[5][6] The first version v1.0 was released on 9 August 2007, and the latest version v2.6.1 was released on 4 November 2023.[7]

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.[3]

This table lists supported bindings for SFML (As of 2017).

1 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),[8][9] 2D lighting,[10] particle systems and animation,[11] video playback[12] and tilemaps.[13]

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 been adopted by many Ludum Dare participants also.[14] Compared to older libraries such as Simple DirectMedia Layer (SDL) and Allegro, the SFML user base is relatively small but growing. (As of June 2023), its GitHub software repository has been starred by 8,774 users.[15]

SFML has been used in teaching at universities and in scientific projects.[16][17][18][19][20][21]

Video game use examples

Further examples of games using SFML are listed on IndieDB.[47]

Other software use

See also


References

  1. "License". http://www.sfml-dev.org/license.php. 
  2. "GitHub - SFML/SFML: Simple and Fast Multimedia Library.". 14 December 2021. https://github.com/SFML/SFML/blob/master/license.md. 
  3. 3.0 3.1 "Bindings (SFML / Download)". SFML. http://sfml-dev.org/download/bindings.php. Retrieved 13 November 2014. 
  4. "Changelog (SFML / Development)". http://www.sfml-dev.org/changelog.php#sfml-2.2. Retrieved 18 December 2014. 
  5. Gomila, Laurent. "SFML 2.1 (SFML / Download)". SFML. http://www.sfml-dev.org/download/sfml/2.1/. Retrieved 9 August 2014. 
  6. "SFML/Config.cmake at f24ca9a84012531cf886f72354c1f88341dd7ac7 · SFML/SFML". GitHub. https://github.com/SFML/SFML/blob/f24ca9a84012531cf886f72354c1f88341dd7ac7/cmake/Config.cmake#L30. Retrieved 13 November 2014. 
  7. "Release SFML 2.6.1 · SFML/SFML" (in en). https://github.com/SFML/SFML/releases/tag/2.6.1. 
  8. "SFGUI". SFGUI. http://sfgui.sfml-dev.de/. Retrieved 13 November 2014. 
  9. "TGUI". TGUI. https://tgui.eu/. Retrieved 13 November 2014. 
  10. "hovatterz/light". GitHub. https://github.com/hovatterz/light. Retrieved 13 November 2014. 
  11. "Bromeon :: Thor". Jan Haller. http://www.bromeon.ch/libraries/thor/index.html. Retrieved 13 November 2014. 
  12. "sfeMovie". sfeMovie. http://sfemovie.yalir.org/1.0/. Retrieved 13 November 2014. 
  13. "Tiled SFML Map Loader | SourceForge.net". SourceForge. http://sourceforge.net/projects/tiledsfmlloader/. Retrieved 13 November 2014. 
  14. "sfml | Ludum Dare". Ludum Dare. http://ludumdare.com/compo/tag/sfml/. Retrieved 13 November 2014. 
  15. "SFML/SFML". GitHub. 10 May 2018. https://github.com/SFML/SFML. Retrieved 10 May 2018. 
  16. "SFML Setup". University of Mary Washington. http://rosemary.umw.edu/~finlayson/class/spring14/cpsc220/labs/15-sfml.html. Retrieved 13 November 2014. 
  17. "Rensselaer Center for Open Source Software". Rensselaer Polytechnic Institute. http://rcos.rpi.edu/projects/sfml-tutorial-series/. Retrieved 13 November 2014. 
  18. "CSCI 261 - Programming Concepts". Colorado School of Mines. http://eecs.mines.edu/Courses/csci261/homework05.html. Retrieved 13 November 2014. 
  19. "COMPSCI 464: Computer Graphics". Boise State University. http://cs.boisestate.edu/~alark/cs464/assignment5.html. Retrieved 13 November 2014. 
  20. "Engaging Computing Group | Comp4spr14 / PS5b". University of Massachusetts Lowell. http://www.cs.uml.edu/ecg/index.php/Comp4spr14/PS5b. Retrieved 13 November 2014. 
  21. "Tianyu Cheng's Homepage". University of Texas at Austin. https://www.cs.utexas.edu/~jhcty11/. Retrieved 13 November 2014. 
  22. Chung, Brendon (20 August 2011). "Atom Zombie Tech « Blendo news". Blendo Games. http://blendogames.com/news/?p=106. Retrieved 9 August 2014. 
  23. "The Away Team - Sci-fi Interactive Fiction". 7 July 2016. https://en.sfml-dev.org/forums/index.php?topic=20524.0. Retrieved 1 April 2020. 
  24. "Chesster [SFML Puzzle Game"]. 18 October 2011. http://en.sfml-dev.org/forums/index.php?topic=6113.msg40237#msg40237. Retrieved 13 November 2014. 
  25. "cosmoscroll - SFML-based shoot'em up game. - Github". GitHub. https://github.com/abodelot/cosmoscroll. Retrieved 19 July 2015. 
  26. "Development Update - Lighting and Saving | Siege Games". Siege Games. 3 April 2012. http://siegegames.com/development-update-lighting-and-saving/. Retrieved 13 November 2014. 
  27. 27.0 27.1 "Pirate's Treasure & Enchanted Forest". http://en.sfml-dev.org/forums/index.php?topic=1551.0. Retrieved 13 November 2014. 
  28. "NEWS for Extreme Tux Racer". 27 August 2017. https://sourceforge.net/p/extremetuxracer/code/698/tree/trunk/NEWS. Retrieved 12 September 2017. 
  29. "HolySpirit Windows game | Desura". Desura. 13 November 2014. http://www.desura.com/games/holyspirit. Retrieved 19 July 2015. 
  30. "FAQ - Hope Dev Blog". 2015-08-11. http://hope.glusoft.com/faq/. Retrieved 11 August 2015. 
  31. "I Can Transform". https://en.sfml-dev.org/forums/index.php?topic=24733.0. Retrieved 9 November 2018. 
  32. "miki151/keeperrl". https://github.com/miki151/keeperrl. Retrieved 11 January 2015. 
  33. "Kroniax available in the Play Store!". http://en.sfml-dev.org/forums/index.php?topic=10741.0. Retrieved 15 November 2014. 
  34. "Limit Theory Forums • View topic - SFML::Texturing". http://forums.ltheory.com/viewtopic.php?f=6&t=1212. Retrieved 13 November 2014. 
  35. "M.A.R.S. - a ridiculous shooter - M.A.R.S. 0.7.2 Bugfix Release". M.A.R.S.. 26 April 2011. http://mars-game.sourceforge.net/?p=1090. Retrieved 13 November 2014. 
  36. "SFML 2.0 | BP | I make video games.". Ben Porter. http://bp.io/post/1323. Retrieved 13 November 2014. 
  37. "Open Hexagon - challenging fast paced game". http://en.sfml-dev.org/forums/index.php?topic=9731.0. Retrieved 13 November 2014. 
  38. "LZR Ovid the Owl". Leeran Z. Raphaely. http://lzr.cc/Ovid.htm. Retrieved 13 November 2014. 
  39. "Eigen's development notes". Eigen Lenk. http://eigen.pri.ee/dev-notes.html. Retrieved 13 November 2014. 
  40. "Tools and resources for making an indie game | Koobazaur's Domain". Jakub Kasztalski. 2013-04-20. http://koobazaur.com/gamedev/game-design/tools-and-resources-for-making-my-an-idie-game/. Retrieved 13 November 2014. 
  41. "Version 1.0.2 is available of PC and Linux news - Project Black Sun Game - Indie DB". Indie DB. 20 December 2011. http://www.indiedb.com/games/project-black-sun/news/version-102-is-available-on-pc-and-linux. Retrieved 13 November 2014. 
  42. "TacWars puzzle RPG home page.". https://www.facebook.com/TacWars-1926055650985786/. 
  43. "The Duke". 8 June 2009. http://en.sfml-dev.org/forums/index.php?topic=1300.msg8208#msg8208. Retrieved 13 November 2014. 
  44. "Philippe Offermann » The Shooting Of Isaac". Philippe Offerman. http://philippeoffermann.com/?page_id=72. Retrieved 13 November 2014. 
  45. "Vagante | Tools of the Trade". Vagante Game. 3 December 2013. Archived from the original on 13 November 2014. https://web.archive.org/web/20141113110420/http://vagantegame.com/post/68863742692/tools-of-the-trade. Retrieved 13 November 2014. 
  46. "Zloxx II - An action Jump'n'Run". http://en.sfml-dev.org/forums/index.php?topic=8403. Retrieved 15 November 2014. 
  47. sfml/games
  48. "Download | Aquila - a C++ library for digital signal processing". Zbigniew Siciarz. http://aquila-dsp.org/download/. Retrieved 13 November 2014. 
  49. "Otter - A 2D C# Framework built on SFML 2". Kyle Pulver. http://otter2d.com/. Retrieved 13 November 2014. 
  50. "Florian Rival's personal website". Florian Rival. http://www.florianrival.com/. Retrieved 14 November 2014. 
  51. "Good news for ImmersionEngine". Facebook. https://www.facebook.com/immersionengine/posts/488888211129389. Retrieved 12 February 2015. 
  52. "is::Engine - 2D C++ game engine for Android and PC". Is Daouda. http://en.sfml-dev.org/forums/index.php?topic=26698.0/. Retrieved 19 February 2020. 

Further reading

External links