talira

Simple and Fast Multimedia Library: a cross-platform C++ API for windowing, graphics, audio and networking

open sourceZlib

SFML (Simple and Fast Multimedia Library) is a simple, fast, cross-platform, object-oriented multimedia API written in C++. It gives games and multimedia apps access to windowing, 2D graphics, audio and networking, with bindings for languages including C, .NET, Ruby and Python. Development is on version 3; the 2.x series gets no new features. Its CMake project template downloads and builds SFML alongside your application. An alternative to SDL and raylib.

Ways to install

Package managers

Problems it solves

  • open a window and draw 2D graphics from C++ without writing platform code
  • play sounds and music in a small C++ game
  • a simple cross-platform C++ library for a 2D game's window, input, audio and networking

Limitations

  • No new features are planned for the 2.x series; development is on version 32

Alternatives

The same job

These do what SFML does.

  1. SDL Simple DirectMedia Layer: cross-platform C library for windows, input, audio and graphics
  2. raylib A simple and easy-to-use library to enjoy videogames programming

Compare SFML with the top 3