public class NkDrawVertexLayoutElement
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
attribute – the vertex attribute. One of:VERTEX_POSITION | VERTEX_COLOR | VERTEX_TEXCOORD | VERTEX_ATTRIBUTE_COUNT |
format – the vertex attribute format. One of:offset – the vertex attribute offset
struct nk_draw_vertex_layout_element {
enum nk_draw_vertex_layout_attribute attribute;
enum nk_draw_vertex_layout_format format;
nk_size offset;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkDrawVertexLayoutElement.Buffer
An array of
NkDrawVertexLayoutElement structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ATTRIBUTE
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkDrawVertexLayoutElement(java.nio.ByteBuffer container)
Creates a
NkDrawVertexLayoutElement instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
attribute()
Returns the value of the
attribute field. |
NkDrawVertexLayoutElement |
attribute(int value)
Sets the specified value to the
attribute field. |
static NkDrawVertexLayoutElement |
calloc()
Returns a new
NkDrawVertexLayoutElement instance allocated with memCalloc. |
static NkDrawVertexLayoutElement.Buffer |
calloc(int capacity)
Returns a new
NkDrawVertexLayoutElement.Buffer instance allocated with memCalloc. |
static NkDrawVertexLayoutElement |
callocStack()
Returns a new
NkDrawVertexLayoutElement instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkDrawVertexLayoutElement.Buffer |
callocStack(int capacity)
Returns a new
NkDrawVertexLayoutElement.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkDrawVertexLayoutElement.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawVertexLayoutElement.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkDrawVertexLayoutElement |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawVertexLayoutElement instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkDrawVertexLayoutElement |
create()
Returns a new
NkDrawVertexLayoutElement instance allocated with BufferUtils. |
static NkDrawVertexLayoutElement.Buffer |
create(int capacity)
Returns a new
NkDrawVertexLayoutElement.Buffer instance allocated with BufferUtils. |
static NkDrawVertexLayoutElement |
create(long address)
Returns a new
NkDrawVertexLayoutElement instance for the specified memory address. |
static NkDrawVertexLayoutElement.Buffer |
create(long address,
int capacity)
Create a
NkDrawVertexLayoutElement.Buffer instance at the specified memory. |
static NkDrawVertexLayoutElement |
createSafe(long address)
|
static NkDrawVertexLayoutElement.Buffer |
createSafe(long address,
int capacity)
|
int |
format()
Returns the value of the
format field. |
NkDrawVertexLayoutElement |
format(int value)
Sets the specified value to the
format field. |
static NkDrawVertexLayoutElement |
malloc()
Returns a new
NkDrawVertexLayoutElement instance allocated with memAlloc. |
static NkDrawVertexLayoutElement.Buffer |
malloc(int capacity)
Returns a new
NkDrawVertexLayoutElement.Buffer instance allocated with memAlloc. |
static NkDrawVertexLayoutElement |
mallocStack()
Returns a new
NkDrawVertexLayoutElement instance allocated on the thread-local MemoryStack. |
static NkDrawVertexLayoutElement.Buffer |
mallocStack(int capacity)
Returns a new
NkDrawVertexLayoutElement.Buffer instance allocated on the thread-local MemoryStack. |
static NkDrawVertexLayoutElement.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawVertexLayoutElement.Buffer instance allocated on the specified MemoryStack. |
static NkDrawVertexLayoutElement |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawVertexLayoutElement instance allocated on the specified MemoryStack. |
static int |
nattribute(long struct)
Unsafe version of
attribute(). |
static void |
nattribute(long struct,
int value)
Unsafe version of
attribute. |
static int |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
static long |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
long value)
Unsafe version of
offset. |
long |
offset()
Returns the value of the
offset field. |
NkDrawVertexLayoutElement |
offset(long value)
Sets the specified value to the
offset field. |
NkDrawVertexLayoutElement |
set(int attribute,
int format,
long offset)
Initializes this struct with the specified values.
|
NkDrawVertexLayoutElement |
set(NkDrawVertexLayoutElement src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ATTRIBUTE
public static final int FORMAT
public static final int OFFSET
public NkDrawVertexLayoutElement(java.nio.ByteBuffer container)
NkDrawVertexLayoutElement 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 int attribute()
attribute field.public int format()
format field.public long offset()
offset field.public NkDrawVertexLayoutElement attribute(int value)
attribute field.public NkDrawVertexLayoutElement format(int value)
format field.public NkDrawVertexLayoutElement offset(long value)
offset field.public NkDrawVertexLayoutElement set(int attribute, int format, long offset)
public NkDrawVertexLayoutElement set(NkDrawVertexLayoutElement src)
src - the source structpublic static NkDrawVertexLayoutElement malloc()
NkDrawVertexLayoutElement instance allocated with memAlloc. The instance must be explicitly freed.public static NkDrawVertexLayoutElement calloc()
NkDrawVertexLayoutElement instance allocated with memCalloc. The instance must be explicitly freed.public static NkDrawVertexLayoutElement create()
NkDrawVertexLayoutElement instance allocated with BufferUtils.public static NkDrawVertexLayoutElement create(long address)
NkDrawVertexLayoutElement instance for the specified memory address.@Nullable public static NkDrawVertexLayoutElement createSafe(long address)
public static NkDrawVertexLayoutElement.Buffer malloc(int capacity)
NkDrawVertexLayoutElement.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkDrawVertexLayoutElement.Buffer calloc(int capacity)
NkDrawVertexLayoutElement.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkDrawVertexLayoutElement.Buffer create(int capacity)
NkDrawVertexLayoutElement.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkDrawVertexLayoutElement.Buffer create(long address, int capacity)
NkDrawVertexLayoutElement.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkDrawVertexLayoutElement.Buffer createSafe(long address, int capacity)
public static NkDrawVertexLayoutElement mallocStack()
NkDrawVertexLayoutElement instance allocated on the thread-local MemoryStack.public static NkDrawVertexLayoutElement callocStack()
NkDrawVertexLayoutElement instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkDrawVertexLayoutElement mallocStack(org.lwjgl.system.MemoryStack stack)
NkDrawVertexLayoutElement instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkDrawVertexLayoutElement callocStack(org.lwjgl.system.MemoryStack stack)
NkDrawVertexLayoutElement instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkDrawVertexLayoutElement.Buffer mallocStack(int capacity)
NkDrawVertexLayoutElement.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkDrawVertexLayoutElement.Buffer callocStack(int capacity)
NkDrawVertexLayoutElement.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkDrawVertexLayoutElement.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkDrawVertexLayoutElement.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkDrawVertexLayoutElement.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkDrawVertexLayoutElement.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 int nattribute(long struct)
attribute().public static int nformat(long struct)
format().public static long noffset(long struct)
offset().public static void nattribute(long struct,
int value)
attribute.public static void nformat(long struct,
int value)
format.public static void noffset(long struct,
long value)
offset.Copyright LWJGL. All Rights Reserved. License terms.