0.0
The project is in a healthy, maintained state
Ruby bindings for NanoVG ( https://github.com/memononen/nanovg ).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

NanoVG-Bindings : A Ruby bindings of NanoVG

Provides NanoVG ( https://github.com/memononen/nanovg ) interfaces for ruby (MRI).

  • Created : 2015-07-12
  • Last modified : 2024-01-05

Prerequisites

How to Use

  1. Build NanoVG shared library

    • See nanovg_dll
  2. Include nanovg.rb in your script.

    • ex.) require_relative 'nanovg'
  3. Load shared library

    • ex.) NanoVG.load_dll('libnanovg_gl2.dylib', render_backend: :gl2)
  4. Setup OpenGL

    • nvgSetupGL2() / nvgSetupGL3

See demo/example.rb for details.

License

All source codes are available under the terms of the zlib/libpng license.

NanoVG-Bindings : A Ruby bindings of NanoVG
Copyright (c) 2015-2024 vaiorabbit

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

    1. The origin of this software must not be misrepresented; you must not
    claim that you wrote the original software. If you use this software
    in a product, an acknowledgment in the product documentation would be
    appreciated but is not required.

    2. Altered source versions must be plainly marked as such, and must not be
    misrepresented as being the original software.

    3. This notice may not be removed or altered from any source
    distribution.