Package org.lwjgl.openxr
Class XrSystemTrackingProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemTrackingProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemTrackingProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceTracking-related properties of a particular system.See Also
XrSystemGraphicsProperties,XrSystemProperties,GetSystem,GetSystemPropertiesLayout
struct XrSystemTrackingProperties { XrBool32orientationTracking(); XrBool32positionTracking(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemTrackingProperties.BufferAn array ofXrSystemTrackingPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intORIENTATIONTRACKING
POSITIONTRACKINGThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description XrSystemTrackingProperties(java.nio.ByteBuffer container)Creates aXrSystemTrackingPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemTrackingPropertiescalloc()Returns a newXrSystemTrackingPropertiesinstance allocated withmemCalloc.static XrSystemTrackingProperties.Buffercalloc(int capacity)Returns a newXrSystemTrackingProperties.Bufferinstance allocated withmemCalloc.static XrSystemTrackingProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemTrackingProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemTrackingPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemTrackingPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemTrackingPropertiescreate()Returns a newXrSystemTrackingPropertiesinstance allocated withBufferUtils.static XrSystemTrackingProperties.Buffercreate(int capacity)Returns a newXrSystemTrackingProperties.Bufferinstance allocated withBufferUtils.static XrSystemTrackingPropertiescreate(long address)Returns a newXrSystemTrackingPropertiesinstance for the specified memory address.static XrSystemTrackingProperties.Buffercreate(long address, int capacity)Create aXrSystemTrackingProperties.Bufferinstance at the specified memory.static XrSystemTrackingPropertiescreateSafe(long address)static XrSystemTrackingProperties.BuffercreateSafe(long address, int capacity)static XrSystemTrackingPropertiesmalloc()Returns a newXrSystemTrackingPropertiesinstance allocated withmemAlloc.static XrSystemTrackingProperties.Buffermalloc(int capacity)Returns a newXrSystemTrackingProperties.Bufferinstance allocated withmemAlloc.static XrSystemTrackingProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemTrackingProperties.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemTrackingPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemTrackingPropertiesinstance allocated on the specifiedMemoryStack.static intnorientationTracking(long struct)Unsafe version oforientationTracking().static voidnorientationTracking(long struct, int value)Unsafe version oforientationTracking.static intnpositionTracking(long struct)Unsafe version ofpositionTracking().static voidnpositionTracking(long struct, int value)Unsafe version ofpositionTracking.booleanorientationTracking()XrSystemTrackingPropertiesorientationTracking(boolean value)Sets the specified value to theorientationTracking()field.booleanpositionTracking()XrSystemTrackingPropertiespositionTracking(boolean value)Sets the specified value to thepositionTracking()field.XrSystemTrackingPropertiesset(boolean orientationTracking, boolean positionTracking)Initializes this struct with the specified values.XrSystemTrackingPropertiesset(XrSystemTrackingProperties src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrSystemTrackingProperties
public XrSystemTrackingProperties(java.nio.ByteBuffer container)
Creates aXrSystemTrackingPropertiesinstance 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
-
orientationTracking
public boolean orientationTracking()
-
positionTracking
public boolean positionTracking()
-
orientationTracking
public XrSystemTrackingProperties orientationTracking(boolean value)
Sets the specified value to theorientationTracking()field.
-
positionTracking
public XrSystemTrackingProperties positionTracking(boolean value)
Sets the specified value to thepositionTracking()field.
-
set
public XrSystemTrackingProperties set(boolean orientationTracking, boolean positionTracking)
Initializes this struct with the specified values.
-
set
public XrSystemTrackingProperties set(XrSystemTrackingProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemTrackingProperties malloc()
Returns a newXrSystemTrackingPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemTrackingProperties calloc()
Returns a newXrSystemTrackingPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemTrackingProperties create()
Returns a newXrSystemTrackingPropertiesinstance allocated withBufferUtils.
-
create
public static XrSystemTrackingProperties create(long address)
Returns a newXrSystemTrackingPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemTrackingProperties createSafe(long address)
-
malloc
public static XrSystemTrackingProperties.Buffer malloc(int capacity)
Returns a newXrSystemTrackingProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemTrackingProperties.Buffer calloc(int capacity)
Returns a newXrSystemTrackingProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemTrackingProperties.Buffer create(int capacity)
Returns a newXrSystemTrackingProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemTrackingProperties.Buffer create(long address, int capacity)
Create aXrSystemTrackingProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemTrackingProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemTrackingProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemTrackingPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemTrackingProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemTrackingPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemTrackingProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemTrackingProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemTrackingProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemTrackingProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
norientationTracking
public static int norientationTracking(long struct)
Unsafe version oforientationTracking().
-
npositionTracking
public static int npositionTracking(long struct)
Unsafe version ofpositionTracking().
-
norientationTracking
public static void norientationTracking(long struct, int value)Unsafe version oforientationTracking.
-
npositionTracking
public static void npositionTracking(long struct, int value)Unsafe version ofpositionTracking.
-
-