• Stars
    star
    1
  • Language
    Ada
  • Created over 8 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ada bindings to NanoVG

Ada NanoVG bindings

Ada bindings to NanoVG - https://github.com/memononen/nanovg

These bindings aim to provide a lightweight alternative to Cairo/GtkAda for drawing vector graphics. They use the amazing NanoVG library, and are for the moment very thin bindings around it, but aim to provide more idiomatic Ada bindings in time.

For the OpenGL part, those rely on the great OpenGLAda bindings from flyx: https://github.com/flyx/OpenGLAda

Dependencies

  • You'll need GL ES V2 and GLFW v3 installed on your system. For the moment, the only backend supported is GL ES V2.

  • You'll also need a relatively recent GNAT toolchain, either GNAT GPL or the FSF version that should be available in the package manager of your distribution.

  • You'll need to checkout the dependencies, nanovg itself, and the OpenGLAda bindings. You can use the setup.sh script to do that part or do it manually.

Building & Installing

If you are on a Linux system:

./setup.sh
gprbuild -P ada_nanovg.gpr -XWindowing_System=x11 -XGLFW_Version=3

You can also build the example similarly:

gprbuild -P example/nanovg_example.gpr -XWindowing_System=x11 -XGLFW_Version=3