Package org.lwjgl.openxr
Class XrHapticVibration.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrHapticVibration,XrHapticVibration.Buffer>
-
- org.lwjgl.openxr.XrHapticVibration.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrHapticVibration>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrHapticVibration
public static class XrHapticVibration.Buffer extends org.lwjgl.system.StructBuffer<XrHapticVibration,XrHapticVibration.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrHapticVibrationstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatamplitude()XrHapticVibration.Bufferamplitude(float value)Sets the specified value to theXrHapticVibration.amplitude()field.longduration()XrHapticVibration.Bufferduration(long value)Sets the specified value to theXrHapticVibration.duration()field.floatfrequency()XrHapticVibration.Bufferfrequency(float value)Sets the specified value to theXrHapticVibration.frequency()field.longnext()XrHapticVibration.Buffernext(long value)Sets the specified value to theXrHapticVibration.next()field.inttype()XrHapticVibration.Buffertype(int value)Sets the specified value to theXrHapticVibration.type()field.XrHapticVibration.Buffertype$Default()Sets theTYPE_HAPTIC_VIBRATIONvalue to theXrHapticVibration.type()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrHapticVibration.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 byXrHapticVibration.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
-
type
public int type()
- Returns:
- the value of the
XrHapticVibration.type()field.
-
next
public long next()
- Returns:
- the value of the
XrHapticVibration.next()field.
-
duration
public long duration()
- Returns:
- the value of the
XrHapticVibration.duration()field.
-
frequency
public float frequency()
- Returns:
- the value of the
XrHapticVibration.frequency()field.
-
amplitude
public float amplitude()
- Returns:
- the value of the
XrHapticVibration.amplitude()field.
-
type
public XrHapticVibration.Buffer type(int value)
Sets the specified value to theXrHapticVibration.type()field.
-
type$Default
public XrHapticVibration.Buffer type$Default()
Sets theTYPE_HAPTIC_VIBRATIONvalue to theXrHapticVibration.type()field.
-
next
public XrHapticVibration.Buffer next(long value)
Sets the specified value to theXrHapticVibration.next()field.
-
duration
public XrHapticVibration.Buffer duration(long value)
Sets the specified value to theXrHapticVibration.duration()field.
-
frequency
public XrHapticVibration.Buffer frequency(float value)
Sets the specified value to theXrHapticVibration.frequency()field.
-
amplitude
public XrHapticVibration.Buffer amplitude(float value)
Sets the specified value to theXrHapticVibration.amplitude()field.
-
-