# Simple and Fast Multimedia Library (SFML)

SFML provides a simple interface to the various components of your PC, to ease the development of games and multimedia applications. It is composed of five modules: system, window, graphics, audio and network. - SFML / github / discord

Features

support many language binding:

Drawing 2D stuff

Setup

With meson

$ mkdir new_project && cd new_project
$ meson init               # for creating project from scratch 

$ mkdir subprojects
$ meson wrap install imgui-sfml

Note: There is a bug in subprojects/imgui-sfml-2.6/meson.build and should update the dependency on sfml to sfml_dep = dependency('sfml-all') otherwise pkg-config won’t work

Imgui & sfml are require to already be installed by imgui-sfml

$ sudo apt-get install libimgui-dev
$ sudo apt-get install libsfml-dev

And add this to your meson.build file

imgui_sfml = dependency('imgui-sfml')
sfml_dep = dependency('sfml-all')			# need to add that as well to avoid linker error
executable('sfml', 'main.cc',  dependencies : [ imgui_sfml, sfml_dep])

caption

See also

Written on August 6, 2018, Last update on October 5, 2024
game-engine lib gui sfml c++ ruby crystal