Package org.lwjgl.openxr
Class XrViewLocateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrViewLocateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrViewLocateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStruct containing view locate information.Description
The
XrViewLocateInfostructure contains the display time and space used to locate the viewXrViewstructures.The runtime must return error
ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTEDif the givenviewConfigurationTypeis not one of the supported type reported byEnumerateViewConfigurations.Valid Usage (Implicit)
typemust beTYPE_VIEW_LOCATE_INFOnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrViewLocateFoveatedRenderingVARJOviewConfigurationTypemust be a validXrViewConfigurationTypevaluespacemust be a validXrSpacehandle
See Also
XrView,XrViewState,LocateViewsLayout
struct XrViewLocateInfo { XrStructureType type; void const * next; XrViewConfigurationTypeviewConfigurationType(); XrTimedisplayTime(); XrSpacespace(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrViewLocateInfo.BufferAn array ofXrViewLocateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDISPLAYTIME
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPACE
TYPE
VIEWCONFIGURATIONTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrViewLocateInfo(java.nio.ByteBuffer container)Creates aXrViewLocateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrViewLocateInfocalloc()Returns a newXrViewLocateInfoinstance allocated withmemCalloc.static XrViewLocateInfo.Buffercalloc(int capacity)Returns a newXrViewLocateInfo.Bufferinstance allocated withmemCalloc.static XrViewLocateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewLocateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewLocateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewLocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewLocateInfocreate()Returns a newXrViewLocateInfoinstance allocated withBufferUtils.static XrViewLocateInfo.Buffercreate(int capacity)Returns a newXrViewLocateInfo.Bufferinstance allocated withBufferUtils.static XrViewLocateInfocreate(long address)Returns a newXrViewLocateInfoinstance for the specified memory address.static XrViewLocateInfo.Buffercreate(long address, int capacity)Create aXrViewLocateInfo.Bufferinstance at the specified memory.static XrViewLocateInfocreateSafe(long address)static XrViewLocateInfo.BuffercreateSafe(long address, int capacity)longdisplayTime()the time for which the view poses are predicted.XrViewLocateInfodisplayTime(long value)Sets the specified value to thedisplayTime()field.static XrViewLocateInfomalloc()Returns a newXrViewLocateInfoinstance allocated withmemAlloc.static XrViewLocateInfo.Buffermalloc(int capacity)Returns a newXrViewLocateInfo.Bufferinstance allocated withmemAlloc.static XrViewLocateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewLocateInfo.Bufferinstance allocated on the specifiedMemoryStack.static XrViewLocateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewLocateInfoinstance allocated on the specifiedMemoryStack.static longndisplayTime(long struct)Unsafe version ofdisplayTime().static voidndisplayTime(long struct, long value)Unsafe version ofdisplayTime.longnext()XrViewLocateInfonext(long value)Sets the specified value to thenextfield.XrViewLocateInfonext(XrViewLocateFoveatedRenderingVARJO value)Prepends the specifiedXrViewLocateFoveatedRenderingVARJOvalue to thenextchain.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnspace(long struct)Unsafe version ofspace().static voidnspace(long struct, XrSpace value)Unsafe version ofspace.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static intnviewConfigurationType(long struct)Unsafe version ofviewConfigurationType().static voidnviewConfigurationType(long struct, int value)Unsafe version ofviewConfigurationType.XrViewLocateInfoset(int type, long next, int viewConfigurationType, long displayTime, XrSpace space)Initializes this struct with the specified values.XrViewLocateInfoset(XrViewLocateInfo src)Copies the specified struct data to this struct.intsizeof()longspace()XrViewLocateInfospace(XrSpace value)Sets the specified value to thespace()field.inttype()XrViewLocateInfotype(int value)Sets the specified value to thetypefield.XrViewLocateInfotype$Default()Sets theTYPE_VIEW_LOCATE_INFOvalue to thetypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.intviewConfigurationType()XrViewConfigurationTypeto query for.XrViewLocateInfoviewConfigurationType(int value)Sets the specified value to theviewConfigurationType()field.
-
-
-
Constructor Detail
-
XrViewLocateInfo
public XrViewLocateInfo(java.nio.ByteBuffer container)
Creates aXrViewLocateInfoinstance 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()
- Returns:
- the value of the
typefield.
-
next
public long next()
- Returns:
- the value of the
nextfield.
-
viewConfigurationType
public int viewConfigurationType()
XrViewConfigurationTypeto query for.
-
displayTime
public long displayTime()
the time for which the view poses are predicted.
-
space
public long space()
-
type
public XrViewLocateInfo type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrViewLocateInfo type$Default()
Sets theTYPE_VIEW_LOCATE_INFOvalue to thetypefield.
-
next
public XrViewLocateInfo next(long value)
Sets the specified value to thenextfield.
-
next
public XrViewLocateInfo next(XrViewLocateFoveatedRenderingVARJO value)
Prepends the specifiedXrViewLocateFoveatedRenderingVARJOvalue to thenextchain.
-
viewConfigurationType
public XrViewLocateInfo viewConfigurationType(int value)
Sets the specified value to theviewConfigurationType()field.
-
displayTime
public XrViewLocateInfo displayTime(long value)
Sets the specified value to thedisplayTime()field.
-
space
public XrViewLocateInfo space(XrSpace value)
Sets the specified value to thespace()field.
-
set
public XrViewLocateInfo set(int type, long next, int viewConfigurationType, long displayTime, XrSpace space)
Initializes this struct with the specified values.
-
set
public XrViewLocateInfo set(XrViewLocateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrViewLocateInfo malloc()
Returns a newXrViewLocateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrViewLocateInfo calloc()
Returns a newXrViewLocateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrViewLocateInfo create()
Returns a newXrViewLocateInfoinstance allocated withBufferUtils.
-
create
public static XrViewLocateInfo create(long address)
Returns a newXrViewLocateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static XrViewLocateInfo createSafe(long address)
-
malloc
public static XrViewLocateInfo.Buffer malloc(int capacity)
Returns a newXrViewLocateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrViewLocateInfo.Buffer calloc(int capacity)
Returns a newXrViewLocateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewLocateInfo.Buffer create(int capacity)
Returns a newXrViewLocateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewLocateInfo.Buffer create(long address, int capacity)
Create aXrViewLocateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrViewLocateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static XrViewLocateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewLocateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrViewLocateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewLocateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrViewLocateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewLocateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrViewLocateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewLocateInfo.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().
-
nviewConfigurationType
public static int nviewConfigurationType(long struct)
Unsafe version ofviewConfigurationType().
-
ndisplayTime
public static long ndisplayTime(long struct)
Unsafe version ofdisplayTime().
-
nspace
public static long nspace(long struct)
Unsafe version ofspace().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nviewConfigurationType
public static void nviewConfigurationType(long struct, int value)Unsafe version ofviewConfigurationType.
-
ndisplayTime
public static void ndisplayTime(long struct, long value)Unsafe version ofdisplayTime.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-