Package org.lwjgl.openxr
Class XrViewConfigurationProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrViewConfigurationProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrViewConfigurationProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDetailed configuration properties for an XrViewConfigurationProperties.Valid Usage (Implicit)
typemust beTYPE_VIEW_CONFIGURATION_PROPERTIESnextmust beNULLor a valid pointer to the next structure in a structure chainviewConfigurationTypemust be a validXrViewConfigurationTypevalue
See Also
XrViewConfigurationView,GetViewConfigurationPropertiesLayout
struct XrViewConfigurationProperties { XrStructureTypetype(); void *next(); XrViewConfigurationTypeviewConfigurationType(); XrBool32fovMutable(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrViewConfigurationProperties.BufferAn array ofXrViewConfigurationPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFOVMUTABLE
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPE
VIEWCONFIGURATIONTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrViewConfigurationProperties(java.nio.ByteBuffer container)Creates aXrViewConfigurationPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrViewConfigurationPropertiescalloc()Returns a newXrViewConfigurationPropertiesinstance allocated withmemCalloc.static XrViewConfigurationProperties.Buffercalloc(int capacity)Returns a newXrViewConfigurationProperties.Bufferinstance allocated withmemCalloc.static XrViewConfigurationProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewConfigurationPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewConfigurationPropertiescreate()Returns a newXrViewConfigurationPropertiesinstance allocated withBufferUtils.static XrViewConfigurationProperties.Buffercreate(int capacity)Returns a newXrViewConfigurationProperties.Bufferinstance allocated withBufferUtils.static XrViewConfigurationPropertiescreate(long address)Returns a newXrViewConfigurationPropertiesinstance for the specified memory address.static XrViewConfigurationProperties.Buffercreate(long address, int capacity)Create aXrViewConfigurationProperties.Bufferinstance at the specified memory.static XrViewConfigurationPropertiescreateSafe(long address)static XrViewConfigurationProperties.BuffercreateSafe(long address, int capacity)booleanfovMutable()indicates if the view field of view can be modified by the application.XrViewConfigurationPropertiesfovMutable(boolean value)Sets the specified value to thefovMutable()field.static XrViewConfigurationPropertiesmalloc()Returns a newXrViewConfigurationPropertiesinstance allocated withmemAlloc.static XrViewConfigurationProperties.Buffermalloc(int capacity)Returns a newXrViewConfigurationProperties.Bufferinstance allocated withmemAlloc.static XrViewConfigurationProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationProperties.Bufferinstance allocated on the specifiedMemoryStack.static XrViewConfigurationPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationPropertiesinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrViewConfigurationPropertiesnext(long value)Sets the specified value to thenext()field.static intnfovMutable(long struct)Unsafe version offovMutable().static voidnfovMutable(long struct, int value)Unsafe version offovMutable.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.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.XrViewConfigurationPropertiesset(int type, long next, int viewConfigurationType, boolean fovMutable)Initializes this struct with the specified values.XrViewConfigurationPropertiesset(XrViewConfigurationProperties src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrViewConfigurationPropertiestype(int value)Sets the specified value to thetype()field.XrViewConfigurationPropertiestype$Default()Sets theTYPE_VIEW_CONFIGURATION_PROPERTIESvalue to thetype()field.intviewConfigurationType()theXrViewConfigurationTypeof the configuration.XrViewConfigurationPropertiesviewConfigurationType(int value)Sets the specified value to theviewConfigurationType()field.
-
-
-
Constructor Detail
-
XrViewConfigurationProperties
public XrViewConfigurationProperties(java.nio.ByteBuffer container)
Creates aXrViewConfigurationPropertiesinstance 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.
-
viewConfigurationType
public int viewConfigurationType()
theXrViewConfigurationTypeof the configuration.
-
fovMutable
public boolean fovMutable()
indicates if the view field of view can be modified by the application.
-
type
public XrViewConfigurationProperties type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrViewConfigurationProperties type$Default()
Sets theTYPE_VIEW_CONFIGURATION_PROPERTIESvalue to thetype()field.
-
next
public XrViewConfigurationProperties next(long value)
Sets the specified value to thenext()field.
-
viewConfigurationType
public XrViewConfigurationProperties viewConfigurationType(int value)
Sets the specified value to theviewConfigurationType()field.
-
fovMutable
public XrViewConfigurationProperties fovMutable(boolean value)
Sets the specified value to thefovMutable()field.
-
set
public XrViewConfigurationProperties set(int type, long next, int viewConfigurationType, boolean fovMutable)
Initializes this struct with the specified values.
-
set
public XrViewConfigurationProperties set(XrViewConfigurationProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrViewConfigurationProperties malloc()
Returns a newXrViewConfigurationPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrViewConfigurationProperties calloc()
Returns a newXrViewConfigurationPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrViewConfigurationProperties create()
Returns a newXrViewConfigurationPropertiesinstance allocated withBufferUtils.
-
create
public static XrViewConfigurationProperties create(long address)
Returns a newXrViewConfigurationPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static XrViewConfigurationProperties createSafe(long address)
-
malloc
public static XrViewConfigurationProperties.Buffer malloc(int capacity)
Returns a newXrViewConfigurationProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrViewConfigurationProperties.Buffer calloc(int capacity)
Returns a newXrViewConfigurationProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewConfigurationProperties.Buffer create(int capacity)
Returns a newXrViewConfigurationProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewConfigurationProperties.Buffer create(long address, int capacity)
Create aXrViewConfigurationProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrViewConfigurationProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static XrViewConfigurationProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrViewConfigurationProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrViewConfigurationProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrViewConfigurationProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationProperties.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().
-
nfovMutable
public static int nfovMutable(long struct)
Unsafe version offovMutable().
-
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.
-
nfovMutable
public static void nfovMutable(long struct, int value)Unsafe version offovMutable.
-
-