Package org.lwjgl.nuklear
Class NkDrawVertexLayoutElement
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkDrawVertexLayoutElement
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NkDrawVertexLayoutElement extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceMember documentation
attribute– the vertex attribute. One of:VERTEX_POSITIONVERTEX_COLORVERTEX_TEXCOORDVERTEX_ATTRIBUTE_COUNTformat– the vertex attribute format. One of:offset– the vertex attribute offset
Layout
struct nk_draw_vertex_layout_element { enum nk_draw_vertex_layout_attribute attribute; enum nk_draw_vertex_layout_format format; nk_size offset; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkDrawVertexLayoutElement.BufferAn array ofNkDrawVertexLayoutElementstructs.
-
Constructor Summary
Constructors Constructor Description NkDrawVertexLayoutElement(java.nio.ByteBuffer container)Creates aNkDrawVertexLayoutElementinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intattribute()Returns the value of theattributefield.NkDrawVertexLayoutElementattribute(int value)Sets the specified value to theattributefield.static NkDrawVertexLayoutElementcalloc()Returns a newNkDrawVertexLayoutElementinstance allocated withmemCalloc.static NkDrawVertexLayoutElement.Buffercalloc(int capacity)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemCalloc.static NkDrawVertexLayoutElementcallocStack()Returns a newNkDrawVertexLayoutElementinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkDrawVertexLayoutElement.BuffercallocStack(int capacity)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkDrawVertexLayoutElement.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawVertexLayoutElementcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawVertexLayoutElementcreate()Returns a newNkDrawVertexLayoutElementinstance allocated withBufferUtils.static NkDrawVertexLayoutElement.Buffercreate(int capacity)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withBufferUtils.static NkDrawVertexLayoutElementcreate(long address)Returns a newNkDrawVertexLayoutElementinstance for the specified memory address.static NkDrawVertexLayoutElement.Buffercreate(long address, int capacity)Create aNkDrawVertexLayoutElement.Bufferinstance at the specified memory.static NkDrawVertexLayoutElementcreateSafe(long address)static NkDrawVertexLayoutElement.BuffercreateSafe(long address, int capacity)intformat()Returns the value of theformatfield.NkDrawVertexLayoutElementformat(int value)Sets the specified value to theformatfield.static NkDrawVertexLayoutElementmalloc()Returns a newNkDrawVertexLayoutElementinstance allocated withmemAlloc.static NkDrawVertexLayoutElement.Buffermalloc(int capacity)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemAlloc.static NkDrawVertexLayoutElementmallocStack()Returns a newNkDrawVertexLayoutElementinstance allocated on the thread-localMemoryStack.static NkDrawVertexLayoutElement.BuffermallocStack(int capacity)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the thread-localMemoryStack.static NkDrawVertexLayoutElement.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStack.static NkDrawVertexLayoutElementmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStack.static intnattribute(long struct)Unsafe version ofattribute().static voidnattribute(long struct, int value)Unsafe version ofattribute.static intnformat(long struct)Unsafe version offormat().static voidnformat(long struct, int value)Unsafe version offormat.static longnoffset(long struct)Unsafe version ofoffset().static voidnoffset(long struct, long value)Unsafe version ofoffset.longoffset()Returns the value of theoffsetfield.NkDrawVertexLayoutElementoffset(long value)Sets the specified value to theoffsetfield.NkDrawVertexLayoutElementset(int attribute, int format, long offset)Initializes this struct with the specified values.NkDrawVertexLayoutElementset(NkDrawVertexLayoutElement src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
NkDrawVertexLayoutElement
public NkDrawVertexLayoutElement(java.nio.ByteBuffer container)
Creates aNkDrawVertexLayoutElementinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
attribute
public int attribute()
Returns the value of theattributefield.
-
format
public int format()
Returns the value of theformatfield.
-
offset
public long offset()
Returns the value of theoffsetfield.
-
attribute
public NkDrawVertexLayoutElement attribute(int value)
Sets the specified value to theattributefield.
-
format
public NkDrawVertexLayoutElement format(int value)
Sets the specified value to theformatfield.
-
offset
public NkDrawVertexLayoutElement offset(long value)
Sets the specified value to theoffsetfield.
-
set
public NkDrawVertexLayoutElement set(int attribute, int format, long offset)
Initializes this struct with the specified values.
-
set
public NkDrawVertexLayoutElement set(NkDrawVertexLayoutElement src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static NkDrawVertexLayoutElement malloc()
Returns a newNkDrawVertexLayoutElementinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkDrawVertexLayoutElement calloc()
Returns a newNkDrawVertexLayoutElementinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkDrawVertexLayoutElement create()
Returns a newNkDrawVertexLayoutElementinstance allocated withBufferUtils.
-
create
public static NkDrawVertexLayoutElement create(long address)
Returns a newNkDrawVertexLayoutElementinstance for the specified memory address.
-
createSafe
@Nullable public static NkDrawVertexLayoutElement createSafe(long address)
-
malloc
public static NkDrawVertexLayoutElement.Buffer malloc(int capacity)
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkDrawVertexLayoutElement.Buffer calloc(int capacity)
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkDrawVertexLayoutElement.Buffer create(int capacity)
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkDrawVertexLayoutElement.Buffer create(long address, int capacity)
Create aNkDrawVertexLayoutElement.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkDrawVertexLayoutElement.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkDrawVertexLayoutElement mallocStack()
Returns a newNkDrawVertexLayoutElementinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkDrawVertexLayoutElement callocStack()
Returns a newNkDrawVertexLayoutElementinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkDrawVertexLayoutElement mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkDrawVertexLayoutElement callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static NkDrawVertexLayoutElement.Buffer mallocStack(int capacity)
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkDrawVertexLayoutElement.Buffer callocStack(int capacity)
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static NkDrawVertexLayoutElement.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static NkDrawVertexLayoutElement.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nattribute
public static int nattribute(long struct)
Unsafe version ofattribute().
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
noffset
public static long noffset(long struct)
Unsafe version ofoffset().
-
nattribute
public static void nattribute(long struct, int value)Unsafe version ofattribute.
-
nformat
public static void nformat(long struct, int value)Unsafe version offormat.
-
noffset
public static void noffset(long struct, long value)Unsafe version ofoffset.
-
-