Package org.lwjgl.openxr
Class XrGeometryInstanceCreateInfoFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrGeometryInstanceCreateInfoFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrGeometryInstanceCreateInfoFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA create structure for geometry instance.Member Descriptions
typeis theXrStructureTypeof this structure.nextisNULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.layeris theXrPassthroughLayerFB.meshis theXrTriangleMeshFB.baseSpaceis theXrSpacethat defines the geometry instance’s base space for transformations.poseis theXrPosefthat defines the geometry instance’s pose.scaleis theXrVector3fthat defines the geometry instance’s scale.
Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to usingXrGeometryInstanceCreateInfoFB typemust beTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBnextmust beNULLor a valid pointer to the next structure in a structure chainlayermust be a validXrPassthroughLayerFBhandlemeshmust be a validXrTriangleMeshFBhandlebaseSpacemust be a validXrSpacehandle- Each of
baseSpace,layer, andmeshmust have been created, allocated, or retrieved from the sameXrSession
See Also
XrPosef,XrVector3f,CreateGeometryInstanceFBLayout
struct XrGeometryInstanceCreateInfoFB { XrStructureType type; void const * next; XrPassthroughLayerFB layer; XrTriangleMeshFB mesh; XrSpace baseSpace;XrPosefpose;XrVector3fscale; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrGeometryInstanceCreateInfoFB.BufferAn array ofXrGeometryInstanceCreateInfoFBstructs.
-
Constructor Summary
Constructors Constructor Description XrGeometryInstanceCreateInfoFB(java.nio.ByteBuffer container)Creates aXrGeometryInstanceCreateInfoFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbaseSpace()XrGeometryInstanceCreateInfoFBbaseSpace(XrSpace value)Sets the specified value to thebaseSpacefield.static XrGeometryInstanceCreateInfoFBcalloc()Returns a newXrGeometryInstanceCreateInfoFBinstance allocated withmemCalloc.static XrGeometryInstanceCreateInfoFB.Buffercalloc(int capacity)Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated withmemCalloc.static XrGeometryInstanceCreateInfoFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGeometryInstanceCreateInfoFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGeometryInstanceCreateInfoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGeometryInstanceCreateInfoFBcreate()Returns a newXrGeometryInstanceCreateInfoFBinstance allocated withBufferUtils.static XrGeometryInstanceCreateInfoFB.Buffercreate(int capacity)Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated withBufferUtils.static XrGeometryInstanceCreateInfoFBcreate(long address)Returns a newXrGeometryInstanceCreateInfoFBinstance for the specified memory address.static XrGeometryInstanceCreateInfoFB.Buffercreate(long address, int capacity)Create aXrGeometryInstanceCreateInfoFB.Bufferinstance at the specified memory.static XrGeometryInstanceCreateInfoFBcreateSafe(long address)static XrGeometryInstanceCreateInfoFB.BuffercreateSafe(long address, int capacity)longlayer()XrGeometryInstanceCreateInfoFBlayer(XrPassthroughLayerFB value)Sets the specified value to thelayerfield.static XrGeometryInstanceCreateInfoFBmalloc()Returns a newXrGeometryInstanceCreateInfoFBinstance allocated withmemAlloc.static XrGeometryInstanceCreateInfoFB.Buffermalloc(int capacity)Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated withmemAlloc.static XrGeometryInstanceCreateInfoFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated on the specifiedMemoryStack.static XrGeometryInstanceCreateInfoFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGeometryInstanceCreateInfoFBinstance allocated on the specifiedMemoryStack.longmesh()XrGeometryInstanceCreateInfoFBmesh(XrTriangleMeshFB value)Sets the specified value to themeshfield.static longnbaseSpace(long struct)Unsafe version ofbaseSpace().static voidnbaseSpace(long struct, XrSpace value)Unsafe version ofbaseSpace.longnext()XrGeometryInstanceCreateInfoFBnext(long value)Sets the specified value to thenextfield.static longnlayer(long struct)Unsafe version oflayer().static voidnlayer(long struct, XrPassthroughLayerFB value)Unsafe version oflayer.static longnmesh(long struct)Unsafe version ofmesh().static voidnmesh(long struct, XrTriangleMeshFB value)Unsafe version ofmesh.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 XrVector3fnscale(long struct)Unsafe version ofscale().static voidnscale(long struct, XrVector3f value)Unsafe version ofscale.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPosefpose()XrGeometryInstanceCreateInfoFBpose(java.util.function.Consumer<XrPosef> consumer)Passes theposefield to the specifiedConsumer.XrGeometryInstanceCreateInfoFBpose(XrPosef value)Copies the specifiedXrPosefto theposefield.XrVector3fscale()XrGeometryInstanceCreateInfoFBscale(java.util.function.Consumer<XrVector3f> consumer)Passes thescalefield to the specifiedConsumer.XrGeometryInstanceCreateInfoFBscale(XrVector3f value)Copies the specifiedXrVector3fto thescalefield.XrGeometryInstanceCreateInfoFBset(int type, long next, XrPassthroughLayerFB layer, XrTriangleMeshFB mesh, XrSpace baseSpace, XrPosef pose, XrVector3f scale)Initializes this struct with the specified values.XrGeometryInstanceCreateInfoFBset(XrGeometryInstanceCreateInfoFB src)Copies the specified struct data to this struct.intsizeof()inttype()XrGeometryInstanceCreateInfoFBtype(int value)Sets the specified value to thetypefield.XrGeometryInstanceCreateInfoFBtype$Default()Sets theTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBvalue to thetypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrGeometryInstanceCreateInfoFB
public XrGeometryInstanceCreateInfoFB(java.nio.ByteBuffer container)
Creates aXrGeometryInstanceCreateInfoFBinstance 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()
- Returns:
- the value of the
typefield.
-
next
public long next()
- Returns:
- the value of the
nextfield.
-
layer
public long layer()
- Returns:
- the value of the
layerfield.
-
mesh
public long mesh()
- Returns:
- the value of the
meshfield.
-
baseSpace
public long baseSpace()
- Returns:
- the value of the
baseSpacefield.
-
scale
public XrVector3f scale()
- Returns:
- a
XrVector3fview of thescalefield.
-
type
public XrGeometryInstanceCreateInfoFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrGeometryInstanceCreateInfoFB type$Default()
Sets theTYPE_GEOMETRY_INSTANCE_CREATE_INFO_FBvalue to thetypefield.
-
next
public XrGeometryInstanceCreateInfoFB next(long value)
Sets the specified value to thenextfield.
-
layer
public XrGeometryInstanceCreateInfoFB layer(XrPassthroughLayerFB value)
Sets the specified value to thelayerfield.
-
mesh
public XrGeometryInstanceCreateInfoFB mesh(XrTriangleMeshFB value)
Sets the specified value to themeshfield.
-
baseSpace
public XrGeometryInstanceCreateInfoFB baseSpace(XrSpace value)
Sets the specified value to thebaseSpacefield.
-
pose
public XrGeometryInstanceCreateInfoFB pose(XrPosef value)
Copies the specifiedXrPosefto theposefield.
-
pose
public XrGeometryInstanceCreateInfoFB pose(java.util.function.Consumer<XrPosef> consumer)
Passes theposefield to the specifiedConsumer.
-
scale
public XrGeometryInstanceCreateInfoFB scale(XrVector3f value)
Copies the specifiedXrVector3fto thescalefield.
-
scale
public XrGeometryInstanceCreateInfoFB scale(java.util.function.Consumer<XrVector3f> consumer)
Passes thescalefield to the specifiedConsumer.
-
set
public XrGeometryInstanceCreateInfoFB set(int type, long next, XrPassthroughLayerFB layer, XrTriangleMeshFB mesh, XrSpace baseSpace, XrPosef pose, XrVector3f scale)
Initializes this struct with the specified values.
-
set
public XrGeometryInstanceCreateInfoFB set(XrGeometryInstanceCreateInfoFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrGeometryInstanceCreateInfoFB malloc()
Returns a newXrGeometryInstanceCreateInfoFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrGeometryInstanceCreateInfoFB calloc()
Returns a newXrGeometryInstanceCreateInfoFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrGeometryInstanceCreateInfoFB create()
Returns a newXrGeometryInstanceCreateInfoFBinstance allocated withBufferUtils.
-
create
public static XrGeometryInstanceCreateInfoFB create(long address)
Returns a newXrGeometryInstanceCreateInfoFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrGeometryInstanceCreateInfoFB createSafe(long address)
-
malloc
public static XrGeometryInstanceCreateInfoFB.Buffer malloc(int capacity)
Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrGeometryInstanceCreateInfoFB.Buffer calloc(int capacity)
Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrGeometryInstanceCreateInfoFB.Buffer create(int capacity)
Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrGeometryInstanceCreateInfoFB.Buffer create(long address, int capacity)
Create aXrGeometryInstanceCreateInfoFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrGeometryInstanceCreateInfoFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrGeometryInstanceCreateInfoFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGeometryInstanceCreateInfoFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrGeometryInstanceCreateInfoFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGeometryInstanceCreateInfoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrGeometryInstanceCreateInfoFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGeometryInstanceCreateInfoFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrGeometryInstanceCreateInfoFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGeometryInstanceCreateInfoFB.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().
-
nlayer
public static long nlayer(long struct)
Unsafe version oflayer().
-
nmesh
public static long nmesh(long struct)
Unsafe version ofmesh().
-
nbaseSpace
public static long nbaseSpace(long struct)
Unsafe version ofbaseSpace().
-
nscale
public static XrVector3f nscale(long struct)
Unsafe version ofscale().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nlayer
public static void nlayer(long struct, XrPassthroughLayerFB value)Unsafe version oflayer.
-
nmesh
public static void nmesh(long struct, XrTriangleMeshFB value)Unsafe version ofmesh.
-
nscale
public static void nscale(long struct, XrVector3f value)Unsafe version ofscale.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-