Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrSceneComponentMSFT

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

Scene component.
Description

The runtime must set parentId to either zero or a valid XrUuidMSFT that corresponds to a scene component of type SCENE_COMPONENT_TYPE_OBJECT_MSFT that exists in the XrSceneMSFT.

Note

The parent scene object is intended to allow scene components to be grouped. For example, the scene object for a wall might have multiple scene component children like SCENE_COMPONENT_TYPE_PLANE_MSFT, SCENE_COMPONENT_TYPE_VISUAL_MESH_MSFT, and SCENE_COMPONENT_TYPE_COLLIDER_MESH_MSFT. Those child scene components would be alternative representations of the same wall.

Valid Usage (Implicit)
See Also

XrSceneComponentsMSFT, XrUuidMSFT

Layout


struct XrSceneComponentMSFT {
    XrSceneComponentTypeMSFT componentType;
    XrUuidMSFT id;
    XrUuidMSFT parentId;
    XrTime updateTime;
}

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
COMPONENTTYPE

The struct member offsets.

public static final int
ID

The struct member offsets.

public static final int
PARENTID

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
UPDATETIME

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
XrSceneComponentMSFT(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static XrSceneComponentMSFT
calloc()

Returns a new XrSceneComponentMSFT instance allocated with memCalloc.

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

Returns a new XrSceneComponentMSFT.Buffer instance allocated with memCalloc.

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

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

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

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

public int
componentType()

the XrSceneComponentTypeMSFT of the scene component.

public XrSceneComponentMSFT
componentType(int value)

Sets the specified value to the componentType field.

protected XrSceneComponentMSFT
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 XrSceneComponentMSFT
create()

Returns a new XrSceneComponentMSFT instance allocated with BufferUtils.

public static XrSceneComponentMSFT
create(long address)

Returns a new XrSceneComponentMSFT instance for the specified memory address.

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

Returns a new XrSceneComponentMSFT.Buffer instance allocated with BufferUtils.

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

Create a XrSceneComponentMSFT.Buffer instance at the specified memory.

public static XrSceneComponentMSFT
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public XrUuidMSFT
id()

the XrUuidMSFT of the scene component.

public XrSceneComponentMSFT
id(XrUuidMSFT value)

Copies the specified XrUuidMSFT to the id field.

public XrSceneComponentMSFT
id(Consumer<XrUuidMSFT> consumer)

Passes the id field to the specified Consumer.

public static XrSceneComponentMSFT
malloc()

Returns a new XrSceneComponentMSFT instance allocated with memAlloc.

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

Returns a new XrSceneComponentMSFT.Buffer instance allocated with memAlloc.

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

Returns a new XrSceneComponentMSFT instance allocated on the specified MemoryStack.

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

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

public static int
ncomponentType(long struct)

Unsafe version of componentType.

public static void
ncomponentType(long struct, int value)

Unsafe version of componentType.

public static XrUuidMSFT
nid(long struct)

Unsafe version of id.

public static void
nid(long struct, XrUuidMSFT value)

Unsafe version of id.

public static XrUuidMSFT
nparentId(long struct)

Unsafe version of parentId.

public static void
nparentId(long struct, XrUuidMSFT value)

Unsafe version of parentId.

public static long
nupdateTime(long struct)

Unsafe version of updateTime.

public static void
nupdateTime(long struct, long value)

Unsafe version of updateTime.

public XrUuidMSFT
parentId()

the XrUuidMSFT of the parent scene object.

public XrSceneComponentMSFT
parentId(XrUuidMSFT value)

Copies the specified XrUuidMSFT to the parentId field.

public XrSceneComponentMSFT
parentId(Consumer<XrUuidMSFT> consumer)

Passes the parentId field to the specified Consumer.

public XrSceneComponentMSFT
set(int componentType, XrUuidMSFT id, XrUuidMSFT parentId, long updateTime)

Initializes this struct with the specified values.

public XrSceneComponentMSFT

Returns:

this struct
set
(XrSceneComponentMSFT
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
updateTime()

the XrTime that this scene component was last updated.

public XrSceneComponentMSFT
updateTime(long value)

Sets the specified value to the updateTime field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

COMPONENTTYPEback to summary
public static final int COMPONENTTYPE

The struct member offsets.

IDback to summary
public static final int ID

The struct member offsets.

PARENTIDback to summary
public static final int PARENTID

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

UPDATETIMEback to summary
public static final int UPDATETIME

The struct member offsets.

Constructor Detail

XrSceneComponentMSFTback to summary
protected XrSceneComponentMSFT(long address, ByteBuffer container)
XrSceneComponentMSFTback to summary
public XrSceneComponentMSFT(ByteBuffer container)

Creates a XrSceneComponentMSFT instance at the current position of the specified ByteBuffer container. 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

callocback to summary
public static XrSceneComponentMSFT calloc()

Returns a new XrSceneComponentMSFT instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static XrSceneComponentMSFT.Buffer calloc(int capacity)

Returns a new XrSceneComponentMSFT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static XrSceneComponentMSFT calloc(MemoryStack stack)

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

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static XrSceneComponentMSFT.Buffer calloc(int capacity, MemoryStack stack)

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

componentTypeback to summary
public int componentType()

the XrSceneComponentTypeMSFT of the scene component.

Annotations
@NativeType:XrSceneComponentTypeMSFT
componentTypeback to summary
public XrSceneComponentMSFT componentType(int value)

Sets the specified value to the componentType field.

createback to summary
protected XrSceneComponentMSFT create(long address, ByteBuffer container)

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

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static XrSceneComponentMSFT create()

Returns a new XrSceneComponentMSFT instance allocated with BufferUtils.

createback to summary
public static XrSceneComponentMSFT create(long address)

Returns a new XrSceneComponentMSFT instance for the specified memory address.

createback to summary
public static XrSceneComponentMSFT.Buffer create(int capacity)

Returns a new XrSceneComponentMSFT.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static XrSceneComponentMSFT.Buffer create(long address, int capacity)

Create a XrSceneComponentMSFT.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static XrSceneComponentMSFT createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static XrSceneComponentMSFT.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
idback to summary
public XrUuidMSFT id()

the XrUuidMSFT of the scene component.

idback to summary
public XrSceneComponentMSFT id(XrUuidMSFT value)

Copies the specified XrUuidMSFT to the id field.

idback to summary
public XrSceneComponentMSFT id(Consumer<XrUuidMSFT> consumer)

Passes the id field to the specified Consumer.

mallocback to summary
public static XrSceneComponentMSFT malloc()

Returns a new XrSceneComponentMSFT instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static XrSceneComponentMSFT.Buffer malloc(int capacity)

Returns a new XrSceneComponentMSFT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static XrSceneComponentMSFT malloc(MemoryStack stack)

Returns a new XrSceneComponentMSFT instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static XrSceneComponentMSFT.Buffer malloc(int capacity, MemoryStack stack)

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

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

ncomponentTypeback to summary
public static int ncomponentType(long struct)

Unsafe version of componentType.

ncomponentTypeback to summary
public static void ncomponentType(long struct, int value)

Unsafe version of componentType.

nidback to summary
public static XrUuidMSFT nid(long struct)

Unsafe version of id.

nidback to summary
public static void nid(long struct, XrUuidMSFT value)

Unsafe version of id.

nparentIdback to summary
public static XrUuidMSFT nparentId(long struct)

Unsafe version of parentId.

nparentIdback to summary
public static void nparentId(long struct, XrUuidMSFT value)

Unsafe version of parentId.

nupdateTimeback to summary
public static long nupdateTime(long struct)

Unsafe version of updateTime.

nupdateTimeback to summary
public static void nupdateTime(long struct, long value)

Unsafe version of updateTime.

parentIdback to summary
public XrUuidMSFT parentId()

the XrUuidMSFT of the parent scene object. If the scene component does not have a parent, then parentId will be equal to zero.

parentIdback to summary
public XrSceneComponentMSFT parentId(XrUuidMSFT value)

Copies the specified XrUuidMSFT to the parentId field.

parentIdback to summary
public XrSceneComponentMSFT parentId(Consumer<XrUuidMSFT> consumer)

Passes the parentId field to the specified Consumer.

setback to summary
public XrSceneComponentMSFT set(int componentType, XrUuidMSFT id, XrUuidMSFT parentId, long updateTime)

Initializes this struct with the specified values.

setback to summary
public XrSceneComponentMSFT set(XrSceneComponentMSFT src)

Copies the specified struct data to this struct.

Parameters
src:XrSceneComponentMSFT

the source struct

Returns:XrSceneComponentMSFT

this struct

sizeofback to summary
public int sizeof()

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

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
updateTimeback to summary
public long updateTime()

the XrTime that this scene component was last updated.

Annotations
@NativeType:XrTime
updateTimeback to summary
public XrSceneComponentMSFT updateTime(long value)

Sets the specified value to the updateTime field.

org.lwjgl.openxr back to summary

public Class XrSceneComponentMSFT.Buffer

extends StructBuffer<XrSceneComponentMSFT, XrSceneComponentMSFT.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of XrSceneComponentMSFT structs.

Field Summary

Modifier and TypeField and Description
private static final XrSceneComponentMSFT

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new XrSceneComponentMSFT.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the XrSceneComponentMSFT#componentType field.
componentType
()

public XrSceneComponentMSFT.Buffer
componentType(int value)

Sets the specified value to the XrSceneComponentMSFT#componentType field.

protected XrSceneComponentMSFT
public XrUuidMSFT

Returns:

a XrUuidMSFT view of the XrSceneComponentMSFT#id field.
id
()

public XrSceneComponentMSFT.Buffer
id(XrUuidMSFT value)

Copies the specified XrUuidMSFT to the XrSceneComponentMSFT#id field.

public XrSceneComponentMSFT.Buffer
id(Consumer<XrUuidMSFT> consumer)

Passes the XrSceneComponentMSFT#id field to the specified Consumer.

public XrUuidMSFT

Returns:

a XrUuidMSFT view of the XrSceneComponentMSFT#parentId field.
parentId
()

public XrSceneComponentMSFT.Buffer
parentId(XrUuidMSFT value)

Copies the specified XrUuidMSFT to the XrSceneComponentMSFT#parentId field.

public XrSceneComponentMSFT.Buffer
parentId(Consumer<XrUuidMSFT> consumer)

Passes the XrSceneComponentMSFT#parentId field to the specified Consumer.

protected XrSceneComponentMSFT.Buffer
public long

Returns:

the value of the XrSceneComponentMSFT#updateTime field.
updateTime
()

public XrSceneComponentMSFT.Buffer
updateTime(long value)

Sets the specified value to the XrSceneComponentMSFT#updateTime field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final XrSceneComponentMSFT ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new XrSceneComponentMSFT.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrSceneComponentMSFT#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

componentTypeback to summary
public int componentType()
Returns:int

the value of the XrSceneComponentMSFT#componentType field.

Annotations
@NativeType:XrSceneComponentTypeMSFT
componentTypeback to summary
public XrSceneComponentMSFT.Buffer componentType(int value)

Sets the specified value to the XrSceneComponentMSFT#componentType field.

getElementFactoryback to summary
protected XrSceneComponentMSFT getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
idback to summary
public XrUuidMSFT id()
Returns:XrUuidMSFT

a XrUuidMSFT view of the XrSceneComponentMSFT#id field.

idback to summary
public XrSceneComponentMSFT.Buffer id(XrUuidMSFT value)

Copies the specified XrUuidMSFT to the XrSceneComponentMSFT#id field.

idback to summary
public XrSceneComponentMSFT.Buffer id(Consumer<XrUuidMSFT> consumer)

Passes the XrSceneComponentMSFT#id field to the specified Consumer.

parentIdback to summary
public XrUuidMSFT parentId()
Returns:XrUuidMSFT

a XrUuidMSFT view of the XrSceneComponentMSFT#parentId field.

parentIdback to summary
public XrSceneComponentMSFT.Buffer parentId(XrUuidMSFT value)

Copies the specified XrUuidMSFT to the XrSceneComponentMSFT#parentId field.

parentIdback to summary
public XrSceneComponentMSFT.Buffer parentId(Consumer<XrUuidMSFT> consumer)

Passes the XrSceneComponentMSFT#parentId field to the specified Consumer.

selfback to summary
protected XrSceneComponentMSFT.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
updateTimeback to summary
public long updateTime()
Returns:long

the value of the XrSceneComponentMSFT#updateTime field.

Annotations
@NativeType:XrTime
updateTimeback to summary
public XrSceneComponentMSFT.Buffer updateTime(long value)

Sets the specified value to the XrSceneComponentMSFT#updateTime field.