Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 examplesGL2Debug

nimble examplesGL3
nimble examplesGL3Debug

The 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.