Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnnovak/nim-nanovg
Nim wrapper for the NanoVG vector graphics library for OpenGL
https://github.com/johnnovak/nim-nanovg
canvas graphics nanovg nim nim-lang opengl vector-graphics wrapper
Last synced: 21 days ago
JSON representation
Nim wrapper for the NanoVG vector graphics library for OpenGL
- Host: GitHub
- URL: https://github.com/johnnovak/nim-nanovg
- Owner: johnnovak
- License: wtfpl
- Created: 2016-05-08T10:43:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T08:36:48.000Z (11 months ago)
- Last Synced: 2023-12-12T09:37:38.708Z (11 months ago)
- Topics: canvas, graphics, nanovg, nim, nim-lang, opengl, vector-graphics, wrapper
- Language: C
- Homepage:
- Size: 1.03 MB
- Stars: 21
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# nim-nanovg
*Nim wrapper for the C [NanoVG](https://github.com/memononen/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](/examples) directory. You can
build the examples by executing one of the following commands:nimble examplesGL2
nimble examplesGL2Debugnimble examplesGL3
nimble examplesGL3DebugThe examples require [nim-glfw](https://github.com/johnnovak/nim-glfw).
## Documentation
The [API documentation](/doc) is in-progress; currently, it's a slightly
edited version of the original NanoVG source comments.You can also check out the [NanoVG README](https://github.com/memononen/nanovg)
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](http://www.wtfpl.net/), as published
by Sam Hocevar. See the [COPYING](./COPYING) file for more details.