Skip to content

olliwang/moui-nanovg-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moui-nanovg-example

This project demonstrates how to build a cross-platform moui app that runs NanoVG's demo. Currently, this project implements iOS, macOS, and Android targets. The iOS and macOS targets adopt Apple's Metal as NanoVG's backend, while the Android target uses the default OpenGL backend.

Donation

If you found this project useful, please consider donating to show your support ❤️

Donate

Generate Xcode projects

A moui app uses CMake to generate the Xcode project for building the iOS and macOS app as follow:

# For iOS
cd ios
# For macOS
cd mac

# Generates the Xcode project for out-of-source builds
cmake -H. -Bbuild -GXcode

Then you can open the generated Xcode project in the build directory to build and run the demo app.

Build the Android target

The android directory is the root of a normal Android Studio 3.5 project configured with Gradle and CMake build system. Thus you can simply build and run the app in Android Studio or through CLI. Please note that NDK r18 is required and NDK r19+ does not support.

About

Runs NanoVG demo with moui.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published