public class NanoVGGL3
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NVG_ANTIALIAS
Create flags.
|
static int |
NVG_DEBUG
Create flags.
|
static int |
NVG_IMAGE_NODELETE
These are additional flags on top of NVGimageFlags.
|
static int |
NVG_STENCIL_STROKES
Create flags.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
nnvgCreate(int flags)
Unsafe version of:
Create |
static void |
nnvgDelete(long ctx)
Unsafe version of:
Delete |
static int |
nnvglCreateImageFromHandle(long ctx,
int textureId,
int w,
int h,
int flags)
Unsafe version of:
lCreateImageFromHandle |
static int |
nnvglImageHandle(long ctx,
int image)
Unsafe version of:
lImageHandle |
static void |
nnvgluBindFramebuffer(long ctx,
long fb)
Unsafe version of:
luBindFramebuffer |
static long |
nnvgluCreateFramebuffer(long ctx,
int w,
int h,
int imageFlags)
Unsafe version of:
luCreateFramebuffer |
static void |
nnvgluDeleteFramebuffer(long ctx,
long fb)
Unsafe version of:
luDeleteFramebuffer |
static long |
nvgCreate(int flags)
Creates a NanoVG context with an OpenGL 3.0 rendering back-end.
|
static void |
nvgDelete(long ctx)
Deletes a NanoVG context created with
Create. |
static int |
nvglCreateImageFromHandle(long ctx,
int textureId,
int w,
int h,
int flags)
Creates a NanoVG image from an OpenGL texture.
|
static int |
nvglImageHandle(long ctx,
int image)
Returns the OpenGL texture id associated with a NanoVG image.
|
static void |
nvgluBindFramebuffer(long ctx,
NVGLUFramebuffer fb)
Binds the framebuffer object associated with the specified
NVGLUFramebuffer. |
static NVGLUFramebuffer |
nvgluCreateFramebuffer(long ctx,
int w,
int h,
int imageFlags)
Creates a framebuffer object to render to.
|
static void |
nvgluDeleteFramebuffer(long ctx,
NVGLUFramebuffer fb)
Deletes an
NVGLUFramebuffer. |
public static final int NVG_ANTIALIAS
ANTIALIAS - Flag indicating if geometry based anti-aliasing is used (may not be needed when using MSAA).STENCIL_STROKES -
Flag indicating if strokes should be drawn using stencil buffer. The rendering will be a little slower, but path overlaps (i.e. self-intersecting
or sharp turns) will be drawn just once.
DEBUG - Flag indicating that additional debug checks are done.public static final int NVG_STENCIL_STROKES
ANTIALIAS - Flag indicating if geometry based anti-aliasing is used (may not be needed when using MSAA).STENCIL_STROKES -
Flag indicating if strokes should be drawn using stencil buffer. The rendering will be a little slower, but path overlaps (i.e. self-intersecting
or sharp turns) will be drawn just once.
DEBUG - Flag indicating that additional debug checks are done.public static final int NVG_DEBUG
ANTIALIAS - Flag indicating if geometry based anti-aliasing is used (may not be needed when using MSAA).STENCIL_STROKES -
Flag indicating if strokes should be drawn using stencil buffer. The rendering will be a little slower, but path overlaps (i.e. self-intersecting
or sharp turns) will be drawn just once.
DEBUG - Flag indicating that additional debug checks are done.public static final int NVG_IMAGE_NODELETE
IMAGE_NODELETE - Do not delete GL texture handle.public static int nnvglCreateImageFromHandle(long ctx,
int textureId,
int w,
int h,
int flags)
lCreateImageFromHandlepublic static int nvglCreateImageFromHandle(long ctx,
int textureId,
int w,
int h,
int flags)
ctx - the NanoVG contexttextureId - the OpenGL texture idw - the image widthh - the image heightflags - the image flagspublic static int nnvglImageHandle(long ctx,
int image)
lImageHandlepublic static int nvglImageHandle(long ctx,
int image)
ctx - the NanoVG contextimage - the image handlepublic static long nnvgCreate(int flags)
Createpublic static long nvgCreate(int flags)
An OpenGL 3.0+ context must be current in the current thread when this function is called and the returned NanoVG context may only be used in the thread in which that OpenGL context is current.
flags - the context flags. One of:ANTIALIAS | STENCIL_STROKES | DEBUG |
public static void nnvgDelete(long ctx)
Deletepublic static void nvgDelete(long ctx)
Create.ctx - the NanoVG contextpublic static long nnvgluCreateFramebuffer(long ctx,
int w,
int h,
int imageFlags)
luCreateFramebuffer@Nullable public static NVGLUFramebuffer nvgluCreateFramebuffer(long ctx, int w, int h, int imageFlags)
ctx - the NanoVG contextw - the framebuffer widthh - the framebuffer heightimageFlags - the image flagspublic static void nnvgluBindFramebuffer(long ctx,
long fb)
luBindFramebufferpublic static void nvgluBindFramebuffer(long ctx,
@Nullable
NVGLUFramebuffer fb)
NVGLUFramebuffer.ctx - the NanoVG contextfb - the framebuffer to bindpublic static void nnvgluDeleteFramebuffer(long ctx,
long fb)
luDeleteFramebufferpublic static void nvgluDeleteFramebuffer(long ctx,
NVGLUFramebuffer fb)
NVGLUFramebuffer.ctx - the NanoVG contextfb - the framebuffer to deleteCopyright LWJGL. All Rights Reserved. License terms.