Java 类org.lwjgl.nanovg.NanoVGGL3 实例源码

项目:CommunityEngine-Java    文件:NanoGui.java   
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;
}
项目:CommunityEngine-Java    文件:NanoGui.java   
public static void dispose() {
    NanoVGGL3.nvgDelete(vg);
}
项目:Java-GLEngine    文件:GUI.java   
@Override
public void delete() {
    NanoVGGL3.nvgluDeleteFramebuffer(nvgCtx, nvgFB);
    NanoVGGL3.nvgDeleteGL3(nvgCtx);
}