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.NativeResource
Contains 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 class
VRSkeletalSummaryData.Buffer
An array ofVRSkeletalSummaryData
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
FLFINGERCURL
FLFINGERSPLAYThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VRSkeletalSummaryData(java.nio.ByteBuffer container)
Creates aVRSkeletalSummaryData
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VRSkeletalSummaryData
calloc()
Returns a newVRSkeletalSummaryData
instance allocated withmemCalloc
.static VRSkeletalSummaryData.Buffer
calloc(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated withmemCalloc
.static VRSkeletalSummaryData
callocStack()
Returns a newVRSkeletalSummaryData
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRSkeletalSummaryData.Buffer
callocStack(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VRSkeletalSummaryData.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRSkeletalSummaryData
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VRSkeletalSummaryData
create()
Returns a newVRSkeletalSummaryData
instance allocated withBufferUtils
.static VRSkeletalSummaryData.Buffer
create(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated withBufferUtils
.static VRSkeletalSummaryData
create(long address)
Returns a newVRSkeletalSummaryData
instance for the specified memory address.static VRSkeletalSummaryData.Buffer
create(long address, int capacity)
Create aVRSkeletalSummaryData.Buffer
instance at the specified memory.static VRSkeletalSummaryData
createSafe(long address)
static VRSkeletalSummaryData.Buffer
createSafe(long address, int capacity)
java.nio.FloatBuffer
flFingerCurl()
Returns aFloatBuffer
view of theflFingerCurl
field.float
flFingerCurl(int index)
Returns the value at the specified index of theflFingerCurl
field.java.nio.FloatBuffer
flFingerSplay()
Returns aFloatBuffer
view of theflFingerSplay
field.float
flFingerSplay(int index)
Returns the value at the specified index of theflFingerSplay
field.static VRSkeletalSummaryData
malloc()
Returns a newVRSkeletalSummaryData
instance allocated withmemAlloc
.static VRSkeletalSummaryData.Buffer
malloc(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated withmemAlloc
.static VRSkeletalSummaryData
mallocStack()
Returns a newVRSkeletalSummaryData
instance allocated on the thread-localMemoryStack
.static VRSkeletalSummaryData.Buffer
mallocStack(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated on the thread-localMemoryStack
.static VRSkeletalSummaryData.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated on the specifiedMemoryStack
.static VRSkeletalSummaryData
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryData
instance allocated on the specifiedMemoryStack
.static java.nio.FloatBuffer
nflFingerCurl(long struct)
Unsafe version offlFingerCurl()
.static float
nflFingerCurl(long struct, int index)
Unsafe version offlFingerCurl
.static java.nio.FloatBuffer
nflFingerSplay(long struct)
Unsafe version offlFingerSplay()
.static float
nflFingerSplay(long struct, int index)
Unsafe version offlFingerSplay
.int
sizeof()
-
-
-
Constructor Detail
-
VRSkeletalSummaryData
public VRSkeletalSummaryData(java.nio.ByteBuffer container)
Creates aVRSkeletalSummaryData
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
flFingerCurl
public java.nio.FloatBuffer flFingerCurl()
Returns aFloatBuffer
view of theflFingerCurl
field.
-
flFingerCurl
public float flFingerCurl(int index)
Returns the value at the specified index of theflFingerCurl
field.
-
flFingerSplay
public java.nio.FloatBuffer flFingerSplay()
Returns aFloatBuffer
view of theflFingerSplay
field.
-
flFingerSplay
public float flFingerSplay(int index)
Returns the value at the specified index of theflFingerSplay
field.
-
malloc
public static VRSkeletalSummaryData malloc()
Returns a newVRSkeletalSummaryData
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VRSkeletalSummaryData calloc()
Returns a newVRSkeletalSummaryData
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VRSkeletalSummaryData create()
Returns a newVRSkeletalSummaryData
instance allocated withBufferUtils
.
-
create
public static VRSkeletalSummaryData create(long address)
Returns a newVRSkeletalSummaryData
instance for the specified memory address.
-
createSafe
@Nullable public static VRSkeletalSummaryData createSafe(long address)
-
malloc
public static VRSkeletalSummaryData.Buffer malloc(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VRSkeletalSummaryData.Buffer calloc(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VRSkeletalSummaryData.Buffer create(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VRSkeletalSummaryData.Buffer create(long address, int capacity)
Create aVRSkeletalSummaryData.Buffer
instance 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 newVRSkeletalSummaryData
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VRSkeletalSummaryData callocStack()
Returns a newVRSkeletalSummaryData
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VRSkeletalSummaryData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryData
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VRSkeletalSummaryData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVRSkeletalSummaryData
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VRSkeletalSummaryData.Buffer callocStack(int capacity)
Returns a newVRSkeletalSummaryData.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-