Chris Thrasher 10685c7d0d Stop leaving variables unused in release builds
In a Release build, macros like `CSFML_CHECK_RETURN` expand into
nothing more than a cast-to-void which is meant to silence compiler
warnings about unused variables.

By declaring a temporary inside the macro argument, we ensure that
debug builds behave the same as always but Release builds expand
these macros into truly no code thus ensuring these temporary
variables are never created in the first place so there is now
nothing that we have to cast to void.
2024-08-27 10:21:46 -06:00
2024-03-28 17:59:11 -06:00
2023-02-18 11:13:43 +01:00
2023-01-03 18:30:34 +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.

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

Set SFML_DIR to a directory containing the SFMLConfig.cmake file, usually located at lib/cmake/SFML.

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%