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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbDeviceIsConnected()Returns the value of thebDeviceIsConnectedfield.TrackedDevicePose.BufferbDeviceIsConnected(boolean value)Sets the specified value to thebDeviceIsConnectedfield.booleanbPoseIsValid()Returns the value of thebPoseIsValidfield.TrackedDevicePose.BufferbPoseIsValid(boolean value)Sets the specified value to thebPoseIsValidfield.inteTrackingResult()Returns the value of theeTrackingResultfield.TrackedDevicePose.BuffereTrackingResult(int value)Sets the specified value to theeTrackingResultfield.HmdMatrix34mDeviceToAbsoluteTracking()Returns aHmdMatrix34view of themDeviceToAbsoluteTrackingfield.TrackedDevicePose.BuffermDeviceToAbsoluteTracking(java.util.function.Consumer<HmdMatrix34> consumer)Passes themDeviceToAbsoluteTrackingfield to the specifiedConsumer.TrackedDevicePose.BuffermDeviceToAbsoluteTracking(HmdMatrix34 value)Copies the specifiedHmdMatrix34to themDeviceToAbsoluteTrackingfield.HmdVector3vAngularVelocity()Returns aHmdVector3view of thevAngularVelocityfield.TrackedDevicePose.BuffervAngularVelocity(java.util.function.Consumer<HmdVector3> consumer)Passes thevAngularVelocityfield to the specifiedConsumer.TrackedDevicePose.BuffervAngularVelocity(HmdVector3 value)Copies the specifiedHmdVector3to thevAngularVelocityfield.HmdVector3vVelocity()Returns aHmdVector3view of thevVelocityfield.TrackedDevicePose.BuffervVelocity(java.util.function.Consumer<HmdVector3> consumer)Passes thevVelocityfield to the specifiedConsumer.TrackedDevicePose.BuffervVelocity(HmdVector3 value)Copies the specifiedHmdVector3to thevVelocityfield.
-
-
-
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 aHmdMatrix34view of themDeviceToAbsoluteTrackingfield.
-
vVelocity
public HmdVector3 vVelocity()
Returns aHmdVector3view of thevVelocityfield.
-
vAngularVelocity
public HmdVector3 vAngularVelocity()
Returns aHmdVector3view of thevAngularVelocityfield.
-
eTrackingResult
public int eTrackingResult()
Returns the value of theeTrackingResultfield.
-
bPoseIsValid
public boolean bPoseIsValid()
Returns the value of thebPoseIsValidfield.
-
bDeviceIsConnected
public boolean bDeviceIsConnected()
Returns the value of thebDeviceIsConnectedfield.
-
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 thevVelocityfield.
-
vVelocity
public TrackedDevicePose.Buffer vVelocity(java.util.function.Consumer<HmdVector3> consumer)
Passes thevVelocityfield to the specifiedConsumer.
-
vAngularVelocity
public TrackedDevicePose.Buffer vAngularVelocity(HmdVector3 value)
Copies the specifiedHmdVector3to thevAngularVelocityfield.
-
vAngularVelocity
public TrackedDevicePose.Buffer vAngularVelocity(java.util.function.Consumer<HmdVector3> consumer)
Passes thevAngularVelocityfield to the specifiedConsumer.
-
eTrackingResult
public TrackedDevicePose.Buffer eTrackingResult(int value)
Sets the specified value to theeTrackingResultfield.
-
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 thebDeviceIsConnectedfield.
-
-