Simple and Fast Multimedia Library: Difference between revisions
→Reception and adoption: Adding external links to make the overview more useful. |
|||
Line 98: | Line 98: | ||
== Reception and adoption == |
== Reception and adoption == |
||
===Reception=== |
|||
{{Empty section|date=August 2014}} |
|||
===Adoption=== |
|||
SFML has been adopted by several games. |
SFML has been adopted by several games. |
||
* http://www.sfmlprojects.org/ |
|||
⚫ | |||
* http://en.sfml-dev.org/forums/index.php?topic=12209.0 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* ''[http://lzr.cc/Ovid.htm Ovid The Owl]'', puzzle platform game |
|||
⚫ | |||
* ''[http://forums.tigsource.com/index.php?topic=6637.0 The Duke]'', action platform game |
|||
* ''Ovid The Owl'' – puzzle jump 'n' run |
|||
* ''[http://mars-game.sourceforge.net/ M.A.R.S.]'', multiplayer shoot 'em up game |
|||
* ''The Duke'' – action jump 'n' run |
|||
* ''[https://code.google.com/p/cosmoscroll/ Cosmoscroll]'', space-based shoot'em up game |
|||
* ''M.A.R.S.'' – a space battle shooter |
|||
* '' |
* ''[http://excellenceteam.wordpress.com/ Excellence]'', vertical scrolling shoot 'em up game |
||
⚫ | |||
* ''Excellence'' – bullet hell space shoot 'em up |
|||
⚫ | |||
⚫ | |||
* ''[http://www.starflowergames.com/blacksun.html Project Black Sun]'', retro 2D side-scrolling game |
|||
⚫ | |||
* ''Project Black Sun'' – a commercial side-scrolling adventure |
|||
== History == |
== History == |
Revision as of 12:19, 9 August 2014
This article may rely excessively on sources too closely associated with the subject, potentially preventing the article from being verifiable and neutral. (November 2013) |
![]() | |
Original author(s) | Laurent Gomila, and others |
---|---|
Stable release | 2.1
/ July 27, 2013 |
Repository | |
Written in | C++ |
Operating system | Linux, OS X, Windows, et al. |
Type | API library |
License | zlib License[1][2] |
Website | www |
Simple and Fast Multimedia Library (SFML) a portable API for multimedia programming. It is written in C++ with bindings available for C, D, Python, Ruby, OCaml, .Net and Go.
SFML provides hardware accelerated 2D graphics using OpenGL, supports OpenGL windowing and provides different modules that ease multimedia and game programming. SFML site offers complete SDK bundle in single pack, and tutorials to ease the developers. SFML Source code is provided under the terms of the zlib/png license.
SFML is available on Linux and other platforms.
Software architecture
Modules
The modules currently available are:
- The System module manages the clock and threads.
- The Window module manages windows and user interactions.
- The Graphics module makes it easy to display simple shapes and images.
- The Audio module provides an interface to handle sounds and music.
- The Network module handles sockets in a portable way.
All the modules can be used independently, except the Graphics module that depends on the Window module, and all the modules that depend on the System module.
Programming language bindings
A library written in one programming language may be used in another language if bindings are written; The library's primarily supported language is C++, however there are bindings for SFML in other programming languages.[3]
Official language bindings
External language bindings
- Python : 2.0
- D : 1.6 (Derelict 2) and 2.0 (Derelict 3)
- Ruby : RC-2.0
- OCaml : 1.6 and RC-2.0
- Java : 2.1
- Rust : 2.1
Hello World
The program below provides a short overview of the SFML. This code just opens a window and fills it with blue:
#include <SFML/Graphics.hpp>
int main()
{
// Create the main window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Hello World - SFML");
// Start the main loop
while (App.isOpen())
{
// Process events
sf::Event Event;
while (App.pollEvent(Event))
{
// Close window : exit
if (Event.type == sf::Event::Closed)
App.close();
}
// Clear screen, and fill it with blue
App.clear(sf::Color::Blue);
// Display the content of the window on screen
App.display();
}
return 0;
}
Reception and adoption
Reception
![]() | This section is empty. You can help by adding to it. (August 2014) |
Adoption
SFML has been adopted by several games.
- Crea, moddable, 2D sandbox game
- Atom Zombie Smasher, real-time strategy game
- HolySpirit, 3D isometric hack and slash game
- Ovid The Owl, puzzle platform game
- The Duke, action platform game
- M.A.R.S., multiplayer shoot 'em up game
- Cosmoscroll, space-based shoot'em up game
- Excellence, vertical scrolling shoot 'em up game
- Moonman, pixel art exploration sandbox game
- Chesster, puzzle game
- Project Black Sun, retro 2D side-scrolling game
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)
Further reading
- Jan Haller, Henrik Vogelius Hansson, Artur Moreira: SFML Game Development, Packt Publishing, ISBN 1-849696-84-5