public class ParSLViewport
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct parsl_viewport {
float left;
float top;
float right;
float bottom;
}| Modifier and Type | Class and Description |
|---|---|
static class |
ParSLViewport.Buffer
An array of
ParSLViewport structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BOTTOM
The struct member offsets.
|
static int |
LEFT
The struct member offsets.
|
static int |
RIGHT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TOP
The struct member offsets.
|
| Constructor and Description |
|---|
ParSLViewport(java.nio.ByteBuffer container)
Creates a
ParSLViewport instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
float |
bottom()
Returns the value of the
bottom field. |
ParSLViewport |
bottom(float value)
Sets the specified value to the
bottom field. |
static ParSLViewport |
calloc()
Returns a new
ParSLViewport instance allocated with memCalloc. |
static ParSLViewport.Buffer |
calloc(int capacity)
Returns a new
ParSLViewport.Buffer instance allocated with memCalloc. |
static ParSLViewport |
callocStack()
Returns a new
ParSLViewport instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ParSLViewport.Buffer |
callocStack(int capacity)
Returns a new
ParSLViewport.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static ParSLViewport.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLViewport.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ParSLViewport |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLViewport instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static ParSLViewport |
create()
Returns a new
ParSLViewport instance allocated with BufferUtils. |
static ParSLViewport.Buffer |
create(int capacity)
Returns a new
ParSLViewport.Buffer instance allocated with BufferUtils. |
static ParSLViewport |
create(long address)
Returns a new
ParSLViewport instance for the specified memory address. |
static ParSLViewport.Buffer |
create(long address,
int capacity)
Create a
ParSLViewport.Buffer instance at the specified memory. |
static ParSLViewport |
createSafe(long address)
|
static ParSLViewport.Buffer |
createSafe(long address,
int capacity)
|
float |
left()
Returns the value of the
left field. |
ParSLViewport |
left(float value)
Sets the specified value to the
left field. |
static ParSLViewport |
malloc()
Returns a new
ParSLViewport instance allocated with memAlloc. |
static ParSLViewport.Buffer |
malloc(int capacity)
Returns a new
ParSLViewport.Buffer instance allocated with memAlloc. |
static ParSLViewport |
mallocStack()
Returns a new
ParSLViewport instance allocated on the thread-local MemoryStack. |
static ParSLViewport.Buffer |
mallocStack(int capacity)
Returns a new
ParSLViewport.Buffer instance allocated on the thread-local MemoryStack. |
static ParSLViewport.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLViewport.Buffer instance allocated on the specified MemoryStack. |
static ParSLViewport |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
ParSLViewport instance allocated on the specified MemoryStack. |
static float |
nbottom(long struct)
Unsafe version of
bottom(). |
static void |
nbottom(long struct,
float value)
Unsafe version of
bottom. |
static float |
nleft(long struct)
Unsafe version of
left(). |
static void |
nleft(long struct,
float value)
Unsafe version of
left. |
static float |
nright(long struct)
Unsafe version of
right(). |
static void |
nright(long struct,
float value)
Unsafe version of
right. |
static float |
ntop(long struct)
Unsafe version of
top(). |
static void |
ntop(long struct,
float value)
Unsafe version of
top. |
float |
right()
Returns the value of the
right field. |
ParSLViewport |
right(float value)
Sets the specified value to the
right field. |
ParSLViewport |
set(float left,
float top,
float right,
float bottom)
Initializes this struct with the specified values.
|
ParSLViewport |
set(ParSLViewport src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
float |
top()
Returns the value of the
top field. |
ParSLViewport |
top(float value)
Sets the specified value to the
top field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int LEFT
public static final int TOP
public static final int RIGHT
public static final int BOTTOM
public ParSLViewport(java.nio.ByteBuffer container)
ParSLViewport 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 left()
left field.public float top()
top field.public float right()
right field.public float bottom()
bottom field.public ParSLViewport left(float value)
left field.public ParSLViewport top(float value)
top field.public ParSLViewport right(float value)
right field.public ParSLViewport bottom(float value)
bottom field.public ParSLViewport set(float left, float top, float right, float bottom)
public ParSLViewport set(ParSLViewport src)
src - the source structpublic static ParSLViewport malloc()
ParSLViewport instance allocated with memAlloc. The instance must be explicitly freed.public static ParSLViewport calloc()
ParSLViewport instance allocated with memCalloc. The instance must be explicitly freed.public static ParSLViewport create()
ParSLViewport instance allocated with BufferUtils.public static ParSLViewport create(long address)
ParSLViewport instance for the specified memory address.@Nullable public static ParSLViewport createSafe(long address)
public static ParSLViewport.Buffer malloc(int capacity)
ParSLViewport.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ParSLViewport.Buffer calloc(int capacity)
ParSLViewport.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static ParSLViewport.Buffer create(int capacity)
ParSLViewport.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static ParSLViewport.Buffer create(long address, int capacity)
ParSLViewport.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static ParSLViewport.Buffer createSafe(long address, int capacity)
public static ParSLViewport mallocStack()
ParSLViewport instance allocated on the thread-local MemoryStack.public static ParSLViewport callocStack()
ParSLViewport instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static ParSLViewport mallocStack(org.lwjgl.system.MemoryStack stack)
ParSLViewport instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static ParSLViewport callocStack(org.lwjgl.system.MemoryStack stack)
ParSLViewport instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static ParSLViewport.Buffer mallocStack(int capacity)
ParSLViewport.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static ParSLViewport.Buffer callocStack(int capacity)
ParSLViewport.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static ParSLViewport.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ParSLViewport.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static ParSLViewport.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
ParSLViewport.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 nleft(long struct)
left().public static float ntop(long struct)
top().public static float nright(long struct)
right().public static float nbottom(long struct)
bottom().public static void nleft(long struct,
float value)
left.public static void ntop(long struct,
float value)
top.public static void nright(long struct,
float value)
right.public static void nbottom(long struct,
float value)
bottom.Copyright LWJGL. All Rights Reserved. License terms.