public class NkConvertConfig
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
global_alpha – global alpha valueline_AA – line anti-aliasing flag can be turned off if you are tight on memory. One of:ANTI_ALIASING_OFF | ANTI_ALIASING_ON |
shape_AA – shape anti-aliasing flag can be turned off if you are tight on memory. One of:ANTI_ALIASING_OFF | ANTI_ALIASING_ON |
circle_segment_count – number of segments used for circles: default to 22arc_segment_count – number of segments used for arcs: default to 22curve_segment_count – number of segments used for curves: default to 22null_texture – handle to texture with a white pixel for shape drawingvertex_layout – describes the vertex output format and packingvertex_size – sizeof one vertex for vertex packingvertex_alignment – vertex alignment: Can be optained by NK_ALIGNOF
struct nk_convert_config {
float global_alpha;
enum nk_anti_aliasing line_AA;
enum nk_anti_aliasing shape_AA;
unsigned int circle_segment_count;
unsigned int arc_segment_count;
unsigned int curve_segment_count;
struct nk_draw_null_texture null_texture;
struct nk_draw_vertex_layout_element * vertex_layout;
nk_size vertex_size;
nk_size vertex_alignment;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkConvertConfig.Buffer
An array of
NkConvertConfig structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ARC_SEGMENT_COUNT
The struct member offsets.
|
static int |
CIRCLE_SEGMENT_COUNT
The struct member offsets.
|
static int |
CURVE_SEGMENT_COUNT
The struct member offsets.
|
static int |
GLOBAL_ALPHA
The struct member offsets.
|
static int |
LINE_AA
The struct member offsets.
|
static int |
NULL_TEXTURE
The struct member offsets.
|
static int |
SHAPE_AA
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VERTEX_ALIGNMENT
The struct member offsets.
|
static int |
VERTEX_LAYOUT
The struct member offsets.
|
static int |
VERTEX_SIZE
The struct member offsets.
|
| Constructor and Description |
|---|
NkConvertConfig(java.nio.ByteBuffer container)
Creates a
NkConvertConfig instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
arc_segment_count()
Returns the value of the
arc_segment_count field. |
NkConvertConfig |
arc_segment_count(int value)
Sets the specified value to the
arc_segment_count field. |
static NkConvertConfig |
calloc()
Returns a new
NkConvertConfig instance allocated with memCalloc. |
static NkConvertConfig.Buffer |
calloc(int capacity)
Returns a new
NkConvertConfig.Buffer instance allocated with memCalloc. |
static NkConvertConfig |
callocStack()
Returns a new
NkConvertConfig instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkConvertConfig.Buffer |
callocStack(int capacity)
Returns a new
NkConvertConfig.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkConvertConfig.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkConvertConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkConvertConfig |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkConvertConfig instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
circle_segment_count()
Returns the value of the
circle_segment_count field. |
NkConvertConfig |
circle_segment_count(int value)
Sets the specified value to the
circle_segment_count field. |
static NkConvertConfig |
create()
Returns a new
NkConvertConfig instance allocated with BufferUtils. |
static NkConvertConfig.Buffer |
create(int capacity)
Returns a new
NkConvertConfig.Buffer instance allocated with BufferUtils. |
static NkConvertConfig |
create(long address)
Returns a new
NkConvertConfig instance for the specified memory address. |
static NkConvertConfig.Buffer |
create(long address,
int capacity)
Create a
NkConvertConfig.Buffer instance at the specified memory. |
static NkConvertConfig |
createSafe(long address)
|
static NkConvertConfig.Buffer |
createSafe(long address,
int capacity)
|
int |
curve_segment_count()
Returns the value of the
curve_segment_count field. |
NkConvertConfig |
curve_segment_count(int value)
Sets the specified value to the
curve_segment_count field. |
float |
global_alpha()
Returns the value of the
global_alpha field. |
NkConvertConfig |
global_alpha(float value)
Sets the specified value to the
global_alpha field. |
int |
line_AA()
Returns the value of the
line_AA field. |
NkConvertConfig |
line_AA(int value)
Sets the specified value to the
line_AA field. |
static NkConvertConfig |
malloc()
Returns a new
NkConvertConfig instance allocated with memAlloc. |
static NkConvertConfig.Buffer |
malloc(int capacity)
Returns a new
NkConvertConfig.Buffer instance allocated with memAlloc. |
static NkConvertConfig |
mallocStack()
Returns a new
NkConvertConfig instance allocated on the thread-local MemoryStack. |
static NkConvertConfig.Buffer |
mallocStack(int capacity)
Returns a new
NkConvertConfig.Buffer instance allocated on the thread-local MemoryStack. |
static NkConvertConfig.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkConvertConfig.Buffer instance allocated on the specified MemoryStack. |
static NkConvertConfig |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkConvertConfig instance allocated on the specified MemoryStack. |
static int |
narc_segment_count(long struct)
Unsafe version of
arc_segment_count(). |
static void |
narc_segment_count(long struct,
int value)
Unsafe version of
arc_segment_count. |
static int |
ncircle_segment_count(long struct)
Unsafe version of
circle_segment_count(). |
static void |
ncircle_segment_count(long struct,
int value)
Unsafe version of
circle_segment_count. |
static int |
ncurve_segment_count(long struct)
Unsafe version of
curve_segment_count(). |
static void |
ncurve_segment_count(long struct,
int value)
Unsafe version of
curve_segment_count. |
static float |
nglobal_alpha(long struct)
Unsafe version of
global_alpha(). |
static void |
nglobal_alpha(long struct,
float value)
Unsafe version of
global_alpha. |
static int |
nline_AA(long struct)
Unsafe version of
line_AA(). |
static void |
nline_AA(long struct,
int value)
Unsafe version of
line_AA. |
static NkDrawNullTexture |
nnull_texture(long struct)
Unsafe version of
null_texture(). |
static void |
nnull_texture(long struct,
NkDrawNullTexture value)
Unsafe version of
null_texture. |
static int |
nshape_AA(long struct)
Unsafe version of
shape_AA(). |
static void |
nshape_AA(long struct,
int value)
Unsafe version of
shape_AA. |
NkDrawNullTexture |
null_texture()
Returns a
NkDrawNullTexture view of the null_texture field. |
NkConvertConfig |
null_texture(java.util.function.Consumer<NkDrawNullTexture> consumer)
Passes the
null_texture field to the specified Consumer. |
NkConvertConfig |
null_texture(NkDrawNullTexture value)
Copies the specified
NkDrawNullTexture to the null_texture field. |
static long |
nvertex_alignment(long struct)
Unsafe version of
vertex_alignment(). |
static void |
nvertex_alignment(long struct,
long value)
Unsafe version of
vertex_alignment. |
static NkDrawVertexLayoutElement.Buffer |
nvertex_layout(long struct,
int capacity)
Unsafe version of
vertex_layout(int). |
static void |
nvertex_layout(long struct,
NkDrawVertexLayoutElement.Buffer value)
Unsafe version of
vertex_layout. |
static long |
nvertex_size(long struct)
Unsafe version of
vertex_size(). |
static void |
nvertex_size(long struct,
long value)
Unsafe version of
vertex_size. |
NkConvertConfig |
set(float global_alpha,
int line_AA,
int shape_AA,
int circle_segment_count,
int arc_segment_count,
int curve_segment_count,
NkDrawNullTexture null_texture,
NkDrawVertexLayoutElement.Buffer vertex_layout,
long vertex_size,
long vertex_alignment)
Initializes this struct with the specified values.
|
NkConvertConfig |
set(NkConvertConfig src)
Copies the specified struct data to this struct.
|
int |
shape_AA()
Returns the value of the
shape_AA field. |
NkConvertConfig |
shape_AA(int value)
Sets the specified value to the
shape_AA field. |
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
long |
vertex_alignment()
Returns the value of the
vertex_alignment field. |
NkConvertConfig |
vertex_alignment(long value)
Sets the specified value to the
vertex_alignment field. |
NkDrawVertexLayoutElement.Buffer |
vertex_layout(int capacity)
Returns a
NkDrawVertexLayoutElement.Buffer view of the struct array pointed to by the vertex_layout field. |
NkConvertConfig |
vertex_layout(NkDrawVertexLayoutElement.Buffer value)
Sets the address of the specified
NkDrawVertexLayoutElement.Buffer to the vertex_layout field. |
long |
vertex_size()
Returns the value of the
vertex_size field. |
NkConvertConfig |
vertex_size(long value)
Sets the specified value to the
vertex_size field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int GLOBAL_ALPHA
public static final int LINE_AA
public static final int SHAPE_AA
public static final int CIRCLE_SEGMENT_COUNT
public static final int ARC_SEGMENT_COUNT
public static final int CURVE_SEGMENT_COUNT
public static final int NULL_TEXTURE
public static final int VERTEX_LAYOUT
public static final int VERTEX_SIZE
public static final int VERTEX_ALIGNMENT
public NkConvertConfig(java.nio.ByteBuffer container)
NkConvertConfig instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic float global_alpha()
global_alpha field.public int line_AA()
line_AA field.public int shape_AA()
shape_AA field.public int circle_segment_count()
circle_segment_count field.public int arc_segment_count()
arc_segment_count field.public int curve_segment_count()
curve_segment_count field.public NkDrawNullTexture null_texture()
NkDrawNullTexture view of the null_texture field.public NkDrawVertexLayoutElement.Buffer vertex_layout(int capacity)
NkDrawVertexLayoutElement.Buffer view of the struct array pointed to by the vertex_layout field.capacity - the number of elements in the returned bufferpublic long vertex_size()
vertex_size field.public long vertex_alignment()
vertex_alignment field.public NkConvertConfig global_alpha(float value)
global_alpha field.public NkConvertConfig line_AA(int value)
line_AA field.public NkConvertConfig shape_AA(int value)
shape_AA field.public NkConvertConfig circle_segment_count(int value)
circle_segment_count field.public NkConvertConfig arc_segment_count(int value)
arc_segment_count field.public NkConvertConfig curve_segment_count(int value)
curve_segment_count field.public NkConvertConfig null_texture(NkDrawNullTexture value)
NkDrawNullTexture to the null_texture field.public NkConvertConfig null_texture(java.util.function.Consumer<NkDrawNullTexture> consumer)
null_texture field to the specified Consumer.public NkConvertConfig vertex_layout(NkDrawVertexLayoutElement.Buffer value)
NkDrawVertexLayoutElement.Buffer to the vertex_layout field.public NkConvertConfig vertex_size(long value)
vertex_size field.public NkConvertConfig vertex_alignment(long value)
vertex_alignment field.public NkConvertConfig set(float global_alpha, int line_AA, int shape_AA, int circle_segment_count, int arc_segment_count, int curve_segment_count, NkDrawNullTexture null_texture, NkDrawVertexLayoutElement.Buffer vertex_layout, long vertex_size, long vertex_alignment)
public NkConvertConfig set(NkConvertConfig src)
src - the source structpublic static NkConvertConfig malloc()
NkConvertConfig instance allocated with memAlloc. The instance must be explicitly freed.public static NkConvertConfig calloc()
NkConvertConfig instance allocated with memCalloc. The instance must be explicitly freed.public static NkConvertConfig create()
NkConvertConfig instance allocated with BufferUtils.public static NkConvertConfig create(long address)
NkConvertConfig instance for the specified memory address.@Nullable public static NkConvertConfig createSafe(long address)
public static NkConvertConfig.Buffer malloc(int capacity)
NkConvertConfig.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkConvertConfig.Buffer calloc(int capacity)
NkConvertConfig.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkConvertConfig.Buffer create(int capacity)
NkConvertConfig.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkConvertConfig.Buffer create(long address, int capacity)
NkConvertConfig.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkConvertConfig.Buffer createSafe(long address, int capacity)
public static NkConvertConfig mallocStack()
NkConvertConfig instance allocated on the thread-local MemoryStack.public static NkConvertConfig callocStack()
NkConvertConfig instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkConvertConfig mallocStack(org.lwjgl.system.MemoryStack stack)
NkConvertConfig instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkConvertConfig callocStack(org.lwjgl.system.MemoryStack stack)
NkConvertConfig instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkConvertConfig.Buffer mallocStack(int capacity)
NkConvertConfig.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkConvertConfig.Buffer callocStack(int capacity)
NkConvertConfig.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkConvertConfig.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkConvertConfig.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkConvertConfig.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkConvertConfig.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static float nglobal_alpha(long struct)
global_alpha().public static int nline_AA(long struct)
line_AA().public static int nshape_AA(long struct)
shape_AA().public static int ncircle_segment_count(long struct)
circle_segment_count().public static int narc_segment_count(long struct)
arc_segment_count().public static int ncurve_segment_count(long struct)
curve_segment_count().public static NkDrawNullTexture nnull_texture(long struct)
null_texture().public static NkDrawVertexLayoutElement.Buffer nvertex_layout(long struct, int capacity)
vertex_layout(int).public static long nvertex_size(long struct)
vertex_size().public static long nvertex_alignment(long struct)
vertex_alignment().public static void nglobal_alpha(long struct,
float value)
global_alpha.public static void nline_AA(long struct,
int value)
line_AA.public static void nshape_AA(long struct,
int value)
shape_AA.public static void ncircle_segment_count(long struct,
int value)
circle_segment_count.public static void narc_segment_count(long struct,
int value)
arc_segment_count.public static void ncurve_segment_count(long struct,
int value)
curve_segment_count.public static void nnull_texture(long struct,
NkDrawNullTexture value)
null_texture.public static void nvertex_layout(long struct,
NkDrawVertexLayoutElement.Buffer value)
vertex_layout.public static void nvertex_size(long struct,
long value)
vertex_size.public static void nvertex_alignment(long struct,
long value)
vertex_alignment.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.