Package org.lwjgl.nanovg
@NullMarked
package org.lwjgl.nanovg
Contains bindings to NanoVG, a small antialiased vector graphics rendering library for OpenGL. It has
lean API modeled after HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations.
-
ClassesClassDescriptionContains the function pointers loaded from bgfx.
struct NSVGgradient { float xform[6]; char spread; float fx; float fy; int nstops; {@link NSVGGradientStop NSVGgradientStop} pstops[1]; }
An array ofNSVGGradient
structs.struct NSVGgradientStop { unsigned int color; float offset; }
An array ofNSVGGradientStop
structs.struct NSVGimage { float width; float height; {@link NSVGShape NSVGshape} * shapes; }
An array ofNSVGImage
structs.struct NSVGpaint { signed char type; union { unsigned int color; {@link NSVGGradient NSVGgradient} * gradient; }; }
An array ofNSVGPaint
structs.struct NSVGpath { float * pts; int npts; char closed; float bounds[4]; {@link NSVGPath NSVGpath} * next; }
An array ofNSVGPath
structs.struct NSVGshape { char id[64]; {@link NSVGPaint NSVGpaint} fill; {@link NSVGPaint NSVGpaint} stroke; float opacity; float strokeWidth; float strokeDashOffset; float strokeDashArray[8]; char strokeDashCount; char strokeLineJoin; char strokeLineCap; float miterLimit; char fillRule; unsigned char flags; float bounds[4]; char fillGradient[64]; char strokeGradient[64]; float xform[6]; {@link NSVGPath NSVGpath} * paths; {@link NSVGShape NSVGshape} * next; }
An array ofNSVGShape
structs.struct NVGcolor { union { float rgba[4]; struct { float r; float g; float b; float a; }; }; }
An array ofNVGColor
structs.struct NVGglyphPosition { char * str; float x; float minx; float maxx; }
An array ofNVGGlyphPosition
structs.struct NVGLUframebuffer { GLuint fbo; GLuint rbo; GLuint texture; int image; }
An array ofNVGLUFramebuffer
structs.struct NVGLUframebuffer { NVGcontext * ctx; bgfx_frame_buffer_handle_t handle; int image; bgfx_view_id_t viewId; }
An array ofNVGLUFramebufferBGFX
structs.struct NVGpaint { float xform[6]; float extent[2]; float radius; float feather; {@link NVGColor NVGcolor} innerColor; {@link NVGColor NVGcolor} outerColor; int image; }
An array ofNVGPaint
structs.struct NVGtextRow { char * start; char * end; char * next; float width; float minx; float maxx; }
An array ofNVGTextRow
structs.