Package org.lwjgl.openxr
Class XrHandTrackingScaleFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrHandTrackingScaleFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrHandTrackingScaleFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to query and modify hand joint overall scale.Valid Usage (Implicit)
- The
XR_FB_hand_tracking_meshextension must be enabled prior to usingXrHandTrackingScaleFB typemust beTYPE_HAND_TRACKING_SCALE_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
Layout
struct XrHandTrackingScaleFB { XrStructureTypetype(); void *next(); floatsensorOutput(); floatcurrentOutput(); XrBool32overrideHandScale(); floatoverrideValueInput(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrHandTrackingScaleFB.BufferAn array ofXrHandTrackingScaleFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCURRENTOUTPUT
NEXT
OVERRIDEHANDSCALE
OVERRIDEVALUEINPUT
SENSOROUTPUTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrHandTrackingScaleFB(java.nio.ByteBuffer container)Creates aXrHandTrackingScaleFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrHandTrackingScaleFBcalloc()Returns a newXrHandTrackingScaleFBinstance allocated withmemCalloc.static XrHandTrackingScaleFB.Buffercalloc(int capacity)Returns a newXrHandTrackingScaleFB.Bufferinstance allocated withmemCalloc.static XrHandTrackingScaleFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackingScaleFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandTrackingScaleFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackingScaleFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandTrackingScaleFBcreate()Returns a newXrHandTrackingScaleFBinstance allocated withBufferUtils.static XrHandTrackingScaleFB.Buffercreate(int capacity)Returns a newXrHandTrackingScaleFB.Bufferinstance allocated withBufferUtils.static XrHandTrackingScaleFBcreate(long address)Returns a newXrHandTrackingScaleFBinstance for the specified memory address.static XrHandTrackingScaleFB.Buffercreate(long address, int capacity)Create aXrHandTrackingScaleFB.Bufferinstance at the specified memory.static XrHandTrackingScaleFBcreateSafe(long address)static XrHandTrackingScaleFB.BuffercreateSafe(long address, int capacity)floatcurrentOutput()an output value: the effective output that the bind skeleton is getting on the current call, which may be subject to filtering, scaling, or validation.XrHandTrackingScaleFBcurrentOutput(float value)Sets the specified value to thecurrentOutput()field.static XrHandTrackingScaleFBmalloc()Returns a newXrHandTrackingScaleFBinstance allocated withmemAlloc.static XrHandTrackingScaleFB.Buffermalloc(int capacity)Returns a newXrHandTrackingScaleFB.Bufferinstance allocated withmemAlloc.static XrHandTrackingScaleFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackingScaleFB.Bufferinstance allocated on the specifiedMemoryStack.static XrHandTrackingScaleFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrHandTrackingScaleFBinstance allocated on the specifiedMemoryStack.static floatncurrentOutput(long struct)Unsafe version ofcurrentOutput().static voidncurrentOutput(long struct, float value)Unsafe version ofcurrentOutput.longnext()NULLor a pointer to the next structure in a structure chain.XrHandTrackingScaleFBnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnoverrideHandScale(long struct)Unsafe version ofoverrideHandScale().static voidnoverrideHandScale(long struct, int value)Unsafe version ofoverrideHandScale.static floatnoverrideValueInput(long struct)Unsafe version ofoverrideValueInput().static voidnoverrideValueInput(long struct, float value)Unsafe version ofoverrideValueInput.static floatnsensorOutput(long struct)Unsafe version ofsensorOutput().static voidnsensorOutput(long struct, float value)Unsafe version ofsensorOutput.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.booleanoverrideHandScale()indicates whether the runtime should scale the output of thisLocateHandJointsEXTcall according tooverrideValueInputXrHandTrackingScaleFBoverrideHandScale(boolean value)Sets the specified value to theoverrideHandScale()field.floatoverrideValueInput()an optional input value, enabled only when theoverrideHandScaleparameter is set.XrHandTrackingScaleFBoverrideValueInput(float value)Sets the specified value to theoverrideValueInput()field.floatsensorOutput()an output value: the currently measured scale as would be applied without passing this structure.XrHandTrackingScaleFBsensorOutput(float value)Sets the specified value to thesensorOutput()field.XrHandTrackingScaleFBset(int type, long next, float sensorOutput, float currentOutput, boolean overrideHandScale, float overrideValueInput)Initializes this struct with the specified values.XrHandTrackingScaleFBset(XrHandTrackingScaleFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrHandTrackingScaleFBtype(int value)Sets the specified value to thetype()field.XrHandTrackingScaleFBtype$Default()Sets theTYPE_HAND_TRACKING_SCALE_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrHandTrackingScaleFB
public XrHandTrackingScaleFB(java.nio.ByteBuffer container)
Creates aXrHandTrackingScaleFBinstance 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
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
sensorOutput
public float sensorOutput()
an output value: the currently measured scale as would be applied without passing this structure.
-
currentOutput
public float currentOutput()
an output value: the effective output that the bind skeleton is getting on the current call, which may be subject to filtering, scaling, or validation.
-
overrideHandScale
public boolean overrideHandScale()
indicates whether the runtime should scale the output of thisLocateHandJointsEXTcall according tooverrideValueInput
-
overrideValueInput
public float overrideValueInput()
an optional input value, enabled only when theoverrideHandScaleparameter is set. Setting this to 1.0 and settingoverrideHandScaletotruewill give the joints in mesh binding scale.
-
type
public XrHandTrackingScaleFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrHandTrackingScaleFB type$Default()
Sets theTYPE_HAND_TRACKING_SCALE_FBvalue to thetype()field.
-
next
public XrHandTrackingScaleFB next(long value)
Sets the specified value to thenext()field.
-
sensorOutput
public XrHandTrackingScaleFB sensorOutput(float value)
Sets the specified value to thesensorOutput()field.
-
currentOutput
public XrHandTrackingScaleFB currentOutput(float value)
Sets the specified value to thecurrentOutput()field.
-
overrideHandScale
public XrHandTrackingScaleFB overrideHandScale(boolean value)
Sets the specified value to theoverrideHandScale()field.
-
overrideValueInput
public XrHandTrackingScaleFB overrideValueInput(float value)
Sets the specified value to theoverrideValueInput()field.
-
set
public XrHandTrackingScaleFB set(int type, long next, float sensorOutput, float currentOutput, boolean overrideHandScale, float overrideValueInput)
Initializes this struct with the specified values.
-
set
public XrHandTrackingScaleFB set(XrHandTrackingScaleFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrHandTrackingScaleFB malloc()
Returns a newXrHandTrackingScaleFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrHandTrackingScaleFB calloc()
Returns a newXrHandTrackingScaleFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrHandTrackingScaleFB create()
Returns a newXrHandTrackingScaleFBinstance allocated withBufferUtils.
-
create
public static XrHandTrackingScaleFB create(long address)
Returns a newXrHandTrackingScaleFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrHandTrackingScaleFB createSafe(long address)
-
malloc
public static XrHandTrackingScaleFB.Buffer malloc(int capacity)
Returns a newXrHandTrackingScaleFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrHandTrackingScaleFB.Buffer calloc(int capacity)
Returns a newXrHandTrackingScaleFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandTrackingScaleFB.Buffer create(int capacity)
Returns a newXrHandTrackingScaleFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrHandTrackingScaleFB.Buffer create(long address, int capacity)
Create aXrHandTrackingScaleFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrHandTrackingScaleFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrHandTrackingScaleFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackingScaleFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrHandTrackingScaleFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackingScaleFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrHandTrackingScaleFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackingScaleFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrHandTrackingScaleFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrHandTrackingScaleFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nsensorOutput
public static float nsensorOutput(long struct)
Unsafe version ofsensorOutput().
-
ncurrentOutput
public static float ncurrentOutput(long struct)
Unsafe version ofcurrentOutput().
-
noverrideHandScale
public static int noverrideHandScale(long struct)
Unsafe version ofoverrideHandScale().
-
noverrideValueInput
public static float noverrideValueInput(long struct)
Unsafe version ofoverrideValueInput().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsensorOutput
public static void nsensorOutput(long struct, float value)Unsafe version ofsensorOutput.
-
ncurrentOutput
public static void ncurrentOutput(long struct, float value)Unsafe version ofcurrentOutput.
-
noverrideHandScale
public static void noverrideHandScale(long struct, int value)Unsafe version ofoverrideHandScale.
-
noverrideValueInput
public static void noverrideValueInput(long struct, float value)Unsafe version ofoverrideValueInput.
-
-