public class VkOffset2D
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
x – the x offset.y – the y offset.
struct VkOffset2D {
int32_t x;
int32_t y;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkOffset2D.Buffer
An array of
VkOffset2D 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 |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
VkOffset2D(java.nio.ByteBuffer container)
Creates a
VkOffset2D instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkOffset2D |
calloc()
Returns a new
VkOffset2D instance allocated with memCalloc. |
static VkOffset2D.Buffer |
calloc(int capacity)
Returns a new
VkOffset2D.Buffer instance allocated with memCalloc. |
static VkOffset2D |
callocStack()
Returns a new
VkOffset2D instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkOffset2D.Buffer |
callocStack(int capacity)
Returns a new
VkOffset2D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkOffset2D.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkOffset2D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkOffset2D |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkOffset2D instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkOffset2D |
create()
Returns a new
VkOffset2D instance allocated with BufferUtils. |
static VkOffset2D.Buffer |
create(int capacity)
Returns a new
VkOffset2D.Buffer instance allocated with BufferUtils. |
static VkOffset2D |
create(long address)
Returns a new
VkOffset2D instance for the specified memory address. |
static VkOffset2D.Buffer |
create(long address,
int capacity)
Create a
VkOffset2D.Buffer instance at the specified memory. |
static VkOffset2D |
createSafe(long address)
|
static VkOffset2D.Buffer |
createSafe(long address,
int capacity)
|
static VkOffset2D |
malloc()
Returns a new
VkOffset2D instance allocated with memAlloc. |
static VkOffset2D.Buffer |
malloc(int capacity)
Returns a new
VkOffset2D.Buffer instance allocated with memAlloc. |
static VkOffset2D |
mallocStack()
Returns a new
VkOffset2D instance allocated on the thread-local MemoryStack. |
static VkOffset2D.Buffer |
mallocStack(int capacity)
Returns a new
VkOffset2D.Buffer instance allocated on the thread-local MemoryStack. |
static VkOffset2D.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkOffset2D.Buffer instance allocated on the specified MemoryStack. |
static VkOffset2D |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkOffset2D instance allocated on the specified MemoryStack. |
static int |
nx(long struct)
Unsafe version of
x(). |
static void |
nx(long struct,
int value)
Unsafe version of
x. |
static int |
ny(long struct)
Unsafe version of
y(). |
static void |
ny(long struct,
int value)
Unsafe version of
y. |
VkOffset2D |
set(int x,
int y)
Initializes this struct with the specified values.
|
VkOffset2D |
set(VkOffset2D src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
x()
Returns the value of the
x field. |
VkOffset2D |
x(int value)
Sets the specified value to the
x field. |
int |
y()
Returns the value of the
y field. |
VkOffset2D |
y(int value)
Sets the specified value to the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int X
public static final int Y
public VkOffset2D(java.nio.ByteBuffer container)
VkOffset2D 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 int x()
x field.public int y()
y field.public VkOffset2D x(int value)
x field.public VkOffset2D y(int value)
y field.public VkOffset2D set(int x, int y)
public VkOffset2D set(VkOffset2D src)
src - the source structpublic static VkOffset2D malloc()
VkOffset2D instance allocated with memAlloc. The instance must be explicitly freed.public static VkOffset2D calloc()
VkOffset2D instance allocated with memCalloc. The instance must be explicitly freed.public static VkOffset2D create()
VkOffset2D instance allocated with BufferUtils.public static VkOffset2D create(long address)
VkOffset2D instance for the specified memory address.@Nullable public static VkOffset2D createSafe(long address)
public static VkOffset2D.Buffer malloc(int capacity)
VkOffset2D.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkOffset2D.Buffer calloc(int capacity)
VkOffset2D.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkOffset2D.Buffer create(int capacity)
VkOffset2D.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkOffset2D.Buffer create(long address, int capacity)
VkOffset2D.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkOffset2D.Buffer createSafe(long address, int capacity)
public static VkOffset2D mallocStack()
VkOffset2D instance allocated on the thread-local MemoryStack.public static VkOffset2D callocStack()
VkOffset2D instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkOffset2D mallocStack(org.lwjgl.system.MemoryStack stack)
VkOffset2D instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkOffset2D callocStack(org.lwjgl.system.MemoryStack stack)
VkOffset2D instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkOffset2D.Buffer mallocStack(int capacity)
VkOffset2D.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkOffset2D.Buffer callocStack(int capacity)
VkOffset2D.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkOffset2D.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkOffset2D.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkOffset2D.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkOffset2D.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nx(long struct)
x().public static int ny(long struct)
y().public static void nx(long struct,
int value)
x.public static void ny(long struct,
int value)
y.Copyright LWJGL. All Rights Reserved. License terms.