Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SFML Switch

From GameBrew
Revision as of 12:05, 3 Haziran 2023 by HydeWing (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SFML Switch
Sfmlswitch.png
General
AuthorTomBebb
TypeDevelopments
VersionSwitch-2.3.x
LicenseMixed
Last Updated2020/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.

External links

Advertising: