Package org.lwjgl.openxr
Class XrViewConfigurationViewFovEPIC
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrViewConfigurationViewFovEPIC
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrViewConfigurationViewFovEPIC extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceView Configuration Field-of-View.Valid Usage (Implicit)
- The
XR_EPIC_view_configuration_fovextension must be enabled prior to usingXrViewConfigurationViewFovEPIC typemust beTYPE_VIEW_CONFIGURATION_VIEW_FOV_EPICnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrViewConfigurationViewFovEPIC { XrStructureTypetype(); void const *next();XrFovfrecommendedFov();XrFovfmaxMutableFov(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrViewConfigurationViewFovEPIC.BufferAn array ofXrViewConfigurationViewFovEPICstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXMUTABLEFOV
NEXT
RECOMMENDEDFOVThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrViewConfigurationViewFovEPIC(java.nio.ByteBuffer container)Creates aXrViewConfigurationViewFovEPICinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrViewConfigurationViewFovEPICcalloc()Returns a newXrViewConfigurationViewFovEPICinstance allocated withmemCalloc.static XrViewConfigurationViewFovEPIC.Buffercalloc(int capacity)Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated withmemCalloc.static XrViewConfigurationViewFovEPIC.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewConfigurationViewFovEPICcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationViewFovEPICinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewConfigurationViewFovEPICcreate()Returns a newXrViewConfigurationViewFovEPICinstance allocated withBufferUtils.static XrViewConfigurationViewFovEPIC.Buffercreate(int capacity)Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated withBufferUtils.static XrViewConfigurationViewFovEPICcreate(long address)Returns a newXrViewConfigurationViewFovEPICinstance for the specified memory address.static XrViewConfigurationViewFovEPIC.Buffercreate(long address, int capacity)Create aXrViewConfigurationViewFovEPIC.Bufferinstance at the specified memory.static XrViewConfigurationViewFovEPICcreateSafe(long address)static XrViewConfigurationViewFovEPIC.BuffercreateSafe(long address, int capacity)static XrViewConfigurationViewFovEPICmalloc()Returns a newXrViewConfigurationViewFovEPICinstance allocated withmemAlloc.static XrViewConfigurationViewFovEPIC.Buffermalloc(int capacity)Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated withmemAlloc.static XrViewConfigurationViewFovEPIC.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated on the specifiedMemoryStack.static XrViewConfigurationViewFovEPICmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationViewFovEPICinstance allocated on the specifiedMemoryStack.XrFovfmaxMutableFov()the maximum field-of-view that the runtime can display.XrViewConfigurationViewFovEPICmaxMutableFov(java.util.function.Consumer<XrFovf> consumer)Passes themaxMutableFov()field to the specifiedConsumer.XrViewConfigurationViewFovEPICmaxMutableFov(XrFovf value)Copies the specifiedXrFovfto themaxMutableFov()field.longnext()NULLor a pointer to the next structure in a structure chain.XrViewConfigurationViewFovEPICnext(long value)Sets the specified value to thenext()field.static XrFovfnmaxMutableFov(long struct)Unsafe version ofmaxMutableFov().static voidnmaxMutableFov(long struct, XrFovf value)Unsafe version ofmaxMutableFov.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static XrFovfnrecommendedFov(long struct)Unsafe version ofrecommendedFov().static voidnrecommendedFov(long struct, XrFovf value)Unsafe version ofrecommendedFov.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrFovfrecommendedFov()the recommended field-of-view based on the current user IPD.XrViewConfigurationViewFovEPICrecommendedFov(java.util.function.Consumer<XrFovf> consumer)Passes therecommendedFov()field to the specifiedConsumer.XrViewConfigurationViewFovEPICrecommendedFov(XrFovf value)Copies the specifiedXrFovfto therecommendedFov()field.XrViewConfigurationViewFovEPICset(int type, long next, XrFovf recommendedFov, XrFovf maxMutableFov)Initializes this struct with the specified values.XrViewConfigurationViewFovEPICset(XrViewConfigurationViewFovEPIC src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrViewConfigurationViewFovEPICtype(int value)Sets the specified value to thetype()field.XrViewConfigurationViewFovEPICtype$Default()Sets theTYPE_VIEW_CONFIGURATION_VIEW_FOV_EPICvalue to thetype()field.
-
-
-
Constructor Detail
-
XrViewConfigurationViewFovEPIC
public XrViewConfigurationViewFovEPIC(java.nio.ByteBuffer container)
Creates aXrViewConfigurationViewFovEPICinstance 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.
-
recommendedFov
public XrFovf recommendedFov()
the recommended field-of-view based on the current user IPD.
-
maxMutableFov
public XrFovf maxMutableFov()
the maximum field-of-view that the runtime can display.
-
type
public XrViewConfigurationViewFovEPIC type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrViewConfigurationViewFovEPIC type$Default()
Sets theTYPE_VIEW_CONFIGURATION_VIEW_FOV_EPICvalue to thetype()field.
-
next
public XrViewConfigurationViewFovEPIC next(long value)
Sets the specified value to thenext()field.
-
recommendedFov
public XrViewConfigurationViewFovEPIC recommendedFov(XrFovf value)
Copies the specifiedXrFovfto therecommendedFov()field.
-
recommendedFov
public XrViewConfigurationViewFovEPIC recommendedFov(java.util.function.Consumer<XrFovf> consumer)
Passes therecommendedFov()field to the specifiedConsumer.
-
maxMutableFov
public XrViewConfigurationViewFovEPIC maxMutableFov(XrFovf value)
Copies the specifiedXrFovfto themaxMutableFov()field.
-
maxMutableFov
public XrViewConfigurationViewFovEPIC maxMutableFov(java.util.function.Consumer<XrFovf> consumer)
Passes themaxMutableFov()field to the specifiedConsumer.
-
set
public XrViewConfigurationViewFovEPIC set(int type, long next, XrFovf recommendedFov, XrFovf maxMutableFov)
Initializes this struct with the specified values.
-
set
public XrViewConfigurationViewFovEPIC set(XrViewConfigurationViewFovEPIC src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrViewConfigurationViewFovEPIC malloc()
Returns a newXrViewConfigurationViewFovEPICinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrViewConfigurationViewFovEPIC calloc()
Returns a newXrViewConfigurationViewFovEPICinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrViewConfigurationViewFovEPIC create()
Returns a newXrViewConfigurationViewFovEPICinstance allocated withBufferUtils.
-
create
public static XrViewConfigurationViewFovEPIC create(long address)
Returns a newXrViewConfigurationViewFovEPICinstance for the specified memory address.
-
createSafe
@Nullable public static XrViewConfigurationViewFovEPIC createSafe(long address)
-
malloc
public static XrViewConfigurationViewFovEPIC.Buffer malloc(int capacity)
Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrViewConfigurationViewFovEPIC.Buffer calloc(int capacity)
Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewConfigurationViewFovEPIC.Buffer create(int capacity)
Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewConfigurationViewFovEPIC.Buffer create(long address, int capacity)
Create aXrViewConfigurationViewFovEPIC.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrViewConfigurationViewFovEPIC.Buffer createSafe(long address, int capacity)
-
malloc
public static XrViewConfigurationViewFovEPIC malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationViewFovEPICinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrViewConfigurationViewFovEPIC calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationViewFovEPICinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrViewConfigurationViewFovEPIC.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationViewFovEPIC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrViewConfigurationViewFovEPIC.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationViewFovEPIC.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().
-
nrecommendedFov
public static XrFovf nrecommendedFov(long struct)
Unsafe version ofrecommendedFov().
-
nmaxMutableFov
public static XrFovf nmaxMutableFov(long struct)
Unsafe version ofmaxMutableFov().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nrecommendedFov
public static void nrecommendedFov(long struct, XrFovf value)Unsafe version ofrecommendedFov.
-
nmaxMutableFov
public static void nmaxMutableFov(long struct, XrFovf value)Unsafe version ofmaxMutableFov.
-
-