Skip to content

Latest commit

 

History

History
executable file
·
37 lines (26 loc) · 1 KB

README.md

File metadata and controls

executable file
·
37 lines (26 loc) · 1 KB

Veritas Graphics

Veritas Graphics is a artificial graphics rendering library based on NanoVG. All APIs are learned from Apple CoreGraphics & CoreAnimation.

Screenshot

screenshot under development

Usage

The Veritas Graphics API is modeled loosely on QuartzCore API.

Creating Render context

#include "VGContext.h"
...
struct NVGcontext* vg = nvgCreateGL2(NVG_ANTIALIAS | NVG_STENCIL_STROKES);
VGContextCreate(vg);

This will create a render context, you can access this context by extern VGContextRef VGGetCurrentContext(void).

Using UI in VeritasGraphics

  1. VGLabel
  2. VGButton
  3. VGSpinner
  4. VGSlider
  5. VGInput
  6. VGCheckBox

License

The library is licensed under zlib license