Package org.lwjgl.openxr
Class XrSceneOrientedBoxBoundMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneOrientedBoxBoundMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneOrientedBoxBoundMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribe a scene oriented box bounds.Description
The runtime must return
ERROR_VALIDATION_FAILUREif any component ofextentsis not finite or less than or equal to zero.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneOrientedBoxBoundMSFT
See Also
XrPosef,XrSceneBoundsMSFT,XrVector3fLayout
struct XrSceneOrientedBoxBoundMSFT {XrPosefpose();XrVector3fextents(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneOrientedBoxBoundMSFT.BufferAn array ofXrSceneOrientedBoxBoundMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrSceneOrientedBoxBoundMSFT(java.nio.ByteBuffer container)Creates aXrSceneOrientedBoxBoundMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneOrientedBoxBoundMSFTcalloc()Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated withmemCalloc.static XrSceneOrientedBoxBoundMSFT.Buffercalloc(int capacity)Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated withmemCalloc.static XrSceneOrientedBoxBoundMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneOrientedBoxBoundMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneOrientedBoxBoundMSFTcreate()Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated withBufferUtils.static XrSceneOrientedBoxBoundMSFT.Buffercreate(int capacity)Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated withBufferUtils.static XrSceneOrientedBoxBoundMSFTcreate(long address)Returns a newXrSceneOrientedBoxBoundMSFTinstance for the specified memory address.static XrSceneOrientedBoxBoundMSFT.Buffercreate(long address, int capacity)Create aXrSceneOrientedBoxBoundMSFT.Bufferinstance at the specified memory.static XrSceneOrientedBoxBoundMSFTcreateSafe(long address)static XrSceneOrientedBoxBoundMSFT.BuffercreateSafe(long address, int capacity)XrVector3fextents()anXrVector3fdefining the edge-to-edge length of the box along each dimension withposeas the center.XrSceneOrientedBoxBoundMSFTextents(java.util.function.Consumer<XrVector3f> consumer)Passes theextents()field to the specifiedConsumer.XrSceneOrientedBoxBoundMSFTextents(XrVector3f value)Copies the specifiedXrVector3fto theextents()field.static XrSceneOrientedBoxBoundMSFTmalloc()Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated withmemAlloc.static XrSceneOrientedBoxBoundMSFT.Buffermalloc(int capacity)Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated withmemAlloc.static XrSceneOrientedBoxBoundMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneOrientedBoxBoundMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated on the specifiedMemoryStack.static XrVector3fnextents(long struct)Unsafe version ofextents().static voidnextents(long struct, XrVector3f value)Unsafe version ofextents.static XrPosefnpose(long struct)Unsafe version ofpose().static voidnpose(long struct, XrPosef value)Unsafe version ofpose.XrPosefpose()anXrPosefdefining the center position and orientation of the oriented bounding box bound within the reference frame of the correspondingXrSceneBoundsMSFT::space.XrSceneOrientedBoxBoundMSFTpose(java.util.function.Consumer<XrPosef> consumer)Passes thepose()field to the specifiedConsumer.XrSceneOrientedBoxBoundMSFTpose(XrPosef value)XrSceneOrientedBoxBoundMSFTset(XrPosef pose, XrVector3f extents)Initializes this struct with the specified values.XrSceneOrientedBoxBoundMSFTset(XrSceneOrientedBoxBoundMSFT src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrSceneOrientedBoxBoundMSFT
public XrSceneOrientedBoxBoundMSFT(java.nio.ByteBuffer container)
Creates aXrSceneOrientedBoxBoundMSFTinstance 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
-
pose
public XrPosef pose()
anXrPosefdefining the center position and orientation of the oriented bounding box bound within the reference frame of the correspondingXrSceneBoundsMSFT::space.
-
extents
public XrVector3f extents()
anXrVector3fdefining the edge-to-edge length of the box along each dimension withposeas the center.
-
pose
public XrSceneOrientedBoxBoundMSFT pose(XrPosef value)
-
pose
public XrSceneOrientedBoxBoundMSFT pose(java.util.function.Consumer<XrPosef> consumer)
Passes thepose()field to the specifiedConsumer.
-
extents
public XrSceneOrientedBoxBoundMSFT extents(XrVector3f value)
Copies the specifiedXrVector3fto theextents()field.
-
extents
public XrSceneOrientedBoxBoundMSFT extents(java.util.function.Consumer<XrVector3f> consumer)
Passes theextents()field to the specifiedConsumer.
-
set
public XrSceneOrientedBoxBoundMSFT set(XrPosef pose, XrVector3f extents)
Initializes this struct with the specified values.
-
set
public XrSceneOrientedBoxBoundMSFT set(XrSceneOrientedBoxBoundMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneOrientedBoxBoundMSFT malloc()
Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneOrientedBoxBoundMSFT calloc()
Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneOrientedBoxBoundMSFT create()
Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneOrientedBoxBoundMSFT create(long address)
Returns a newXrSceneOrientedBoxBoundMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneOrientedBoxBoundMSFT createSafe(long address)
-
malloc
public static XrSceneOrientedBoxBoundMSFT.Buffer malloc(int capacity)
Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneOrientedBoxBoundMSFT.Buffer calloc(int capacity)
Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneOrientedBoxBoundMSFT.Buffer create(int capacity)
Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneOrientedBoxBoundMSFT.Buffer create(long address, int capacity)
Create aXrSceneOrientedBoxBoundMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneOrientedBoxBoundMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneOrientedBoxBoundMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneOrientedBoxBoundMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneOrientedBoxBoundMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneOrientedBoxBoundMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneOrientedBoxBoundMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneOrientedBoxBoundMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nextents
public static XrVector3f nextents(long struct)
Unsafe version ofextents().
-
nextents
public static void nextents(long struct, XrVector3f value)Unsafe version ofextents.
-
-