Simple and Fast Multimedia Library

From Infogalactic: the planetary knowledge core
(Redirected from SFML)
Jump to: navigation, search
Simple and Fast Multimedia Library
SFML logo
SFML logo
Original author(s) Laurent Gomila, and others
Developer(s) SFML Team
Stable release 2.3.2 / September 12, 2015; 8 years ago (2015-09-12)
Written in C++
Operating system Linux, OS X, Windows, FreeBSD
Type API
License zlib License[1][2]
Website www.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 C, 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 Windows, Linux, OS X and FreeBSD.[5][6]

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. Several language bindings exist that enable using SFML in other programming languages.[3]

This table lists supported bindings for SFML as of 2015.

Name Language Supported version
CSFML1 C 2.3
SFML.Net1 .NET 2.2
JSFML Java 2.2
DSFML D 2.1
pySFML Python 2.2
rbSFML Ruby 2.0
GoSFML2 Go 2.1
rust-sfml Rust 2.1
Ocsfml OCaml 2.2
ocaml-sfml OCaml 2.0
EuSFML2 Euphoria 2.0
nim-csfml Nim 2.3
SFML.jl Julia 2.2
SFML Haskell 2.0
PasSfml Pascal 2.3
crsfml Crystal 2.3

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

Reception and adoption

SFML is primarily used by hobbyist 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.[13] Compared to older libraries such as Simple DirectMedia Layer (SDL) and Allegro, the SFML user base is relatively small but growing. As of 26 August 2015, its GitHub software repository has been starred by 2274 users.[14]

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

Video game use examples

Further examples of games using SFML are listed on IndieDB here.

Other software use

Version history

  • 1.0 – July 2007
    • 1.1 – 18 September 2007
    • 1.2 – 16 January 2008
    • 1.3 – 22 June 2008
    • 1.4 – 7 January 2009
    • 1.5 – 4 June 2009
    • 1.6 – 6 April 2010, mainly a bug-fix release
  • 2.0 – 29 April 2013
    • 2.1 – 27 July 2013
    • 2.2 – 17 December 2014
    • 2.3 – 9 May 2015
      • 2.3.1 – 11 July 2015
      • 2.3.2 – 12 September 2015

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. https://github.com/SFML/SFML/blob/master/license.txt
  3. 3.0 3.1 Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. Lua error in package.lua at line 80: module 'strict' not found.
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.
  23. Lua error in package.lua at line 80: module 'strict' not found.
  24. Lua error in package.lua at line 80: module 'strict' not found.
  25. Lua error in package.lua at line 80: module 'strict' not found.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. Lua error in package.lua at line 80: module 'strict' not found.
  28. Lua error in package.lua at line 80: module 'strict' not found.
  29. Lua error in package.lua at line 80: module 'strict' not found.
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. Lua error in package.lua at line 80: module 'strict' not found.
  32. Lua error in package.lua at line 80: module 'strict' not found.
  33. Lua error in package.lua at line 80: module 'strict' not found.
  34. Lua error in package.lua at line 80: module 'strict' not found.
  35. 35.0 35.1 Lua error in package.lua at line 80: module 'strict' not found.
  36. Lua error in package.lua at line 80: module 'strict' not found.
  37. Lua error in package.lua at line 80: module 'strict' not found.
  38. Lua error in package.lua at line 80: module 'strict' not found.
  39. Lua error in package.lua at line 80: module 'strict' not found.
  40. Lua error in package.lua at line 80: module 'strict' not found.
  41. Lua error in package.lua at line 80: module 'strict' not found.
  42. Lua error in package.lua at line 80: module 'strict' not found.
  43. Lua error in package.lua at line 80: module 'strict' not found.
  44. Lua error in package.lua at line 80: module 'strict' not found.
  45. Lua error in package.lua at line 80: module 'strict' not found.

Further reading

External links