Package org.lwjgl.openxr
Class XrSceneSphereBoundMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSceneSphereBoundMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSceneSphereBoundMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribe a scene sphere bounds.Description
The runtime must return
ERROR_VALIDATION_FAILUREifradiusis not a finite positive value.Valid Usage (Implicit)
- The
XR_MSFT_scene_understandingextension must be enabled prior to usingXrSceneSphereBoundMSFT
See Also
Layout
struct XrSceneSphereBoundMSFT {XrVector3fcenter(); floatradius(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSceneSphereBoundMSFT.BufferAn array ofXrSceneSphereBoundMSFTstructs.
-
Constructor Summary
Constructors Constructor Description XrSceneSphereBoundMSFT(java.nio.ByteBuffer container)Creates aXrSceneSphereBoundMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSceneSphereBoundMSFTcalloc()Returns a newXrSceneSphereBoundMSFTinstance allocated withmemCalloc.static XrSceneSphereBoundMSFT.Buffercalloc(int capacity)Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated withmemCalloc.static XrSceneSphereBoundMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneSphereBoundMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneSphereBoundMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.XrVector3fcenter()anXrVector3frepresenting the center of the sphere bound within the reference frame of the correspondingXrSceneBoundsMSFT::space.XrSceneSphereBoundMSFTcenter(java.util.function.Consumer<XrVector3f> consumer)Passes thecenter()field to the specifiedConsumer.XrSceneSphereBoundMSFTcenter(XrVector3f value)Copies the specifiedXrVector3fto thecenter()field.static XrSceneSphereBoundMSFTcreate()Returns a newXrSceneSphereBoundMSFTinstance allocated withBufferUtils.static XrSceneSphereBoundMSFT.Buffercreate(int capacity)Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated withBufferUtils.static XrSceneSphereBoundMSFTcreate(long address)Returns a newXrSceneSphereBoundMSFTinstance for the specified memory address.static XrSceneSphereBoundMSFT.Buffercreate(long address, int capacity)Create aXrSceneSphereBoundMSFT.Bufferinstance at the specified memory.static XrSceneSphereBoundMSFTcreateSafe(long address)static XrSceneSphereBoundMSFT.BuffercreateSafe(long address, int capacity)static XrSceneSphereBoundMSFTmalloc()Returns a newXrSceneSphereBoundMSFTinstance allocated withmemAlloc.static XrSceneSphereBoundMSFT.Buffermalloc(int capacity)Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated withmemAlloc.static XrSceneSphereBoundMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneSphereBoundMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSceneSphereBoundMSFTinstance allocated on the specifiedMemoryStack.static XrVector3fncenter(long struct)Unsafe version ofcenter().static voidncenter(long struct, XrVector3f value)Unsafe version ofcenter.static floatnradius(long struct)Unsafe version ofradius().static voidnradius(long struct, float value)Unsafe version ofradius.floatradius()the finite positive radius of the sphere bound.XrSceneSphereBoundMSFTradius(float value)Sets the specified value to theradius()field.XrSceneSphereBoundMSFTset(XrSceneSphereBoundMSFT src)Copies the specified struct data to this struct.XrSceneSphereBoundMSFTset(XrVector3f center, float radius)Initializes this struct with the specified values.intsizeof()
-
-
-
Constructor Detail
-
XrSceneSphereBoundMSFT
public XrSceneSphereBoundMSFT(java.nio.ByteBuffer container)
Creates aXrSceneSphereBoundMSFTinstance 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
-
center
public XrVector3f center()
anXrVector3frepresenting the center of the sphere bound within the reference frame of the correspondingXrSceneBoundsMSFT::space.
-
radius
public float radius()
the finite positive radius of the sphere bound.
-
center
public XrSceneSphereBoundMSFT center(XrVector3f value)
Copies the specifiedXrVector3fto thecenter()field.
-
center
public XrSceneSphereBoundMSFT center(java.util.function.Consumer<XrVector3f> consumer)
Passes thecenter()field to the specifiedConsumer.
-
radius
public XrSceneSphereBoundMSFT radius(float value)
Sets the specified value to theradius()field.
-
set
public XrSceneSphereBoundMSFT set(XrVector3f center, float radius)
Initializes this struct with the specified values.
-
set
public XrSceneSphereBoundMSFT set(XrSceneSphereBoundMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSceneSphereBoundMSFT malloc()
Returns a newXrSceneSphereBoundMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSceneSphereBoundMSFT calloc()
Returns a newXrSceneSphereBoundMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSceneSphereBoundMSFT create()
Returns a newXrSceneSphereBoundMSFTinstance allocated withBufferUtils.
-
create
public static XrSceneSphereBoundMSFT create(long address)
Returns a newXrSceneSphereBoundMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSceneSphereBoundMSFT createSafe(long address)
-
malloc
public static XrSceneSphereBoundMSFT.Buffer malloc(int capacity)
Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSceneSphereBoundMSFT.Buffer calloc(int capacity)
Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneSphereBoundMSFT.Buffer create(int capacity)
Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSceneSphereBoundMSFT.Buffer create(long address, int capacity)
Create aXrSceneSphereBoundMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSceneSphereBoundMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSceneSphereBoundMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneSphereBoundMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSceneSphereBoundMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneSphereBoundMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSceneSphereBoundMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSceneSphereBoundMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSceneSphereBoundMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ncenter
public static XrVector3f ncenter(long struct)
Unsafe version ofcenter().
-
nradius
public static float nradius(long struct)
Unsafe version ofradius().
-
ncenter
public static void ncenter(long struct, XrVector3f value)Unsafe version ofcenter.
-
nradius
public static void nradius(long struct, float value)Unsafe version ofradius.
-
-