Package org.lwjgl.openvr
Class VRSkeletalSummaryData
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VRSkeletalSummaryData
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VRSkeletalSummaryData extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceContains summary information about the current skeletal pose.Member documentation
flFingerCurl[5]– The amount that each finger is 'curled' inwards towards the palm.In the case of the thumb, this represents how much the thumb is wrapped around the fist. 0 means straight, 1 means fully curled.
flFingerSplay[4]– The amount that each pair of adjacent fingers are separated.0 means the digits are touching, 1 means they are fully separated.
Layout
struct VRSkeletalSummaryData_t { float flFingerCurl[5]; float flFingerSplay[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVRSkeletalSummaryData.BufferAn array ofVRSkeletalSummaryDatastructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLFINGERCURL
FLFINGERSPLAYThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRSkeletalSummaryData(java.nio.ByteBuffer container)Creates aVRSkeletalSummaryDatainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRSkeletalSummaryDatacalloc()Returns a newVRSkeletalSummaryDatainstance allocated withmemCalloc.static VRSkeletalSummaryData.Buffercalloc(int capacity)Returns a newVRSkeletalSummaryData.Bufferinstance allocated withmemCalloc.static VRSkeletalSummaryDatacallocStack()Returns a newVRSkeletalSummaryDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRSkeletalSummaryData.BuffercallocStack(int capacity)Returns a newVRSkeletalSummaryData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VRSkeletalSummaryData.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRSkeletalSummaryData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRSkeletalSummaryDatacallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRSkeletalSummaryDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VRSkeletalSummaryDatacreate()Returns a newVRSkeletalSummaryDatainstance allocated withBufferUtils.static VRSkeletalSummaryData.Buffercreate(int capacity)Returns a newVRSkeletalSummaryData.Bufferinstance allocated withBufferUtils.static VRSkeletalSummaryDatacreate(long address)Returns a newVRSkeletalSummaryDatainstance for the specified memory address.static VRSkeletalSummaryData.Buffercreate(long address, int capacity)Create aVRSkeletalSummaryData.Bufferinstance at the specified memory.static VRSkeletalSummaryDatacreateSafe(long address)static VRSkeletalSummaryData.BuffercreateSafe(long address, int capacity)java.nio.FloatBufferflFingerCurl()Returns aFloatBufferview of theflFingerCurlfield.floatflFingerCurl(int index)Returns the value at the specified index of theflFingerCurlfield.java.nio.FloatBufferflFingerSplay()Returns aFloatBufferview of theflFingerSplayfield.floatflFingerSplay(int index)Returns the value at the specified index of theflFingerSplayfield.static VRSkeletalSummaryDatamalloc()Returns a newVRSkeletalSummaryDatainstance allocated withmemAlloc.static VRSkeletalSummaryData.Buffermalloc(int capacity)Returns a newVRSkeletalSummaryData.Bufferinstance allocated withmemAlloc.static VRSkeletalSummaryDatamallocStack()Returns a newVRSkeletalSummaryDatainstance allocated on the thread-localMemoryStack.static VRSkeletalSummaryData.BuffermallocStack(int capacity)Returns a newVRSkeletalSummaryData.Bufferinstance allocated on the thread-localMemoryStack.static VRSkeletalSummaryData.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVRSkeletalSummaryData.Bufferinstance allocated on the specifiedMemoryStack.static VRSkeletalSummaryDatamallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVRSkeletalSummaryDatainstance allocated on the specifiedMemoryStack.static java.nio.FloatBuffernflFingerCurl(long struct)Unsafe version offlFingerCurl().static floatnflFingerCurl(long struct, int index)Unsafe version offlFingerCurl.static java.nio.FloatBuffernflFingerSplay(long struct)Unsafe version offlFingerSplay().static floatnflFingerSplay(long struct, int index)Unsafe version offlFingerSplay.intsizeof()
-
-
-
Constructor Detail
-
VRSkeletalSummaryData
public VRSkeletalSummaryData(java.nio.ByteBuffer container)
Creates aVRSkeletalSummaryDatainstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
flFingerCurl
public java.nio.FloatBuffer flFingerCurl()
Returns aFloatBufferview of theflFingerCurlfield.
-
flFingerCurl
public float flFingerCurl(int index)
Returns the value at the specified index of theflFingerCurlfield.
-
flFingerSplay
public java.nio.FloatBuffer flFingerSplay()
Returns aFloatBufferview of theflFingerSplayfield.
-
flFingerSplay
public float flFingerSplay(int index)
Returns the value at the specified index of theflFingerSplayfield.
-
malloc
public static VRSkeletalSummaryData malloc()
Returns a newVRSkeletalSummaryDatainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VRSkeletalSummaryData calloc()
Returns a newVRSkeletalSummaryDatainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VRSkeletalSummaryData create()
Returns a newVRSkeletalSummaryDatainstance allocated withBufferUtils.
-
create
public static VRSkeletalSummaryData create(long address)
Returns a newVRSkeletalSummaryDatainstance for the specified memory address.
-
createSafe
@Nullable public static VRSkeletalSummaryData createSafe(long address)
-
malloc
public static VRSkeletalSummaryData.Buffer malloc(int capacity)
Returns a newVRSkeletalSummaryData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VRSkeletalSummaryData.Buffer calloc(int capacity)
Returns a newVRSkeletalSummaryData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VRSkeletalSummaryData.Buffer create(int capacity)
Returns a newVRSkeletalSummaryData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VRSkeletalSummaryData.Buffer create(long address, int capacity)
Create aVRSkeletalSummaryData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VRSkeletalSummaryData.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VRSkeletalSummaryData mallocStack()
Returns a newVRSkeletalSummaryDatainstance allocated on the thread-localMemoryStack.
-
callocStack
public static VRSkeletalSummaryData callocStack()
Returns a newVRSkeletalSummaryDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VRSkeletalSummaryData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VRSkeletalSummaryData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VRSkeletalSummaryData.Buffer mallocStack(int capacity)
Returns a newVRSkeletalSummaryData.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VRSkeletalSummaryData.Buffer callocStack(int capacity)
Returns a newVRSkeletalSummaryData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VRSkeletalSummaryData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VRSkeletalSummaryData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nflFingerCurl
public static java.nio.FloatBuffer nflFingerCurl(long struct)
Unsafe version offlFingerCurl().
-
nflFingerCurl
public static float nflFingerCurl(long struct, int index)Unsafe version offlFingerCurl.
-
nflFingerSplay
public static java.nio.FloatBuffer nflFingerSplay(long struct)
Unsafe version offlFingerSplay().
-
nflFingerSplay
public static float nflFingerSplay(long struct, int index)Unsafe version offlFingerSplay.
-
-