Skip to content

Hybrid nanovg example for Switch and PC

License

GPL-3.0, Zlib licenses found

Licenses found

GPL-3.0
LICENSE
Zlib
COPYING
Notifications You must be signed in to change notification settings

retronx-team/nanovg-hybrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanovg-hybrid

Hybrid nanovg example for Switch and PC. Example project based on the hybrid glfw app by fincs.

Building the example for Switch

To build for Switch, a standard development environment must first be set up. In order to do so, refer to the Getting Started guide.

(sudo) (dkp-)pacman -S switch-glfw switch-mesa switch-glm
make -j
nxlink -s nanovg_hybrid.nro

Building the example for PC

To build for PC, the following components are required:

  • meson/ninja build system
  • A C++ compiler supporting the C++14 standard
  • GLFW version 3.3 or higher (as a static library)
  • GLM version 0.9.8 or higher

Please refer to the usual sources of information for your particular operating system. Usually the commands needed to build this project will look like this:

meson build
ninja -C build
./build/hybrid_nanovg

Also, please note that the resources folder must be available in the working directory, otherwise the program will fail to find the shaders.

Building the example for Windows using msys2

msys2 provides all packages needed to build this project:

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-meson mingw-w64-x86_64-ninja mingw-w64-x86_64-pkg-config mingw-w64-x86_64-glfw mingw-w64-x86_64-glm
meson build
ninja -C build
./build/hybrid_nanovg

About

Hybrid nanovg example for Switch and PC

Resources

License

GPL-3.0, Zlib licenses found

Licenses found

GPL-3.0
LICENSE
Zlib
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages