nanovg
Nim wrapper for the C NanoVG antialiased vector graphics rendering library for OpenGL
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install nanovg
choosenim install nanovg
git clone https://github.com/johnnovak/nim-nanovg
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| nanovg | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/johnnovak/nim-nanovg |
|---|---|
| Homepage | https://github.com/johnnovak/nim-nanovg |
| Registry Source | nimble_official |
README
nim-nanovg
Nim wrapper for the C NanoVG antialiased vector graphics rendering library for OpenGL
Installation
nim-nanovg can be installed via Nimble:
nimble install nanovg
Usage
Have a look at demo.nim in the examples directory. You can
build the examples by executing one of the following commands:
nimble examplesGL2
nimble examplesGL2Debug
nimble examplesGL3
nimble examplesGL3Debug
The examples require nim-glfw.
Documentation
The API documentation is in-progress; currently, it's a slightly edited version of the original NanoVG source comments.
You can also check out the NanoVG README for further info.
Notes
Attempting to compile the library on Mac OS X 10.14.5 Mojave / XCode 11.3.1 with the GL2 backend results in compilation errors. I can't be bothered fixing this as GL3 works fine.
License
This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details.