Package org.lwjgl.openvr
Class CompositorOverlaySettings.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CompositorOverlaySettings,CompositorOverlaySettings.Buffer>
-
- org.lwjgl.openvr.CompositorOverlaySettings.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<CompositorOverlaySettings>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- CompositorOverlaySettings
public static class CompositorOverlaySettings.Buffer extends org.lwjgl.system.StructBuffer<CompositorOverlaySettings,CompositorOverlaySettings.Buffer> implements org.lwjgl.system.NativeResource
An array ofCompositorOverlaySettings
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
alpha()
Returns the value of thealpha
field.CompositorOverlaySettings.Buffer
alpha(float value)
Sets the specified value to thealpha
field.boolean
antialias()
Returns the value of theantialias
field.CompositorOverlaySettings.Buffer
antialias(boolean value)
Sets the specified value to theantialias
field.boolean
curved()
Returns the value of thecurved
field.CompositorOverlaySettings.Buffer
curved(boolean value)
Sets the specified value to thecurved
field.float
distance()
Returns the value of thedistance
field.CompositorOverlaySettings.Buffer
distance(float value)
Sets the specified value to thedistance
field.float
gridDivs()
Returns the value of thegridDivs
field.CompositorOverlaySettings.Buffer
gridDivs(float value)
Sets the specified value to thegridDivs
field.float
gridScale()
Returns the value of thegridScale
field.CompositorOverlaySettings.Buffer
gridScale(float value)
Sets the specified value to thegridScale
field.float
gridWidth()
Returns the value of thegridWidth
field.CompositorOverlaySettings.Buffer
gridWidth(float value)
Sets the specified value to thegridWidth
field.float
scale()
Returns the value of thescale
field.CompositorOverlaySettings.Buffer
scale(float value)
Sets the specified value to thescale
field.int
size()
Returns the value of thesize
field.CompositorOverlaySettings.Buffer
size(int value)
Sets the specified value to thesize
field.HmdMatrix44
transform()
Returns aHmdMatrix44
view of thetransform
field.CompositorOverlaySettings.Buffer
transform(java.util.function.Consumer<HmdMatrix44> consumer)
Passes thetransform
field to the specifiedConsumer
.CompositorOverlaySettings.Buffer
transform(HmdMatrix44 value)
Copies the specifiedHmdMatrix44
to thetransform
field.float
uOffset()
Returns the value of theuOffset
field.CompositorOverlaySettings.Buffer
uOffset(float value)
Sets the specified value to theuOffset
field.float
uScale()
Returns the value of theuScale
field.CompositorOverlaySettings.Buffer
uScale(float value)
Sets the specified value to theuScale
field.float
vOffset()
Returns the value of thevOffset
field.CompositorOverlaySettings.Buffer
vOffset(float value)
Sets the specified value to thevOffset
field.float
vScale()
Returns the value of thevScale
field.CompositorOverlaySettings.Buffer
vScale(float value)
Sets the specified value to thevScale
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCompositorOverlaySettings.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 byCompositorOverlaySettings.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
-
size
public int size()
Returns the value of thesize
field.
-
curved
public boolean curved()
Returns the value of thecurved
field.
-
antialias
public boolean antialias()
Returns the value of theantialias
field.
-
scale
public float scale()
Returns the value of thescale
field.
-
distance
public float distance()
Returns the value of thedistance
field.
-
alpha
public float alpha()
Returns the value of thealpha
field.
-
uOffset
public float uOffset()
Returns the value of theuOffset
field.
-
vOffset
public float vOffset()
Returns the value of thevOffset
field.
-
uScale
public float uScale()
Returns the value of theuScale
field.
-
vScale
public float vScale()
Returns the value of thevScale
field.
-
gridDivs
public float gridDivs()
Returns the value of thegridDivs
field.
-
gridWidth
public float gridWidth()
Returns the value of thegridWidth
field.
-
gridScale
public float gridScale()
Returns the value of thegridScale
field.
-
transform
public HmdMatrix44 transform()
Returns aHmdMatrix44
view of thetransform
field.
-
size
public CompositorOverlaySettings.Buffer size(int value)
Sets the specified value to thesize
field.
-
curved
public CompositorOverlaySettings.Buffer curved(boolean value)
Sets the specified value to thecurved
field.
-
antialias
public CompositorOverlaySettings.Buffer antialias(boolean value)
Sets the specified value to theantialias
field.
-
scale
public CompositorOverlaySettings.Buffer scale(float value)
Sets the specified value to thescale
field.
-
distance
public CompositorOverlaySettings.Buffer distance(float value)
Sets the specified value to thedistance
field.
-
alpha
public CompositorOverlaySettings.Buffer alpha(float value)
Sets the specified value to thealpha
field.
-
uOffset
public CompositorOverlaySettings.Buffer uOffset(float value)
Sets the specified value to theuOffset
field.
-
vOffset
public CompositorOverlaySettings.Buffer vOffset(float value)
Sets the specified value to thevOffset
field.
-
uScale
public CompositorOverlaySettings.Buffer uScale(float value)
Sets the specified value to theuScale
field.
-
vScale
public CompositorOverlaySettings.Buffer vScale(float value)
Sets the specified value to thevScale
field.
-
gridDivs
public CompositorOverlaySettings.Buffer gridDivs(float value)
Sets the specified value to thegridDivs
field.
-
gridWidth
public CompositorOverlaySettings.Buffer gridWidth(float value)
Sets the specified value to thegridWidth
field.
-
gridScale
public CompositorOverlaySettings.Buffer gridScale(float value)
Sets the specified value to thegridScale
field.
-
transform
public CompositorOverlaySettings.Buffer transform(HmdMatrix44 value)
Copies the specifiedHmdMatrix44
to thetransform
field.
-
transform
public CompositorOverlaySettings.Buffer transform(java.util.function.Consumer<HmdMatrix44> consumer)
Passes thetransform
field to the specifiedConsumer
.
-
-