Package org.lwjgl.openxr
Class XrSceneMarkerMSFT
- All Implemented Interfaces:
Pointer
struct XrSceneMarkerMSFT {
XrSceneMarkerTypeMSFT markerType;
XrTime lastSeenTime;
XrOffset2Df center;
XrExtent2Df size;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneMarkerMSFT(ByteBuffer container) Creates aXrSceneMarkerMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncenter()static XrSceneMarkerMSFTcreate(long address) Returns a newXrSceneMarkerMSFTinstance for the specified memory address.static XrSceneMarkerMSFT.Buffercreate(long address, int capacity) Create aXrSceneMarkerMSFT.Bufferinstance at the specified memory.static @Nullable XrSceneMarkerMSFTcreateSafe(long address) static @Nullable XrSceneMarkerMSFT.BuffercreateSafe(long address, int capacity) longintstatic XrOffset2Dfncenter(long struct) Unsafe version ofcenter().static longnlastSeenTime(long struct) Unsafe version oflastSeenTime().static intnmarkerType(long struct) Unsafe version ofmarkerType().static XrExtent2Dfnsize(long struct) Unsafe version ofsize().size()intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MARKERTYPE
public static final int MARKERTYPEThe struct member offsets. -
LASTSEENTIME
public static final int LASTSEENTIMEThe struct member offsets. -
CENTER
public static final int CENTERThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets.
-
-
Constructor Details
-
XrSceneMarkerMSFT
Creates aXrSceneMarkerMSFTinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrSceneMarkerMSFT>
-
markerType
public int markerType()- Returns:
- the value of the
markerTypefield.
-
lastSeenTime
public long lastSeenTime()- Returns:
- the value of the
lastSeenTimefield.
-
center
- Returns:
- a
XrOffset2Dfview of thecenterfield.
-
size
- Returns:
- a
XrExtent2Dfview of thesizefield.
-
create
Returns a newXrSceneMarkerMSFTinstance for the specified memory address. -
createSafe
-
create
Create aXrSceneMarkerMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nmarkerType
public static int nmarkerType(long struct) Unsafe version ofmarkerType(). -
nlastSeenTime
public static long nlastSeenTime(long struct) Unsafe version oflastSeenTime(). -
ncenter
Unsafe version ofcenter(). -
nsize
Unsafe version ofsize().
-