SFML playground
Go to file
Chris Thrasher 8f1955af17 Don't add SFML:: namespace to external targets
The SFML target export set includes a number of external targets
which are not owned by the project itself. This includes targets
like Freetype and OpenGL. By specifying a namespace for the export
set, a SFML:: namespace was prepended to all targets. This is not
a problem when using shared libraries but when building and using
static libraries caused a problem where CMake was attempting and
failing to find targets with names like SFML::Freetype or
SFML::OpenGL which did not exist.

Luckily CMake allows you put namespaces in the EXPORT_NAME target
property so now we can just add the SFML:: namespace in the macro
which creates SFML targets and remove the `NAMESPACE SFML::` line
which was adding namespaces to all targets.
2022-01-28 08:11:53 +01:00
.github Add support for VS 2022 to the GitHub Actions workflow 2022-01-20 10:53:52 +01:00
cmake Don't add SFML:: namespace to external targets 2022-01-28 08:11:53 +01:00
doc Use built-in CMake project version functionality 2022-01-21 21:09:20 +01:00
examples Add SFML:: namespace to targets 2022-01-11 22:27:39 +01:00
extlibs Replace Catch with Doctest 2021-12-24 15:06:32 +01:00
include/SFML Use std::optional to remove extra sf::Rect::intersects overload 2022-01-27 02:55:11 +00:00
src/SFML Reintroduce 'SleepImpl' sleep implementation 2022-01-12 00:01:35 +00:00
test Use std::optional to remove extra sf::Rect::intersects overload 2022-01-27 02:55:11 +00:00
tools Use built-in CMake project version functionality 2022-01-21 21:09:20 +01:00
.editorconfig Added an .editorconfig file 2015-02-06 11:07:39 +01:00
.gitattributes Added a FLAC file to the Sound example to cover all three supported formats. 2015-03-28 22:49:46 +01:00
.gitignore Add '.gitignore' file 2021-12-05 01:28:05 +00:00
changelog.md Updated the changelog and version number for 2.5.1 2018-10-15 21:52:40 +02:00
CMakeLists.txt Use built-in CMake project version functionality 2022-01-21 21:09:20 +01:00
CONTRIBUTING.md Turned the header image in readme.md into a link. 2018-02-10 17:12:54 +01:00
license.md Add MP3 decoding support using 'minimp3' 2021-12-08 08:19:08 +01:00
readme.md Update SFML version to 3.0.0 2021-12-02 20:02:15 +01:00

SFML logo

SFML — Simple and Fast Multimedia Library

SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network. It is written in C++, and has bindings for various languages such as C, .Net, Ruby, Python.

Authors

Download

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

Install

Follow the instructions of the tutorials, there is one for each platform/compiler that SFML supports.

Learn

There are several places to learn SFML:

Contribute

SFML is an open-source project, and it needs your help to go on growing and improving. If you want to get involved and suggest some additional features, file a bug report or submit a patch, please have a look at the contribution guidelines.