Package org.lwjgl.util.par
Class ParSLViewport.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<ParSLViewport,ParSLViewport.Buffer>
-
- org.lwjgl.util.par.ParSLViewport.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<ParSLViewport>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- ParSLViewport
public static class ParSLViewport.Buffer extends org.lwjgl.system.StructBuffer<ParSLViewport,ParSLViewport.Buffer> implements org.lwjgl.system.NativeResource
An array ofParSLViewportstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatbottom()ParSLViewport.Bufferbottom(float value)Sets the specified value to thebottomfield.floatleft()ParSLViewport.Bufferleft(float value)Sets the specified value to theleftfield.floatright()ParSLViewport.Bufferright(float value)Sets the specified value to therightfield.floattop()ParSLViewport.Buffertop(float value)Sets the specified value to thetopfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newParSLViewport.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byParSLViewport.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
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.Buffer left(float value)
Sets the specified value to theleftfield.
-
top
public ParSLViewport.Buffer top(float value)
Sets the specified value to thetopfield.
-
right
public ParSLViewport.Buffer right(float value)
Sets the specified value to therightfield.
-
bottom
public ParSLViewport.Buffer bottom(float value)
Sets the specified value to thebottomfield.
-
-