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