Package org.lwjgl.openxr
Class XrCompositionLayerEquirectKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrCompositionLayerEquirectKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrCompositionLayerEquirectKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEquirectangular layer composition info.Description
XrCompositionLayerEquirectKHRcontains the information needed to render an equirectangular image onto a sphere when callingEndFrame.XrCompositionLayerEquirectKHRis an alias type for the base structXrCompositionLayerBaseHeaderused inXrFrameEndInfo.Valid Usage (Implicit)
- The
XR_KHR_composition_layer_equirectextension must be enabled prior to usingXrCompositionLayerEquirectKHR typemust beTYPE_COMPOSITION_LAYER_EQUIRECT_KHRnextmust beNULLor a valid pointer to the next structure in a structure chainlayerFlagsmust be 0 or a valid combination ofXrCompositionLayerFlagBitsvaluesspacemust be a validXrSpacehandleeyeVisibilitymust be a validXrEyeVisibilityvaluesubImagemust be a validXrSwapchainSubImagestructure
See Also
XrCompositionLayerBaseHeader,XrFrameEndInfo,XrPosef,XrSwapchainSubImage,XrVector2f,EndFrameLayout
struct XrCompositionLayerEquirectKHR { XrStructureTypetype(); void const *next(); XrCompositionLayerFlagslayerFlags(); XrSpacespace(); XrEyeVisibility eyeVisibility;XrSwapchainSubImagesubImage();XrPosefpose(); floatradius();XrVector2fscale();XrVector2fbias(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrCompositionLayerEquirectKHR.BufferAn array ofXrCompositionLayerEquirectKHRstructs.
-
Constructor Summary
Constructors Constructor Description XrCompositionLayerEquirectKHR(java.nio.ByteBuffer container)Creates aXrCompositionLayerEquirectKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XrVector2fbias()anXrVector2findicating a bias of the texture coordinates after the mapping to 2D.XrCompositionLayerEquirectKHRbias(java.util.function.Consumer<XrVector2f> consumer)Passes thebias()field to the specifiedConsumer.XrCompositionLayerEquirectKHRbias(XrVector2f value)Copies the specifiedXrVector2fto thebias()field.static XrCompositionLayerEquirectKHRcalloc()Returns a newXrCompositionLayerEquirectKHRinstance allocated withmemCalloc.static XrCompositionLayerEquirectKHR.Buffercalloc(int capacity)Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated withmemCalloc.static XrCompositionLayerEquirectKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerEquirectKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerEquirectKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerEquirectKHRcreate()Returns a newXrCompositionLayerEquirectKHRinstance allocated withBufferUtils.static XrCompositionLayerEquirectKHR.Buffercreate(int capacity)Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated withBufferUtils.static XrCompositionLayerEquirectKHRcreate(long address)Returns a newXrCompositionLayerEquirectKHRinstance for the specified memory address.static XrCompositionLayerEquirectKHR.Buffercreate(long address, int capacity)Create aXrCompositionLayerEquirectKHR.Bufferinstance at the specified memory.static XrCompositionLayerEquirectKHRcreate(XrCompositionLayerBaseHeader value)Downcasts the specifiedXrCompositionLayerBaseHeaderinstance toXrCompositionLayerEquirectKHR.static XrCompositionLayerEquirectKHR.Buffercreate(XrCompositionLayerBaseHeader.Buffer value)Downcasts the specifiedXrCompositionLayerBaseHeader.Bufferinstance toXrCompositionLayerEquirectKHR.Buffer.static XrCompositionLayerEquirectKHRcreateSafe(long address)static XrCompositionLayerEquirectKHR.BuffercreateSafe(long address, int capacity)inteyeVisibility()XrCompositionLayerEquirectKHReyeVisibility(int value)Sets the specified value to theeyeVisibilityfield.longlayerFlags()specifies options for the layer.XrCompositionLayerEquirectKHRlayerFlags(long value)Sets the specified value to thelayerFlags()field.static XrCompositionLayerEquirectKHRmalloc()Returns a newXrCompositionLayerEquirectKHRinstance allocated withmemAlloc.static XrCompositionLayerEquirectKHR.Buffermalloc(int capacity)Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated withmemAlloc.static XrCompositionLayerEquirectKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrCompositionLayerEquirectKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerEquirectKHRinstance allocated on the specifiedMemoryStack.static XrVector2fnbias(long struct)Unsafe version ofbias().static voidnbias(long struct, XrVector2f value)Unsafe version ofbias.longnext()NULLor a pointer to the next structure in a structure chain.XrCompositionLayerEquirectKHRnext(long value)Sets the specified value to thenext()field.static intneyeVisibility(long struct)Unsafe version ofeyeVisibility().static voidneyeVisibility(long struct, int value)Unsafe version ofeyeVisibility.static longnlayerFlags(long struct)Unsafe version oflayerFlags().static voidnlayerFlags(long struct, long value)Unsafe version oflayerFlags.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static XrPosefnpose(long struct)Unsafe version ofpose().static voidnpose(long struct, XrPosef value)Unsafe version ofpose.static floatnradius(long struct)Unsafe version ofradius().static voidnradius(long struct, float value)Unsafe version ofradius.static XrVector2fnscale(long struct)Unsafe version ofscale().static voidnscale(long struct, XrVector2f value)Unsafe version ofscale.static longnspace(long struct)Unsafe version ofspace().static voidnspace(long struct, XrSpace value)Unsafe version ofspace.static XrSwapchainSubImagensubImage(long struct)Unsafe version ofsubImage().static voidnsubImage(long struct, XrSwapchainSubImage value)Unsafe version ofsubImage.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPosefpose()anXrPosefdefining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of thespace.XrCompositionLayerEquirectKHRpose(java.util.function.Consumer<XrPosef> consumer)Passes thepose()field to the specifiedConsumer.XrCompositionLayerEquirectKHRpose(XrPosef value)floatradius()the non-negative radius of the sphere onto which the equirect image data is mapped.XrCompositionLayerEquirectKHRradius(float value)Sets the specified value to theradius()field.XrVector2fscale()anXrVector2findicating a scale of the texture coordinates after the mapping to 2D.XrCompositionLayerEquirectKHRscale(java.util.function.Consumer<XrVector2f> consumer)Passes thescale()field to the specifiedConsumer.XrCompositionLayerEquirectKHRscale(XrVector2f value)Copies the specifiedXrVector2fto thescale()field.XrCompositionLayerEquirectKHRset(int type, long next, long layerFlags, XrSpace space, int eyeVisibility, XrSwapchainSubImage subImage, XrPosef pose, float radius, XrVector2f scale, XrVector2f bias)Initializes this struct with the specified values.XrCompositionLayerEquirectKHRset(XrCompositionLayerEquirectKHR src)Copies the specified struct data to this struct.intsizeof()longspace()theXrSpacein which theposeof the equirect layer is evaluated over time.XrCompositionLayerEquirectKHRspace(XrSpace value)Sets the specified value to thespace()field.XrSwapchainSubImagesubImage()identifies the imageXrSwapchainSubImageto use.XrCompositionLayerEquirectKHRsubImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)Passes thesubImage()field to the specifiedConsumer.XrCompositionLayerEquirectKHRsubImage(XrSwapchainSubImage value)Copies the specifiedXrSwapchainSubImageto thesubImage()field.inttype()theXrStructureTypeof this structure.XrCompositionLayerEquirectKHRtype(int value)Sets the specified value to thetype()field.XrCompositionLayerEquirectKHRtype$Default()Sets theTYPE_COMPOSITION_LAYER_EQUIRECT_KHRvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrCompositionLayerEquirectKHR
public XrCompositionLayerEquirectKHR(java.nio.ByteBuffer container)
Creates aXrCompositionLayerEquirectKHRinstance 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.
-
layerFlags
public long layerFlags()
specifies options for the layer.
-
space
public long space()
theXrSpacein which theposeof the equirect layer is evaluated over time.
-
eyeVisibility
public int eyeVisibility()
- Returns:
- the value of the
eyeVisibilityfield.
-
subImage
public XrSwapchainSubImage subImage()
identifies the imageXrSwapchainSubImageto use.
-
pose
public XrPosef pose()
anXrPosefdefining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of thespace.
-
radius
public float radius()
the non-negative radius of the sphere onto which the equirect image data is mapped. Values of zero or floating point positive infinity are treated as an infinite sphere.
-
scale
public XrVector2f scale()
anXrVector2findicating a scale of the texture coordinates after the mapping to 2D.
-
bias
public XrVector2f bias()
anXrVector2findicating a bias of the texture coordinates after the mapping to 2D.
-
type
public XrCompositionLayerEquirectKHR type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrCompositionLayerEquirectKHR type$Default()
Sets theTYPE_COMPOSITION_LAYER_EQUIRECT_KHRvalue to thetype()field.
-
next
public XrCompositionLayerEquirectKHR next(long value)
Sets the specified value to thenext()field.
-
layerFlags
public XrCompositionLayerEquirectKHR layerFlags(long value)
Sets the specified value to thelayerFlags()field.
-
space
public XrCompositionLayerEquirectKHR space(XrSpace value)
Sets the specified value to thespace()field.
-
eyeVisibility
public XrCompositionLayerEquirectKHR eyeVisibility(int value)
Sets the specified value to theeyeVisibilityfield.
-
subImage
public XrCompositionLayerEquirectKHR subImage(XrSwapchainSubImage value)
Copies the specifiedXrSwapchainSubImageto thesubImage()field.
-
subImage
public XrCompositionLayerEquirectKHR subImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)
Passes thesubImage()field to the specifiedConsumer.
-
pose
public XrCompositionLayerEquirectKHR pose(XrPosef value)
-
pose
public XrCompositionLayerEquirectKHR pose(java.util.function.Consumer<XrPosef> consumer)
Passes thepose()field to the specifiedConsumer.
-
radius
public XrCompositionLayerEquirectKHR radius(float value)
Sets the specified value to theradius()field.
-
scale
public XrCompositionLayerEquirectKHR scale(XrVector2f value)
Copies the specifiedXrVector2fto thescale()field.
-
scale
public XrCompositionLayerEquirectKHR scale(java.util.function.Consumer<XrVector2f> consumer)
Passes thescale()field to the specifiedConsumer.
-
bias
public XrCompositionLayerEquirectKHR bias(XrVector2f value)
Copies the specifiedXrVector2fto thebias()field.
-
bias
public XrCompositionLayerEquirectKHR bias(java.util.function.Consumer<XrVector2f> consumer)
Passes thebias()field to the specifiedConsumer.
-
set
public XrCompositionLayerEquirectKHR set(int type, long next, long layerFlags, XrSpace space, int eyeVisibility, XrSwapchainSubImage subImage, XrPosef pose, float radius, XrVector2f scale, XrVector2f bias)
Initializes this struct with the specified values.
-
set
public XrCompositionLayerEquirectKHR set(XrCompositionLayerEquirectKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrCompositionLayerEquirectKHR malloc()
Returns a newXrCompositionLayerEquirectKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrCompositionLayerEquirectKHR calloc()
Returns a newXrCompositionLayerEquirectKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrCompositionLayerEquirectKHR create()
Returns a newXrCompositionLayerEquirectKHRinstance allocated withBufferUtils.
-
create
public static XrCompositionLayerEquirectKHR create(long address)
Returns a newXrCompositionLayerEquirectKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrCompositionLayerEquirectKHR createSafe(long address)
-
create
public static XrCompositionLayerEquirectKHR create(XrCompositionLayerBaseHeader value)
Downcasts the specifiedXrCompositionLayerBaseHeaderinstance toXrCompositionLayerEquirectKHR.
-
malloc
public static XrCompositionLayerEquirectKHR.Buffer malloc(int capacity)
Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrCompositionLayerEquirectKHR.Buffer calloc(int capacity)
Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerEquirectKHR.Buffer create(int capacity)
Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerEquirectKHR.Buffer create(long address, int capacity)
Create aXrCompositionLayerEquirectKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrCompositionLayerEquirectKHR.Buffer createSafe(long address, int capacity)
-
create
public static XrCompositionLayerEquirectKHR.Buffer create(XrCompositionLayerBaseHeader.Buffer value)
Downcasts the specifiedXrCompositionLayerBaseHeader.Bufferinstance toXrCompositionLayerEquirectKHR.Buffer.
-
malloc
public static XrCompositionLayerEquirectKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerEquirectKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrCompositionLayerEquirectKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerEquirectKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrCompositionLayerEquirectKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerEquirectKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrCompositionLayerEquirectKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerEquirectKHR.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().
-
nlayerFlags
public static long nlayerFlags(long struct)
Unsafe version oflayerFlags().
-
nspace
public static long nspace(long struct)
Unsafe version ofspace().
-
neyeVisibility
public static int neyeVisibility(long struct)
Unsafe version ofeyeVisibility().
-
nsubImage
public static XrSwapchainSubImage nsubImage(long struct)
Unsafe version ofsubImage().
-
nradius
public static float nradius(long struct)
Unsafe version ofradius().
-
nscale
public static XrVector2f nscale(long struct)
Unsafe version ofscale().
-
nbias
public static XrVector2f nbias(long struct)
Unsafe version ofbias().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nlayerFlags
public static void nlayerFlags(long struct, long value)Unsafe version oflayerFlags.
-
neyeVisibility
public static void neyeVisibility(long struct, int value)Unsafe version ofeyeVisibility.
-
nsubImage
public static void nsubImage(long struct, XrSwapchainSubImage value)Unsafe version ofsubImage.
-
nradius
public static void nradius(long struct, float value)Unsafe version ofradius.
-
nscale
public static void nscale(long struct, XrVector2f value)Unsafe version ofscale.
-
nbias
public static void nbias(long struct, XrVector2f value)Unsafe version ofbias.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-