Package org.lwjgl.ovr
Class OVRPoseStatef.Buffer
- java.lang.Object
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<OVRPoseStatef,OVRPoseStatef.Buffer>
-
- org.lwjgl.ovr.OVRPoseStatef.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<OVRPoseStatef>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- OVRPoseStatef
public static class OVRPoseStatef.Buffer extends org.lwjgl.system.StructBuffer<OVRPoseStatef,OVRPoseStatef.Buffer> implements org.lwjgl.system.NativeResource
An array ofOVRPoseStatefstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newOVRPoseStatef.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OVRVector3fAngularAcceleration()Returns aOVRVector3fview of theAngularAccelerationfield.OVRPoseStatef.BufferAngularAcceleration(java.util.function.Consumer<OVRVector3f> consumer)Passes theAngularAccelerationfield to the specifiedConsumer.OVRVector3fAngularVelocity()Returns aOVRVector3fview of theAngularVelocityfield.OVRPoseStatef.BufferAngularVelocity(java.util.function.Consumer<OVRVector3f> consumer)Passes theAngularVelocityfield to the specifiedConsumer.OVRVector3fLinearAcceleration()Returns aOVRVector3fview of theLinearAccelerationfield.OVRPoseStatef.BufferLinearAcceleration(java.util.function.Consumer<OVRVector3f> consumer)Passes theLinearAccelerationfield to the specifiedConsumer.OVRVector3fLinearVelocity()Returns aOVRVector3fview of theLinearVelocityfield.OVRPoseStatef.BufferLinearVelocity(java.util.function.Consumer<OVRVector3f> consumer)Passes theLinearVelocityfield to the specifiedConsumer.intsizeof()OVRPosefThePose()Returns aOVRPosefview of theThePosefield.OVRPoseStatef.BufferThePose(java.util.function.Consumer<OVRPosef> consumer)Passes theThePosefield to the specifiedConsumer.doubleTimeInSeconds()Returns the value of theTimeInSecondsfield.-
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
-
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newOVRPoseStatef.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 byOVRPoseStatef.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
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.CustomBuffer<OVRPoseStatef.Buffer>
-
ThePose
public OVRPoseStatef.Buffer ThePose(java.util.function.Consumer<OVRPosef> consumer)
Passes theThePosefield to the specifiedConsumer.
-
AngularVelocity
public OVRVector3f AngularVelocity()
Returns aOVRVector3fview of theAngularVelocityfield.
-
AngularVelocity
public OVRPoseStatef.Buffer AngularVelocity(java.util.function.Consumer<OVRVector3f> consumer)
Passes theAngularVelocityfield to the specifiedConsumer.
-
LinearVelocity
public OVRVector3f LinearVelocity()
Returns aOVRVector3fview of theLinearVelocityfield.
-
LinearVelocity
public OVRPoseStatef.Buffer LinearVelocity(java.util.function.Consumer<OVRVector3f> consumer)
Passes theLinearVelocityfield to the specifiedConsumer.
-
AngularAcceleration
public OVRVector3f AngularAcceleration()
Returns aOVRVector3fview of theAngularAccelerationfield.
-
AngularAcceleration
public OVRPoseStatef.Buffer AngularAcceleration(java.util.function.Consumer<OVRVector3f> consumer)
Passes theAngularAccelerationfield to the specifiedConsumer.
-
LinearAcceleration
public OVRVector3f LinearAcceleration()
Returns aOVRVector3fview of theLinearAccelerationfield.
-
LinearAcceleration
public OVRPoseStatef.Buffer LinearAcceleration(java.util.function.Consumer<OVRVector3f> consumer)
Passes theLinearAccelerationfield to the specifiedConsumer.
-
TimeInSeconds
public double TimeInSeconds()
Returns the value of theTimeInSecondsfield.
-
-