Package org.lwjgl.openxr
Class XrGeometryInstanceTransformFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrGeometryInstanceTransformFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrGeometryInstanceTransformFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA geometry transformation.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.baseSpaceis theXrSpacethat defines the geometry instance’s base space for transformations.timeis theXrTimethat define the time at which the transform is applied.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 usingXrGeometryInstanceTransformFB typemust beTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBnextmust beNULLor a valid pointer to the next structure in a structure chainbaseSpacemust be a validXrSpacehandle
See Also
XrPosef,XrVector3f,GeometryInstanceSetTransformFBLayout
struct XrGeometryInstanceTransformFB { XrStructureType type; void const * next; XrSpace baseSpace; XrTime time;XrPosefpose;XrVector3fscale; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrGeometryInstanceTransformFB.BufferAn array ofXrGeometryInstanceTransformFBstructs.
-
Constructor Summary
Constructors Constructor Description XrGeometryInstanceTransformFB(java.nio.ByteBuffer container)Creates aXrGeometryInstanceTransformFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longbaseSpace()XrGeometryInstanceTransformFBbaseSpace(XrSpace value)Sets the specified value to thebaseSpacefield.static XrGeometryInstanceTransformFBcalloc()Returns a newXrGeometryInstanceTransformFBinstance allocated withmemCalloc.static XrGeometryInstanceTransformFB.Buffercalloc(int capacity)Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated withmemCalloc.static XrGeometryInstanceTransformFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGeometryInstanceTransformFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGeometryInstanceTransformFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGeometryInstanceTransformFBcreate()Returns a newXrGeometryInstanceTransformFBinstance allocated withBufferUtils.static XrGeometryInstanceTransformFB.Buffercreate(int capacity)Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated withBufferUtils.static XrGeometryInstanceTransformFBcreate(long address)Returns a newXrGeometryInstanceTransformFBinstance for the specified memory address.static XrGeometryInstanceTransformFB.Buffercreate(long address, int capacity)Create aXrGeometryInstanceTransformFB.Bufferinstance at the specified memory.static XrGeometryInstanceTransformFBcreateSafe(long address)static XrGeometryInstanceTransformFB.BuffercreateSafe(long address, int capacity)static XrGeometryInstanceTransformFBmalloc()Returns a newXrGeometryInstanceTransformFBinstance allocated withmemAlloc.static XrGeometryInstanceTransformFB.Buffermalloc(int capacity)Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated withmemAlloc.static XrGeometryInstanceTransformFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated on the specifiedMemoryStack.static XrGeometryInstanceTransformFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGeometryInstanceTransformFBinstance allocated on the specifiedMemoryStack.static longnbaseSpace(long struct)Unsafe version ofbaseSpace().static voidnbaseSpace(long struct, XrSpace value)Unsafe version ofbaseSpace.longnext()XrGeometryInstanceTransformFBnext(long value)Sets the specified value to thenextfield.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 longntime(long struct)Unsafe version oftime().static voidntime(long struct, long value)Unsafe version oftime.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPosefpose()XrGeometryInstanceTransformFBpose(java.util.function.Consumer<XrPosef> consumer)Passes theposefield to the specifiedConsumer.XrGeometryInstanceTransformFBpose(XrPosef value)Copies the specifiedXrPosefto theposefield.XrVector3fscale()XrGeometryInstanceTransformFBscale(java.util.function.Consumer<XrVector3f> consumer)Passes thescalefield to the specifiedConsumer.XrGeometryInstanceTransformFBscale(XrVector3f value)Copies the specifiedXrVector3fto thescalefield.XrGeometryInstanceTransformFBset(int type, long next, XrSpace baseSpace, long time, XrPosef pose, XrVector3f scale)Initializes this struct with the specified values.XrGeometryInstanceTransformFBset(XrGeometryInstanceTransformFB src)Copies the specified struct data to this struct.intsizeof()longtime()XrGeometryInstanceTransformFBtime(long value)Sets the specified value to thetimefield.inttype()XrGeometryInstanceTransformFBtype(int value)Sets the specified value to thetypefield.XrGeometryInstanceTransformFBtype$Default()Sets theTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBvalue to thetypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrGeometryInstanceTransformFB
public XrGeometryInstanceTransformFB(java.nio.ByteBuffer container)
Creates aXrGeometryInstanceTransformFBinstance 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.
-
baseSpace
public long baseSpace()
- Returns:
- the value of the
baseSpacefield.
-
time
public long time()
- Returns:
- the value of the
timefield.
-
scale
public XrVector3f scale()
- Returns:
- a
XrVector3fview of thescalefield.
-
type
public XrGeometryInstanceTransformFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrGeometryInstanceTransformFB type$Default()
Sets theTYPE_GEOMETRY_INSTANCE_TRANSFORM_FBvalue to thetypefield.
-
next
public XrGeometryInstanceTransformFB next(long value)
Sets the specified value to thenextfield.
-
baseSpace
public XrGeometryInstanceTransformFB baseSpace(XrSpace value)
Sets the specified value to thebaseSpacefield.
-
time
public XrGeometryInstanceTransformFB time(long value)
Sets the specified value to thetimefield.
-
pose
public XrGeometryInstanceTransformFB pose(XrPosef value)
Copies the specifiedXrPosefto theposefield.
-
pose
public XrGeometryInstanceTransformFB pose(java.util.function.Consumer<XrPosef> consumer)
Passes theposefield to the specifiedConsumer.
-
scale
public XrGeometryInstanceTransformFB scale(XrVector3f value)
Copies the specifiedXrVector3fto thescalefield.
-
scale
public XrGeometryInstanceTransformFB scale(java.util.function.Consumer<XrVector3f> consumer)
Passes thescalefield to the specifiedConsumer.
-
set
public XrGeometryInstanceTransformFB set(int type, long next, XrSpace baseSpace, long time, XrPosef pose, XrVector3f scale)
Initializes this struct with the specified values.
-
set
public XrGeometryInstanceTransformFB set(XrGeometryInstanceTransformFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrGeometryInstanceTransformFB malloc()
Returns a newXrGeometryInstanceTransformFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrGeometryInstanceTransformFB calloc()
Returns a newXrGeometryInstanceTransformFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrGeometryInstanceTransformFB create()
Returns a newXrGeometryInstanceTransformFBinstance allocated withBufferUtils.
-
create
public static XrGeometryInstanceTransformFB create(long address)
Returns a newXrGeometryInstanceTransformFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrGeometryInstanceTransformFB createSafe(long address)
-
malloc
public static XrGeometryInstanceTransformFB.Buffer malloc(int capacity)
Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrGeometryInstanceTransformFB.Buffer calloc(int capacity)
Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrGeometryInstanceTransformFB.Buffer create(int capacity)
Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrGeometryInstanceTransformFB.Buffer create(long address, int capacity)
Create aXrGeometryInstanceTransformFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrGeometryInstanceTransformFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrGeometryInstanceTransformFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGeometryInstanceTransformFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrGeometryInstanceTransformFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGeometryInstanceTransformFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrGeometryInstanceTransformFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGeometryInstanceTransformFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrGeometryInstanceTransformFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGeometryInstanceTransformFB.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().
-
nbaseSpace
public static long nbaseSpace(long struct)
Unsafe version ofbaseSpace().
-
ntime
public static long ntime(long struct)
Unsafe version oftime().
-
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.
-
ntime
public static void ntime(long struct, long value)Unsafe version oftime.
-
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
-
-