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 ofParSLViewport
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
bottom()
Returns the value of thebottom
field.ParSLViewport.Buffer
bottom(float value)
Sets the specified value to thebottom
field.float
left()
Returns the value of theleft
field.ParSLViewport.Buffer
left(float value)
Sets the specified value to theleft
field.float
right()
Returns the value of theright
field.ParSLViewport.Buffer
right(float value)
Sets the specified value to theright
field.float
top()
Returns the value of thetop
field.ParSLViewport.Buffer
top(float value)
Sets the specified value to thetop
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newParSLViewport.Buffer
instance 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 theleft
field.
-
top
public float top()
Returns the value of thetop
field.
-
right
public float right()
Returns the value of theright
field.
-
bottom
public float bottom()
Returns the value of thebottom
field.
-
left
public ParSLViewport.Buffer left(float value)
Sets the specified value to theleft
field.
-
top
public ParSLViewport.Buffer top(float value)
Sets the specified value to thetop
field.
-
right
public ParSLViewport.Buffer right(float value)
Sets the specified value to theright
field.
-
bottom
public ParSLViewport.Buffer bottom(float value)
Sets the specified value to thebottom
field.
-
-