Package org.lwjgl.util.par
Class ParSLViewport
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.par.ParSLViewport
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class ParSLViewport extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceViewport for streamline seed placement.Layout
struct parsl_viewport { float left; float top; float right; float bottom; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParSLViewport.BufferAn array ofParSLViewportstructs.
-
Constructor Summary
Constructors Constructor Description ParSLViewport(java.nio.ByteBuffer container)Creates aParSLViewportinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description floatbottom()ParSLViewportbottom(float value)Sets the specified value to thebottomfield.static ParSLViewportcalloc()Returns a newParSLViewportinstance allocated withmemCalloc.static ParSLViewport.Buffercalloc(int capacity)Returns a newParSLViewport.Bufferinstance allocated withmemCalloc.static ParSLViewport.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newParSLViewport.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLViewportcalloc(org.lwjgl.system.MemoryStack stack)Returns a newParSLViewportinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ParSLViewportcallocStack()Deprecated.static ParSLViewport.BuffercallocStack(int capacity)Deprecated.static ParSLViewport.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ParSLViewportcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static ParSLViewportcreate()Returns a newParSLViewportinstance allocated withBufferUtils.static ParSLViewport.Buffercreate(int capacity)Returns a newParSLViewport.Bufferinstance allocated withBufferUtils.static ParSLViewportcreate(long address)Returns a newParSLViewportinstance for the specified memory address.static ParSLViewport.Buffercreate(long address, int capacity)Create aParSLViewport.Bufferinstance at the specified memory.static ParSLViewportcreateSafe(long address)static ParSLViewport.BuffercreateSafe(long address, int capacity)floatleft()ParSLViewportleft(float value)Sets the specified value to theleftfield.static ParSLViewportmalloc()Returns a newParSLViewportinstance allocated withmemAlloc.static ParSLViewport.Buffermalloc(int capacity)Returns a newParSLViewport.Bufferinstance allocated withmemAlloc.static ParSLViewport.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newParSLViewport.Bufferinstance allocated on the specifiedMemoryStack.static ParSLViewportmalloc(org.lwjgl.system.MemoryStack stack)Returns a newParSLViewportinstance allocated on the specifiedMemoryStack.static ParSLViewportmallocStack()Deprecated.static ParSLViewport.BuffermallocStack(int capacity)Deprecated.static ParSLViewport.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static ParSLViewportmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static floatnbottom(long struct)Unsafe version ofbottom().static voidnbottom(long struct, float value)Unsafe version ofbottom.static floatnleft(long struct)Unsafe version ofleft().static voidnleft(long struct, float value)Unsafe version ofleft.static floatnright(long struct)Unsafe version ofright().static voidnright(long struct, float value)Unsafe version ofright.static floatntop(long struct)Unsafe version oftop().static voidntop(long struct, float value)Unsafe version oftop.floatright()ParSLViewportright(float value)Sets the specified value to therightfield.ParSLViewportset(float left, float top, float right, float bottom)Initializes this struct with the specified values.ParSLViewportset(ParSLViewport src)Copies the specified struct data to this struct.intsizeof()floattop()ParSLViewporttop(float value)Sets the specified value to thetopfield.
-
-
-
Constructor Detail
-
ParSLViewport
public ParSLViewport(java.nio.ByteBuffer container)
Creates aParSLViewportinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
left
public float left()
- Returns:
- the value of the
leftfield.
-
top
public float top()
- Returns:
- the value of the
topfield.
-
right
public float right()
- Returns:
- the value of the
rightfield.
-
bottom
public float bottom()
- Returns:
- the value of the
bottomfield.
-
left
public ParSLViewport left(float value)
Sets the specified value to theleftfield.
-
top
public ParSLViewport top(float value)
Sets the specified value to thetopfield.
-
right
public ParSLViewport right(float value)
Sets the specified value to therightfield.
-
bottom
public ParSLViewport bottom(float value)
Sets the specified value to thebottomfield.
-
set
public ParSLViewport set(float left, float top, float right, float bottom)
Initializes this struct with the specified values.
-
set
public ParSLViewport set(ParSLViewport src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static ParSLViewport malloc()
Returns a newParSLViewportinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static ParSLViewport calloc()
Returns a newParSLViewportinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static ParSLViewport create()
Returns a newParSLViewportinstance allocated withBufferUtils.
-
create
public static ParSLViewport create(long address)
Returns a newParSLViewportinstance for the specified memory address.
-
createSafe
@Nullable public static ParSLViewport createSafe(long address)
-
malloc
public static ParSLViewport.Buffer malloc(int capacity)
Returns a newParSLViewport.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static ParSLViewport.Buffer calloc(int capacity)
Returns a newParSLViewport.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static ParSLViewport.Buffer create(int capacity)
Returns a newParSLViewport.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static ParSLViewport.Buffer create(long address, int capacity)
Create aParSLViewport.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static ParSLViewport.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static ParSLViewport mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLViewport callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLViewport mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLViewport callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLViewport.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLViewport.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static ParSLViewport.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static ParSLViewport.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static ParSLViewport malloc(org.lwjgl.system.MemoryStack stack)
Returns a newParSLViewportinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static ParSLViewport calloc(org.lwjgl.system.MemoryStack stack)
Returns a newParSLViewportinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static ParSLViewport.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newParSLViewport.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static ParSLViewport.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newParSLViewport.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nleft
public static float nleft(long struct)
Unsafe version ofleft().
-
ntop
public static float ntop(long struct)
Unsafe version oftop().
-
nright
public static float nright(long struct)
Unsafe version ofright().
-
nbottom
public static float nbottom(long struct)
Unsafe version ofbottom().
-
nleft
public static void nleft(long struct, float value)Unsafe version ofleft.
-
ntop
public static void ntop(long struct, float value)Unsafe version oftop.
-
nright
public static void nright(long struct, float value)Unsafe version ofright.
-
nbottom
public static void nbottom(long struct, float value)Unsafe version ofbottom.
-
-