Package org.lwjgl.nuklear
Class NkDrawVertexLayoutElement
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class NkDrawVertexLayoutElement
extends Struct<NkDrawVertexLayoutElement>
implements NativeResource
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 ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkDrawVertexLayoutElement(ByteBuffer container) Creates aNkDrawVertexLayoutElementinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintattribute(int value) Sets the specified value to theattributefield.static NkDrawVertexLayoutElementcalloc()Returns a newNkDrawVertexLayoutElementinstance allocated withmemCalloc.calloc(int capacity) Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawVertexLayoutElementcalloc(MemoryStack stack) Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkDrawVertexLayoutElementcreate()Returns a newNkDrawVertexLayoutElementinstance allocated withBufferUtils.create(int capacity) Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withBufferUtils.static NkDrawVertexLayoutElementcreate(long address) Returns a newNkDrawVertexLayoutElementinstance for the specified memory address.create(long address, int capacity) Create aNkDrawVertexLayoutElement.Bufferinstance at the specified memory.static @Nullable NkDrawVertexLayoutElementcreateSafe(long address) static @Nullable NkDrawVertexLayoutElement.BuffercreateSafe(long address, int capacity) intformat()format(int value) Sets the specified value to theformatfield.static NkDrawVertexLayoutElementmalloc()Returns a newNkDrawVertexLayoutElementinstance allocated withmemAlloc.malloc(int capacity) Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStack.static NkDrawVertexLayoutElementmalloc(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()offset(long value) Sets the specified value to theoffsetfield.set(int attribute, int format, long offset) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ATTRIBUTE
public static final int ATTRIBUTEThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
OFFSET
public static final int OFFSETThe struct member offsets.
-
-
Constructor Details
-
NkDrawVertexLayoutElement
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkDrawVertexLayoutElement>
-
attribute
public int attribute()- Returns:
- the value of the
attributefield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
offset
public long offset()- Returns:
- the value of the
offsetfield.
-
attribute
Sets the specified value to theattributefield. -
format
Sets the specified value to theformatfield. -
offset
Sets the specified value to theoffsetfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newNkDrawVertexLayoutElementinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newNkDrawVertexLayoutElementinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newNkDrawVertexLayoutElementinstance allocated withBufferUtils. -
create
Returns a newNkDrawVertexLayoutElementinstance for the specified memory address. -
createSafe
-
malloc
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aNkDrawVertexLayoutElement.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newNkDrawVertexLayoutElementinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newNkDrawVertexLayoutElement.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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.
-