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

SFML Switch: Difference between revisions

From GameBrew
(Created page with "{{Infobox Switch Homebrews |title=Simple and Fast Multimedia Library |image=simpleandfastmultimedialibraryswitch.png |description=SFML switch port |author=TomBebb |lastupdated=2020/06/28 |type=Developments |version=Switch-2.3.x |license=Mixed |download=https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch.7z |website=https://github.com/TomBebb/SFML-switch |source=https://github.com/TomBebb/SFML-switch |donation= }} {{#seo: |title=Switch Homebrew...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox Switch Homebrews
{{Infobox Switch Homebrews
|title=Simple and Fast Multimedia Library
|title=SFML Switch
|image=simpleandfastmultimedialibraryswitch.png
|image=sfmlswitch.png
|description=SFML switch port
|description=SFML switch port.
|author=TomBebb
|author=TomBebb
|lastupdated=2020/06/28
|lastupdated=2020/06/28
Line 8: Line 8:
|version=Switch-2.3.x
|version=Switch-2.3.x
|license=Mixed
|license=Mixed
|download=https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch.7z
|download=https://dlhb.gamebrew.org/switchhomebrews/sfmlswitch.7z
|website=https://github.com/TomBebb/SFML-switch
|website=https://github.com/TomBebb/SFML-switch
|source=https://github.com/TomBebb/SFML-switch
|source=https://github.com/TomBebb/SFML-switch
|donation=
|donation=
}}
}}
{{#seo:
This is a Switch port of the [https://www.sfml-dev.org/ SFML libraries].
|title=Switch Homebrew PC Tools (Developments) - GameBrew
 
|title_mode=append
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.
|image=simpleandfastmultimedialibraryswitch.png
 
|image_alt=Simple and Fast Multimedia Library
==Dependencies==
}}
Before building, you must have devKitPro setup.
{{cleanup|article|Needs cleanup}}
 
SFML switch port
You only need libNX to build, but you need these libraries to link against:
*OpenAL / [https://github.com/TomBebb/mojoAL-switch 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


==Media==
3. Build binaries:
<youtube></youtube>
make -j 8


Static libraries were generated in the lib/ folder.


==Screenshots==
==Usage==
https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch-01.png
Copy the .a libraries to $DEVKITPRO/portlibs/switch/lib after to simplify using the lib.
https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch-02.png
https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch-03.png
https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch-04.png
https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch-05.png
https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch-06.png
https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch-07.png
https://dlhb.gamebrew.org/switchhomebrews/simpleandfastmultimedialibraryswitch-08.png


==Changelog==
==Changelog==
'''v.1.0'''
'''Switch-2.3.x'''
* First Release.
* Switch port of SFML.
* Make sure to link SFML dependencies like OpenAL.


== External links ==
== External links ==
* Gbatemp - https://github.com/TomBebb/SFML-switch
* GitHub - https://github.com/TomBebb/SFML-switch
* Github - https://github.com/TomBebb/SFML-switch
* Reddit - https://www.reddit.com/r/SwitchHaxing/comments/hhgwou/sfml_port_released_use_highlevel_graphics_window/
* Reddit -

Latest revision as of 12:05, 3 Haziran 2023

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: