# SFML

C\+\+ multimedia library with graphics, windowing, audio and networking modules\.

ID: Q173 · Revision: 586

Type: software · License: zlib/libpng[^sfml-license] · Status: active

Website: https://www.sfml-dev.org/



SFML is a C\+\+ multimedia library for applications such as games\. Its modules cover system facilities, windows, graphics, audio and networking, providing a code\-oriented foundation rather than a complete visual game editor\.[^sfml-home]

## Screenshots

![Green rounded pentagonal SFML emblem with a white angular outline and central white wedge\.](/api/v1/images/f271356e-595a-4470-9af1-758ff4f0d1bf?entity=Q173&revision=586)

SFML icon\. · Captured 2026-10-12 · SFML project\. Official 256 × 256 PNG icon from the SFML Goodies page, retrieved 2026\-10\-12\. The project declares its official logo public domain\. Unchanged except site image conversion\. · public-domain

Source: <https://www.sfml-dev.org/download/goodies/> · Rights: <https://www.sfml-dev.org/download/goodies/>

## Modular development

Applications use SFML's object\-oriented interfaces to manage a window, process events, display graphics and play sound\. Networking and system services are separate modules in the same family\. This organization lets a developer select the pieces needed by an application, while leaving game\-state organization and production tooling to the project\. It is useful where the program's architecture is intended to remain under the team's control\.[^sfml-home]

## Target platforms

The project supports Windows, Linux and macOS and describes Android and iOS support as having limitations\. Mobile availability should therefore be evaluated for the intended application rather than assumed to match every desktop workflow\. A library\-level platform claim also does not supply an application's packaging, store submission or content pipeline\.[^sfml-home]

## SFML3 migration

SFML3 requires C\+\+17 and changes more than the compiler baseline\. Its migration guide describes namespaced CMake targets, scoped enumerations and a revised event interface using modern C\+\+ types\. Some earlier threading facilities are replaced by standard\-library equivalents\. Projects written against SFML2 should budget for source and build changes, and use documentation for the version they actually depend on\.[^sfml-migration]

## License and dependencies

SFML is distributed under a permissive zlib/libpng\-style license that allows commercial use and modification with stated origin and notice conditions\. This is not a requirement to publish the game's own source code\. Additional dependencies and distributed assets remain separate items to review; the core license alone is not a blanket license for everything included in a finished game\.[^sfml-license]

## Substitution assessment

SFML can substitute for [raylib](/raylib) in programmed multimedia and 2D game workflows when a C\+\+ module\-based API is preferred\. The two libraries expose different resource, input and drawing interfaces, so migration involves application changes\. raylib's broader built\-in 3D helpers should be evaluated separately rather than inferred from SFML's ability to participate in a graphics application\. This assessment concerns documented scope, not measured speed or porting results\.[^sfml-home][^sfml-migration][^ray-home]

## Capabilities and substitutions

### Desktop multimedia modules — supported

System, window, graphics, audio and network modules are available\.[^sfml-home]

Use case: Code\-driven games and interactive graphics · Platforms: Windows, macOS, Linux, Android \(limited\), iOS \(limited\) · Region: Target toolchains, browser and hardware support apply

### SFML2 to SFML3 migration — limited

C\+\+17, event and build\-system changes require adaptation\.[^sfml-migration]

Use case: Code\-driven games and interactive graphics · Platforms: Windows, macOS, Linux, Android \(limited\), iOS \(limited\) · Region: Target toolchains, browser and hardware support apply

### [Substitute for raylib](/raylib) — limited

Alternative for code\-first 2D graphics, input and audio using a C\+\+ interface; not API\-compatible or an assumed replacement for every 3D helper\.[^sfml-home][^ray-home]

Use case: Code\-driven games and interactive graphics · Platforms: Windows, macOS, Linux, Android \(limited\), iOS \(limited\) · Region: Target toolchains, browser and hardware support apply

## References

[^sfml-license]: [SFML license](<https://github.com/SFML/SFML/blob/master/license.md>) — zlib/libpng license (vendor; retrieved 2026-10-07T06:54:43Z)

[^sfml-home]: [SFML overview](<https://www.sfml-dev.org/>) — Modules and platform support (vendor; retrieved 2026-10-07T06:53:51Z)

[^sfml-migration]: [SFML3 migration guide](<https://www.sfml-dev.org/tutorials/3.0/getting-started/migrate/>) — C\+\+17, events and CMake changes (vendor; retrieved 2026-10-07T06:54:16Z)

[^ray-home]: [raylib overview](<https://www.raylib.com/>) — C99 library, platforms, examples and rendering (vendor; retrieved 2026-10-07T06:53:51Z)

[^source-5]: [https://www\.sfml\-dev\.org/download/goodies/](<https://www.sfml-dev.org/download/goodies/>) — Checked 2026\-10\-12: the official Goodies page declares the SFML logo public domain and supplies the small 256 × 256 PNG icon used here\. (assessment; retrieved 2026-10-12T08:29:07.348Z)

Source revision: https://substitutefor.net/entities/Q173?revision=586
