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