Class XrHapticParametricTransientEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrHapticParametricTransientEXT>
org.lwjgl.openxr.XrHapticParametricTransientEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class XrHapticParametricTransientEXT
extends Struct<XrHapticParametricTransientEXT>
implements NativeResource
struct XrHapticParametricTransientEXT {
XrDuration time;
float amplitude;
float frequency;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrHapticParametricTransientEXTstructs.Nested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrHapticParametricTransientEXT(ByteBuffer container) Creates aXrHapticParametricTransientEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionfloatamplitude(float value) Sets the specified value to theamplitudefield.calloc()Returns a newXrHapticParametricTransientEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newXrHapticParametricTransientEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrHapticParametricTransientEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrHapticParametricTransientEXTinstance for the specified memory address.create(long address, int capacity) Create aXrHapticParametricTransientEXT.Bufferinstance at the specified memory.static @Nullable XrHapticParametricTransientEXTcreateSafe(long address) static @Nullable XrHapticParametricTransientEXT.BuffercreateSafe(long address, int capacity) floatfrequency(float value) Sets the specified value to thefrequencyfield.malloc()Returns a newXrHapticParametricTransientEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrHapticParametricTransientEXTinstance allocated on the specifiedMemoryStack.static floatnamplitude(long struct) Unsafe version ofamplitude().static voidnamplitude(long struct, float value) Unsafe version ofamplitude.static floatnfrequency(long struct) Unsafe version offrequency().static voidnfrequency(long struct, float value) Unsafe version offrequency.static longntime(long struct) Unsafe version oftime().static voidntime(long struct, long value) Unsafe version oftime.set(long time, float amplitude, float frequency) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longtime()time(long value) Sets the specified value to thetimefield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TIME
public static final int TIMEThe struct member offsets. -
AMPLITUDE
public static final int AMPLITUDEThe struct member offsets. -
FREQUENCY
public static final int FREQUENCYThe struct member offsets.
-
-
Constructor Details
-
XrHapticParametricTransientEXT
Creates aXrHapticParametricTransientEXTinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrHapticParametricTransientEXT>
-
time
- Returns:
- the value of the
timefield.
-
amplitude
public float amplitude()- Returns:
- the value of the
amplitudefield.
-
frequency
public float frequency()- Returns:
- the value of the
frequencyfield.
-
time
Sets the specified value to thetimefield. -
amplitude
Sets the specified value to theamplitudefield. -
frequency
Sets the specified value to thefrequencyfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrHapticParametricTransientEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrHapticParametricTransientEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrHapticParametricTransientEXTinstance allocated withBufferUtils. -
create
Returns a newXrHapticParametricTransientEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrHapticParametricTransientEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrHapticParametricTransientEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newXrHapticParametricTransientEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrHapticParametricTransientEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrHapticParametricTransientEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntime
public static long ntime(long struct) Unsafe version oftime(). -
namplitude
public static float namplitude(long struct) Unsafe version ofamplitude(). -
nfrequency
public static float nfrequency(long struct) Unsafe version offrequency(). -
ntime
public static void ntime(long struct, long value) Unsafe version oftime. -
namplitude
public static void namplitude(long struct, float value) Unsafe version ofamplitude. -
nfrequency
public static void nfrequency(long struct, float value) Unsafe version offrequency.
-