This is a Switch port of the SFML libraries
Before building, you must have devKitPro setup.
You only need libNX to build, but you need these libraries to link against:
- OpenAL / MojoAL
- SDL2 (if using MojoAL)
- LibNX
- FLAC
- Vorbis libraries
- LibOGG
- Mesa
- LibPNG
- ZLib
- Nouveau DRM driver
- GLAD
- BZip2
- Make build directory:
mkdir build
- Run CMake to generate makefile:
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/DevkitA64Libnx.cmake
- Build binaries:
make -j 8
- Static libraries were generated in the lib/ folder.
I usually copy the .a libraries to $DEVKITPRO/portlibs/switch/lib after to simplify using the lib.
Check out the examples here for an example of how to set-up linking.
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.
- Laurent Gomila — main developer (laurent@sfml-dev.org)
- Marco Antognini — OS X developer (hiura@sfml-dev.org)
- Jonathan De Wachter — Android developer (dewachter.jonathan@gmail.com)
- Jan Haller (bromeon@sfml-dev.org)
- Stefan Schindler (tank@sfml-dev.org)
- Lukas Dürrenberger (eXpl0it3r@sfml-dev.org)
- binary1248 (binary1248@hotmail.com)
- Artur Moreira (artturmoreira@gmail.com)
- Mario Liebisch (mario@sfml-dev.org)
- And many other members of the SFML community
You can get the latest official release on SFML's website. You can also get the current development version from the Git repository.
Follow the instructions of the tutorials, there is one for each platform/compiler that SFML supports.
There are several places to learn SFML:
- The official tutorials
- The online API documentation
- The community wiki
- The community forum (French)
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.