More actions
SFML Switch | |
---|---|
General | |
Author | TomBebb |
Type | Developments |
Version | Switch-2.3.x |
License | Mixed |
Last Updated | 2020/06/28 |
Links | |
Download | |
Website | |
Source | |
This is a Switch port of the SFML libraries.
SFML (Simple and Fast Multimedia Library) 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.
Dependencies
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
Building
1. Make build directory:
mkdir build
2. Run CMake to generate makefile:
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/DevkitA64Libnx.cmake
3. Build binaries:
make -j 8
Static libraries were generated in the lib/ folder.
Usage
Copy the .a libraries to $DEVKITPRO/portlibs/switch/lib after to simplify using the lib.
Changelog
Switch-2.3.x
- Switch port of SFML.
- Make sure to link SFML dependencies like OpenAL.