Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrCompositionLayerEquirectKHR

extends Struct<XrCompositionLayerEquirectKHR>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Equirectangular layer composition info.
Description

XrCompositionLayerEquirectKHR contains the information needed to render an equirectangular image onto a sphere when calling EndFrame. XrCompositionLayerEquirectKHR is an alias type for the base struct XrCompositionLayerBaseHeader used in XrFrameEndInfo.

Valid Usage (Implicit)
See Also

XrCompositionLayerBaseHeader, XrFrameEndInfo, XrPosef, XrSwapchainSubImage, XrVector2f, EndFrame

Layout


struct XrCompositionLayerEquirectKHR {
    XrStructureType type;
    void const * next;
    XrCompositionLayerFlags layerFlags;
    XrSpace space;
    XrEyeVisibility eyeVisibility;
    XrSwapchainSubImage subImage;
    XrPosef pose;
    float radius;
    XrVector2f scale;
    XrVector2f bias;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BIAS

The struct member offsets.

public static final int
EYEVISIBILITY

The struct member offsets.

public static final int
LAYERFLAGS

The struct member offsets.

public static final int
NEXT

The struct member offsets.

public static final int
POSE

The struct member offsets.

public static final int
RADIUS

The struct member offsets.

public static final int
SCALE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SPACE

The struct member offsets.

public static final int
SUBIMAGE

The struct member offsets.

public static final int
TYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
XrCompositionLayerEquirectKHR(long address, ByteBuffer container)

public
XrCompositionLayerEquirectKHR(ByteBuffer container)

Creates a XrCompositionLayerEquirectKHR instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public XrVector2f
bias()

an XrVector2f indicating a bias of the texture coordinates after the mapping to 2D.

public XrCompositionLayerEquirectKHR
bias(XrVector2f value)

Copies the specified XrVector2f to the bias field.

public XrCompositionLayerEquirectKHR
bias(Consumer<XrVector2f> consumer)

Passes the bias field to the specified Consumer.

public static XrCompositionLayerEquirectKHR
calloc()

Returns a new XrCompositionLayerEquirectKHR instance allocated with memCalloc.

public static XrCompositionLayerEquirectKHR.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XrCompositionLayerEquirectKHR.Buffer instance allocated with memCalloc.

public static XrCompositionLayerEquirectKHR
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrCompositionLayerEquirectKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XrCompositionLayerEquirectKHR.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrCompositionLayerEquirectKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected XrCompositionLayerEquirectKHR
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XrCompositionLayerEquirectKHR
create()

Returns a new XrCompositionLayerEquirectKHR instance allocated with BufferUtils.

public static XrCompositionLayerEquirectKHR
create(long address)

Returns a new XrCompositionLayerEquirectKHR instance for the specified memory address.

public static XrCompositionLayerEquirectKHR
create(XrCompositionLayerBaseHeader value)

Downcasts the specified XrCompositionLayerBaseHeader instance to XrCompositionLayerEquirectKHR.

public static XrCompositionLayerEquirectKHR.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XrCompositionLayerEquirectKHR.Buffer instance allocated with BufferUtils.

public static XrCompositionLayerEquirectKHR.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XrCompositionLayerEquirectKHR.Buffer instance at the specified memory.

public static XrCompositionLayerEquirectKHR.Buffer
create(XrCompositionLayerBaseHeader.Buffer value)

Downcasts the specified XrCompositionLayerBaseHeader.Buffer instance to XrCompositionLayerEquirectKHR.Buffer.

public static XrCompositionLayerEquirectKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static XrCompositionLayerEquirectKHR.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
eyeVisibility()

the eye represented by this layer.

public XrCompositionLayerEquirectKHR
eyeVisibility(int value)

Sets the specified value to the eyeVisibility field.

public long
layerFlags()

specifies options for the layer.

public XrCompositionLayerEquirectKHR
layerFlags(long value)

Sets the specified value to the layerFlags field.

public static XrCompositionLayerEquirectKHR
malloc()

Returns a new XrCompositionLayerEquirectKHR instance allocated with memAlloc.

public static XrCompositionLayerEquirectKHR.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XrCompositionLayerEquirectKHR.Buffer instance allocated with memAlloc.

public static XrCompositionLayerEquirectKHR
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrCompositionLayerEquirectKHR instance allocated on the specified MemoryStack.

public static XrCompositionLayerEquirectKHR.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrCompositionLayerEquirectKHR.Buffer instance allocated on the specified MemoryStack.

public static XrVector2f
nbias(long struct)

Unsafe version of bias.

public static void
nbias(long struct, XrVector2f value)

Unsafe version of bias.

public long
next()

NULL or a pointer to the next structure in a structure chain.

public XrCompositionLayerEquirectKHR
next(long value)

Sets the specified value to the next field.

public static int
neyeVisibility(long struct)

Unsafe version of eyeVisibility.

public static void
neyeVisibility(long struct, int value)

Unsafe version of eyeVisibility.

public static long
nlayerFlags(long struct)

Unsafe version of layerFlags.

public static void
nlayerFlags(long struct, long value)

Unsafe version of layerFlags.

public static long
nnext(long struct)

Unsafe version of next.

public static void
nnext(long struct, long value)

Unsafe version of next.

public static XrPosef
npose(long struct)

Unsafe version of pose.

public static void
npose(long struct, XrPosef value)

Unsafe version of pose.

public static float
nradius(long struct)

Unsafe version of radius.

public static void
nradius(long struct, float value)

Unsafe version of radius.

public static XrVector2f
nscale(long struct)

Unsafe version of scale.

public static void
nscale(long struct, XrVector2f value)

Unsafe version of scale.

public static long
nspace(long struct)

Unsafe version of space.

public static void
nspace(long struct, XrSpace value)

Unsafe version of space.

public static XrSwapchainSubImage
nsubImage(long struct)

Unsafe version of subImage.

public static void
nsubImage(long struct, XrSwapchainSubImage value)

Unsafe version of subImage.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public XrPosef
pose()

an XrPosef defining 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 the space.

public XrCompositionLayerEquirectKHR
pose(XrPosef value)

Copies the specified XrPosef to the pose field.

public XrCompositionLayerEquirectKHR
pose(Consumer<XrPosef> consumer)

Passes the pose field to the specified Consumer.

public float
radius()

the non-negative radius of the sphere onto which the equirect image data is mapped.

public XrCompositionLayerEquirectKHR
radius(float value)

Sets the specified value to the radius field.

public XrVector2f
scale()

an XrVector2f indicating a scale of the texture coordinates after the mapping to 2D.

public XrCompositionLayerEquirectKHR
scale(XrVector2f value)

Copies the specified XrVector2f to the scale field.

public XrCompositionLayerEquirectKHR
scale(Consumer<XrVector2f> consumer)

Passes the scale field to the specified Consumer.

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.

public XrCompositionLayerEquirectKHR

Returns:

this struct
set
(XrCompositionLayerEquirectKHR
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long
space()

the XrSpace in which the pose of the equirect layer is evaluated over time.

public XrCompositionLayerEquirectKHR
space(XrSpace value)

Sets the specified value to the space field.

public XrSwapchainSubImage
subImage()

identifies the image XrSwapchainSubImage to use.

public XrCompositionLayerEquirectKHR
subImage(XrSwapchainSubImage value)

Copies the specified XrSwapchainSubImage to the subImage field.

public XrCompositionLayerEquirectKHR
subImage(Consumer<XrSwapchainSubImage> consumer)

Passes the subImage field to the specified Consumer.

public int
type()

the XrStructureType of this structure.

public XrCompositionLayerEquirectKHR
type(int value)

Sets the specified value to the type field.

public XrCompositionLayerEquirectKHR
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate