public static void init() { if(initialized) { return; } vg = NanoVGGL3.nvgCreate(NanoVGGL3.NVG_STENCIL_STROKES); if(vg == MemoryUtil.NULL) { throw new RuntimeException("Could not init nanoVG"); } initialized = true; }
public static void dispose() { NanoVGGL3.nvgDelete(vg); }
@Override public void delete() { NanoVGGL3.nvgluDeleteFramebuffer(nvgCtx, nvgFB); NanoVGGL3.nvgDeleteGL3(nvgCtx); }