Package org.lwjgl.nanovg
Class NanoVGBGFX
java.lang.Object
org.lwjgl.nanovg.NanoVGBGFX
Implementation of the NanoVG API using bgfx.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded from bgfx. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThese are additional flags on top of NVGimageFlags. -
Method Summary
Modifier and TypeMethodDescriptionstatic longnnvgCreate(int _edgeaa, short _viewId, long _allocator) static voidnnvgluBindFramebuffer(long _framebuffer) static longnnvgluCreateFramebuffer(long _ctx, int _width, int _height, int imageFlags) static voidnnvgluDeleteFramebuffer(long _framebuffer) static voidnnvgluSetViewFramebuffer(short _view_id, long _framebuffer) static voidnnvgSetViewId(long _ctx, short _viewId) static longnvgCreate(boolean _edgeaa, int _viewId, long _allocator) static voidnvgCreateBgfxTexture(long _ctx, short _id, int _width, int _height, int flags) static voidnvgDelete(long _ctx) static shortnvgGetViewId(long _ctx) static voidnvgluBindFramebuffer(NVGLUFramebufferBGFX _framebuffer) static NVGLUFramebufferBGFXnvgluCreateFramebuffer(long _ctx, int _width, int _height, int imageFlags) static voidnvgluDeleteFramebuffer(NVGLUFramebufferBGFX _framebuffer) static voidnvgluSetViewFramebuffer(int _view_id, NVGLUFramebufferBGFX _framebuffer) static voidnvgSetViewId(long _ctx, int _viewId)
-
Field Details
-
NVG_IMAGE_NODELETE
public static final int NVG_IMAGE_NODELETEThese are additional flags on top of NVGimageFlags.Enum values:
IMAGE_NODELETE- Do not delete GL texture handle.
- See Also:
-
-
Method Details
-
nnvgCreate
public static long nnvgCreate(int _edgeaa, short _viewId, long _allocator) -
nvgCreate
public static long nvgCreate(boolean _edgeaa, int _viewId, long _allocator) -
nvgDelete
public static void nvgDelete(long _ctx) -
nnvgSetViewId
public static void nnvgSetViewId(long _ctx, short _viewId) -
nvgSetViewId
public static void nvgSetViewId(long _ctx, int _viewId) -
nvgGetViewId
public static short nvgGetViewId(long _ctx) -
nnvgluCreateFramebuffer
public static long nnvgluCreateFramebuffer(long _ctx, int _width, int _height, int imageFlags) -
nvgluCreateFramebuffer
@Nullable public static NVGLUFramebufferBGFX nvgluCreateFramebuffer(long _ctx, int _width, int _height, int imageFlags) -
nnvgluBindFramebuffer
public static void nnvgluBindFramebuffer(long _framebuffer) -
nvgluBindFramebuffer
-
nnvgluDeleteFramebuffer
public static void nnvgluDeleteFramebuffer(long _framebuffer) -
nvgluDeleteFramebuffer
-
nnvgluSetViewFramebuffer
public static void nnvgluSetViewFramebuffer(short _view_id, long _framebuffer) -
nvgluSetViewFramebuffer
-
nvgCreateBgfxTexture
public static void nvgCreateBgfxTexture(long _ctx, short _id, int _width, int _height, int flags)
-