Package org.lwjgl.openvr
Class TrackedDevicePose.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<TrackedDevicePose,TrackedDevicePose.Buffer>
-
- org.lwjgl.openvr.TrackedDevicePose.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<TrackedDevicePose>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- TrackedDevicePose
public static class TrackedDevicePose.Buffer extends org.lwjgl.system.StructBuffer<TrackedDevicePose,TrackedDevicePose.Buffer> implements org.lwjgl.system.NativeResource
An array ofTrackedDevicePosestructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newTrackedDevicePose.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 byTrackedDevicePose.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
-
mDeviceToAbsoluteTracking
public HmdMatrix34 mDeviceToAbsoluteTracking()
- Returns:
- a
HmdMatrix34view of themDeviceToAbsoluteTrackingfield.
-
vVelocity
public HmdVector3 vVelocity()
- Returns:
- a
HmdVector3view of theTrackedDevicePose.vVelocity()field.
-
vAngularVelocity
public HmdVector3 vAngularVelocity()
- Returns:
- a
HmdVector3view of theTrackedDevicePose.vAngularVelocity()field.
-
eTrackingResult
public int eTrackingResult()
- Returns:
- the value of the
TrackedDevicePose.eTrackingResult()field.
-
bPoseIsValid
public boolean bPoseIsValid()
- Returns:
- the value of the
bPoseIsValidfield.
-
bDeviceIsConnected
public boolean bDeviceIsConnected()
- Returns:
- the value of the
TrackedDevicePose.bDeviceIsConnected()field.
-
mDeviceToAbsoluteTracking
public TrackedDevicePose.Buffer mDeviceToAbsoluteTracking(HmdMatrix34 value)
Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTrackingfield.
-
mDeviceToAbsoluteTracking
public TrackedDevicePose.Buffer mDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)
Passes themDeviceToAbsoluteTrackingfield to the specifiedConsumer.
-
vVelocity
public TrackedDevicePose.Buffer vVelocity(HmdVector3 value)
Copies the specifiedHmdVector3to theTrackedDevicePose.vVelocity()field.
-
vVelocity
public TrackedDevicePose.Buffer vVelocity(java.util.function.Consumer<HmdVector3> consumer)
Passes theTrackedDevicePose.vVelocity()field to the specifiedConsumer.
-
vAngularVelocity
public TrackedDevicePose.Buffer vAngularVelocity(HmdVector3 value)
Copies the specifiedHmdVector3to theTrackedDevicePose.vAngularVelocity()field.
-
vAngularVelocity
public TrackedDevicePose.Buffer vAngularVelocity(java.util.function.Consumer<HmdVector3> consumer)
Passes theTrackedDevicePose.vAngularVelocity()field to the specifiedConsumer.
-
eTrackingResult
public TrackedDevicePose.Buffer eTrackingResult(int value)
Sets the specified value to theTrackedDevicePose.eTrackingResult()field.
-
bPoseIsValid
public TrackedDevicePose.Buffer bPoseIsValid(boolean value)
Sets the specified value to thebPoseIsValidfield.
-
bDeviceIsConnected
public TrackedDevicePose.Buffer bDeviceIsConnected(boolean value)
Sets the specified value to theTrackedDevicePose.bDeviceIsConnected()field.
-
-