Skip to content

CoolCrabsCollective/SFML-switch

 
 

Repository files navigation

SFML switch port

This is a Switch port of the SFML libraries

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
cd build
  1. Run CMake to generate makefile:
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/DevkitA64Libnx.cmake
  1. Build binaries:
make -j 8
  1. Static libraries were generated in the lib/ folder.

Usage

I usually copy the .a libraries to $DEVKITPRO/portlibs/switch/lib after to simplify using the lib.

Examples

Check out the examples here for an example of how to set-up linking.

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.

License

The SFML libraries and source code are distributed under the zlib/libpng license. See license.md. External libraries used by SFML are distributed under their own licenses.

In short, SFML is free for any use (commercial or personal, proprietary or open-source). You can use SFML in your project without any restriction. You can even omit to mention that you use SFML -- although it would be appreciated.

External libraries used by SFML

Packages

No packages published

Languages

  • C++ 86.0%
  • Objective-C++ 7.2%
  • CMake 4.2%
  • Objective-C 2.2%
  • Other 0.4%