Lukas Dürrenberger 58d0990004 Resolve remaining zizmor findings in our workflows
- Pass matrix values and the workspace path to run steps through env
- Use bash as default shell for the release builds
- Drop the MinGW cache from the release builds to avoid cache poisoning
2026-10-04 21:46:35 +02:00
2024-11-01 15:03:09 -06:00
2025-01-08 15:16:46 +01:00
2024-09-12 10:08:46 -06:00
2026-01-13 16:50:15 +01:00
2025-06-08 22:38:53 -06:00
2025-08-29 13:32:23 +02:00
2025-09-28 22:28:21 +02:00
2026-01-13 16:50:15 +01:00

SFML logo

CSFML - Simple and Fast Multimedia Library for C

SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network. It is originally written in C++, and this project is its official binding for the C language.

State of Development

Development is focused on version 3 in the master branch. No more features are planned for the 2.x release series.

Authors

Download

You can get the latest official release on SFML website. You can also get the current development version from the Git repository.

Learn

There is no tutorial for CSFML, but since it's a binding you can use the C++ resources:

Of course, you can also find the CSFML API documentation in the SDK.

Building

Building CSFML follows typical CMake conventions. Here's how to get started.

  1. Install SFML. This may be done in a variety of ways including using a system package manager or building and installing SFML from source. The major version of SFML must match the major version of CSFML.
  2. Configure CSFML. If you are building CSFML for the purpose of contributing, we recommend using the dev CMake preset. This will enable a number of useful settings related to developing the library. If needed, set the SFML_ROOT CMake variable to tell CMake where to find your installation of SFML. The CSFML_LINK_SFML_STATICALLY option must align with whether your installation of SFML uses static or shared libraries.
  3. Build CSFML. The install target will install all public headers and libraries.

Contribute

SFML and CSFML are open-source projects, and they need your help to go on growing and improving. Don't hesitate to post suggestions or bug reports on the forum, or post new bugs/features requests on the issue tracker. You can even fork the project on GitHub, maintain your own version and send us pull requests periodically to merge your work.

Languages
C 54.6%
C++ 39.1%
Shell 2.7%
CMake 2.6%
PowerShell 1%