public class NkDrawNullTexture
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
texture – texture handle to a texture with a white pixeluv – coordinates to a white pixel in the texture
struct nk_draw_null_texture {
nk_handle texture;
struct nk_vec2 uv;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkDrawNullTexture.Buffer
An array of
NkDrawNullTexture structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEXTURE
The struct member offsets.
|
static int |
UV
The struct member offsets.
|
| Constructor and Description |
|---|
NkDrawNullTexture(java.nio.ByteBuffer container)
Creates a
NkDrawNullTexture instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkDrawNullTexture |
calloc()
Returns a new
NkDrawNullTexture instance allocated with memCalloc. |
static NkDrawNullTexture.Buffer |
calloc(int capacity)
Returns a new
NkDrawNullTexture.Buffer instance allocated with memCalloc. |
static NkDrawNullTexture |
callocStack()
Returns a new
NkDrawNullTexture instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkDrawNullTexture.Buffer |
callocStack(int capacity)
Returns a new
NkDrawNullTexture.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkDrawNullTexture.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawNullTexture.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkDrawNullTexture |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawNullTexture instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkDrawNullTexture |
create()
Returns a new
NkDrawNullTexture instance allocated with BufferUtils. |
static NkDrawNullTexture.Buffer |
create(int capacity)
Returns a new
NkDrawNullTexture.Buffer instance allocated with BufferUtils. |
static NkDrawNullTexture |
create(long address)
Returns a new
NkDrawNullTexture instance for the specified memory address. |
static NkDrawNullTexture.Buffer |
create(long address,
int capacity)
Create a
NkDrawNullTexture.Buffer instance at the specified memory. |
static NkDrawNullTexture |
createSafe(long address)
|
static NkDrawNullTexture.Buffer |
createSafe(long address,
int capacity)
|
static NkDrawNullTexture |
malloc()
Returns a new
NkDrawNullTexture instance allocated with memAlloc. |
static NkDrawNullTexture.Buffer |
malloc(int capacity)
Returns a new
NkDrawNullTexture.Buffer instance allocated with memAlloc. |
static NkDrawNullTexture |
mallocStack()
Returns a new
NkDrawNullTexture instance allocated on the thread-local MemoryStack. |
static NkDrawNullTexture.Buffer |
mallocStack(int capacity)
Returns a new
NkDrawNullTexture.Buffer instance allocated on the thread-local MemoryStack. |
static NkDrawNullTexture.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawNullTexture.Buffer instance allocated on the specified MemoryStack. |
static NkDrawNullTexture |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkDrawNullTexture instance allocated on the specified MemoryStack. |
static NkHandle |
ntexture(long struct)
Unsafe version of
texture(). |
static void |
ntexture(long struct,
NkHandle value)
Unsafe version of
texture. |
static NkVec2 |
nuv(long struct)
Unsafe version of
uv(). |
static void |
nuv(long struct,
NkVec2 value)
Unsafe version of
uv. |
NkDrawNullTexture |
set(NkDrawNullTexture src)
Copies the specified struct data to this struct.
|
NkDrawNullTexture |
set(NkHandle texture,
NkVec2 uv)
Initializes this struct with the specified values.
|
int |
sizeof() |
NkHandle |
texture()
Returns a
NkHandle view of the texture field. |
NkDrawNullTexture |
texture(java.util.function.Consumer<NkHandle> consumer)
Passes the
texture field to the specified Consumer. |
NkDrawNullTexture |
texture(NkHandle value)
Copies the specified
NkHandle to the texture field. |
NkVec2 |
uv()
Returns a
NkVec2 view of the uv field. |
NkDrawNullTexture |
uv(java.util.function.Consumer<NkVec2> consumer)
Passes the
uv field to the specified Consumer. |
NkDrawNullTexture |
uv(NkVec2 value)
Copies the specified
NkVec2 to the uv field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TEXTURE
public static final int UV
public NkDrawNullTexture(java.nio.ByteBuffer container)
NkDrawNullTexture 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 NkDrawNullTexture texture(NkHandle value)
NkHandle to the texture field.public NkDrawNullTexture texture(java.util.function.Consumer<NkHandle> consumer)
texture field to the specified Consumer.public NkDrawNullTexture uv(NkVec2 value)
NkVec2 to the uv field.public NkDrawNullTexture uv(java.util.function.Consumer<NkVec2> consumer)
uv field to the specified Consumer.public NkDrawNullTexture set(NkHandle texture, NkVec2 uv)
public NkDrawNullTexture set(NkDrawNullTexture src)
src - the source structpublic static NkDrawNullTexture malloc()
NkDrawNullTexture instance allocated with memAlloc. The instance must be explicitly freed.public static NkDrawNullTexture calloc()
NkDrawNullTexture instance allocated with memCalloc. The instance must be explicitly freed.public static NkDrawNullTexture create()
NkDrawNullTexture instance allocated with BufferUtils.public static NkDrawNullTexture create(long address)
NkDrawNullTexture instance for the specified memory address.@Nullable public static NkDrawNullTexture createSafe(long address)
public static NkDrawNullTexture.Buffer malloc(int capacity)
NkDrawNullTexture.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkDrawNullTexture.Buffer calloc(int capacity)
NkDrawNullTexture.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkDrawNullTexture.Buffer create(int capacity)
NkDrawNullTexture.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkDrawNullTexture.Buffer create(long address, int capacity)
NkDrawNullTexture.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkDrawNullTexture.Buffer createSafe(long address, int capacity)
public static NkDrawNullTexture mallocStack()
NkDrawNullTexture instance allocated on the thread-local MemoryStack.public static NkDrawNullTexture callocStack()
NkDrawNullTexture instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkDrawNullTexture mallocStack(org.lwjgl.system.MemoryStack stack)
NkDrawNullTexture instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkDrawNullTexture callocStack(org.lwjgl.system.MemoryStack stack)
NkDrawNullTexture instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkDrawNullTexture.Buffer mallocStack(int capacity)
NkDrawNullTexture.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkDrawNullTexture.Buffer callocStack(int capacity)
NkDrawNullTexture.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkDrawNullTexture.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkDrawNullTexture.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkDrawNullTexture.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkDrawNullTexture.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacityCopyright LWJGL. All Rights Reserved. License terms.