Package org.lwjgl.openvr
Class VREventSpatialAnchor
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VREventSpatialAnchor
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VREventSpatialAnchor extends org.lwjgl.system.Struct
Layout
struct VREvent_SpatialAnchor_t { SpatialAnchorHandle_t unHandle; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VREventSpatialAnchor.Buffer
An array ofVREventSpatialAnchor
structs.
-
Constructor Summary
Constructors Constructor Description VREventSpatialAnchor(java.nio.ByteBuffer container)
Creates aVREventSpatialAnchor
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VREventSpatialAnchor
create(long address)
Returns a newVREventSpatialAnchor
instance for the specified memory address.static VREventSpatialAnchor.Buffer
create(long address, int capacity)
Create aVREventSpatialAnchor.Buffer
instance at the specified memory.static VREventSpatialAnchor
createSafe(long address)
static VREventSpatialAnchor.Buffer
createSafe(long address, int capacity)
static int
nunHandle(long struct)
Unsafe version ofunHandle()
.int
sizeof()
int
unHandle()
Returns the value of theunHandle
field.
-
-
-
Constructor Detail
-
VREventSpatialAnchor
public VREventSpatialAnchor(java.nio.ByteBuffer container)
Creates aVREventSpatialAnchor
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
unHandle
public int unHandle()
Returns the value of theunHandle
field.
-
create
public static VREventSpatialAnchor create(long address)
Returns a newVREventSpatialAnchor
instance for the specified memory address.
-
createSafe
@Nullable public static VREventSpatialAnchor createSafe(long address)
-
create
public static VREventSpatialAnchor.Buffer create(long address, int capacity)
Create aVREventSpatialAnchor.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VREventSpatialAnchor.Buffer createSafe(long address, int capacity)
-
nunHandle
public static int nunHandle(long struct)
Unsafe version ofunHandle()
.
-
-