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.NativeResourceLayout
struct nk_draw_vertex_layout_element { enum nk_draw_vertex_layout_attributeattribute(); enum nk_draw_vertex_layout_formatformat(); nk_sizeoffset(); }
-
-
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 Deprecated Methods Modifier and Type Method Description intattribute()the vertex attribute.NkDrawVertexLayoutElementattribute(int value)Sets the specified value to theattribute()field.static NkDrawVertexLayoutElementcalloc()Returns a newNkDrawVertexLayoutElementinstance allocated withmemCalloc.static NkDrawVertexLayoutElement.Buffercalloc(int capacity)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemCalloc.static NkDrawVertexLayoutElement.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawVertexLayoutElementcalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawVertexLayoutElementcallocStack()Deprecated.static NkDrawVertexLayoutElement.BuffercallocStack(int capacity)Deprecated.static NkDrawVertexLayoutElement.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkDrawVertexLayoutElementcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()the vertex attribute format.NkDrawVertexLayoutElementformat(int value)Sets the specified value to theformat()field.static NkDrawVertexLayoutElementmalloc()Returns a newNkDrawVertexLayoutElementinstance allocated withmemAlloc.static NkDrawVertexLayoutElement.Buffermalloc(int capacity)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemAlloc.static NkDrawVertexLayoutElement.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStack.static NkDrawVertexLayoutElementmalloc(org.lwjgl.system.MemoryStack stack)Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStack.static NkDrawVertexLayoutElementmallocStack()Deprecated.static NkDrawVertexLayoutElement.BuffermallocStack(int capacity)Deprecated.static NkDrawVertexLayoutElement.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static NkDrawVertexLayoutElementmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()the vertex attribute offsetNkDrawVertexLayoutElementoffset(long value)Sets the specified value to theoffset()field.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()
the vertex attribute. One of:VERTEX_POSITIONVERTEX_COLORVERTEX_TEXCOORDVERTEX_ATTRIBUTE_COUNT
-
format
public int format()
the vertex attribute format. One of:
-
offset
public long offset()
the vertex attribute offset
-
attribute
public NkDrawVertexLayoutElement attribute(int value)
Sets the specified value to theattribute()field.
-
format
public NkDrawVertexLayoutElement format(int value)
Sets the specified value to theformat()field.
-
offset
public NkDrawVertexLayoutElement offset(long value)
Sets the specified value to theoffset()field.
-
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
@Deprecated public static NkDrawVertexLayoutElement mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkDrawVertexLayoutElement callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkDrawVertexLayoutElement mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static NkDrawVertexLayoutElement callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static NkDrawVertexLayoutElement.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkDrawVertexLayoutElement.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static NkDrawVertexLayoutElement.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static NkDrawVertexLayoutElement.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static NkDrawVertexLayoutElement malloc(org.lwjgl.system.MemoryStack stack)
Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static NkDrawVertexLayoutElement calloc(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
-
malloc
public static NkDrawVertexLayoutElement.Buffer malloc(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
-
calloc
public static NkDrawVertexLayoutElement.Buffer calloc(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.
-
-