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 |
|---|---|
| public static class | NkDrawVertexLayoutElement.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | ATTRIBUTE
The struct member offsets. |
| public static final int | FORMAT
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkDrawVertexLayoutElement(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkDrawVertexLayoutElement | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkDrawVertexLayoutElement. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement. | |
| public static NkDrawVertexLayoutElement. | |
| protected NkDrawVertexLayoutElement | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement | create(long address)
Returns a new |
| public static NkDrawVertexLayoutElement. | create(int
the buffer capacity capacity)Returns a new |
| public static NkDrawVertexLayoutElement. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement. | |
| public int | |
| public NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkDrawVertexLayoutElement | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkDrawVertexLayoutElement. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement | |
| public static NkDrawVertexLayoutElement. | |
| public static NkDrawVertexLayoutElement. | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public NkDrawVertexLayoutElement | |
| public NkDrawVertexLayoutElement | |
| public NkDrawVertexLayoutElement | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| ATTRIBUTE | back to summary |
|---|---|
| public static final int ATTRIBUTE The struct member offsets. | |
| FORMAT | back to summary |
|---|---|
| public static final int FORMAT The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| NkDrawVertexLayoutElement | back to summary |
|---|---|
| protected NkDrawVertexLayoutElement(long address, ByteBuffer container) | |
| NkDrawVertexLayoutElement | back to summary |
|---|---|
| public NkDrawVertexLayoutElement(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| attribute | back to summary | ||||
|---|---|---|---|---|---|
| public int attribute() the vertex attribute. One of:
| |||||
| attribute | back to summary |
|---|---|
| public NkDrawVertexLayoutElement attribute(int value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected NkDrawVertexLayoutElement create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement create() Returns a new | |
| create | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Returns a new
| |
| create | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Like
| |
| format | back to summary |
|---|---|
| public int format() the vertex attribute format. One of:
| |
| format | back to summary |
|---|---|
| public NkDrawVertexLayoutElement format(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NkDrawVertexLayoutElement. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nattribute | back to summary |
|---|---|
| public static int nattribute(long struct) Unsafe version of | |
| nattribute | back to summary |
|---|---|
| public static void nattribute(long struct, int value) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static int nformat(long struct) Unsafe version of | |
| nformat | back to summary |
|---|---|
| public static void nformat(long struct, int value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static long noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, long value) Unsafe version of | |
| offset | back to summary |
|---|---|
| public long offset() the vertex attribute offset
| |
| offset | back to summary |
|---|---|
| public NkDrawVertexLayoutElement offset(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public NkDrawVertexLayoutElement set(int attribute, int format, long offset) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public NkDrawVertexLayoutElement set(NkDrawVertexLayoutElement src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
NkDrawVertexLayoutElement structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NkDrawVertexLayoutElement |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public NkDrawVertexLayoutElement. | |
| public int | |
| public NkDrawVertexLayoutElement. | |
| protected NkDrawVertexLayoutElement | |
| public long | |
| public NkDrawVertexLayoutElement. | |
| protected NkDrawVertexLayoutElement. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NkDrawVertexLayoutElement ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| attribute | back to summary |
|---|---|
public int attribute()
| |
| attribute | back to summary |
|---|---|
| public NkDrawVertexLayoutElement. Sets the specified value to the | |
| format | back to summary |
|---|---|
public int format()
| |
| format | back to summary |
|---|---|
| public NkDrawVertexLayoutElement. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected NkDrawVertexLayoutElement getElementFactory() Implements abstract org.
| |
| offset | back to summary |
|---|---|
public long offset()
| |
| offset | back to summary |
|---|---|
| public NkDrawVertexLayoutElement. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected NkDrawVertexLayoutElement. Implements abstract org.
| |