Package org.lwjgl.openvr
Class VROverlayIntersectionParams
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VROverlayIntersectionParams
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,NativeResource
,Pointer
public class VROverlayIntersectionParams extends Struct implements NativeResource
Layout
struct VROverlayIntersectionParams_t {
HmdVector3_t
vSource;HmdVector3_t
vDirection; ETrackingUniverseOrigin eOrigin; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VROverlayIntersectionParams.Buffer
An array ofVROverlayIntersectionParams
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
EORIGIN
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
VDIRECTION
VSOURCEThe struct member offsets.-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor Description VROverlayIntersectionParams(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionParams
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 VROverlayIntersectionParams
calloc()
Returns a newVROverlayIntersectionParams
instance allocated withmemCalloc
.static VROverlayIntersectionParams.Buffer
calloc(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withmemCalloc
.static VROverlayIntersectionParams
callocStack()
Returns a newVROverlayIntersectionParams
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionParams.Buffer
callocStack(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionParams.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionParams
callocStack(MemoryStack stack)
Returns a newVROverlayIntersectionParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionParams
create()
Returns a newVROverlayIntersectionParams
instance allocated withBufferUtils
.static VROverlayIntersectionParams.Buffer
create(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withBufferUtils
.static VROverlayIntersectionParams
create(long address)
Returns a newVROverlayIntersectionParams
instance for the specified memory address.static VROverlayIntersectionParams.Buffer
create(long address, int capacity)
Create aVROverlayIntersectionParams.Buffer
instance at the specified memory.static VROverlayIntersectionParams
createSafe(long address)
static VROverlayIntersectionParams.Buffer
createSafe(long address, int capacity)
int
eOrigin()
Returns the value of theeOrigin
field.VROverlayIntersectionParams
eOrigin(int value)
Sets the specified value to theeOrigin
field.static VROverlayIntersectionParams
malloc()
Returns a newVROverlayIntersectionParams
instance allocated withmemAlloc
.static VROverlayIntersectionParams.Buffer
malloc(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withmemAlloc
.static VROverlayIntersectionParams
mallocStack()
Returns a newVROverlayIntersectionParams
instance allocated on the thread-localMemoryStack
.static VROverlayIntersectionParams.Buffer
mallocStack(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the thread-localMemoryStack
.static VROverlayIntersectionParams.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the specifiedMemoryStack
.static VROverlayIntersectionParams
mallocStack(MemoryStack stack)
Returns a newVROverlayIntersectionParams
instance allocated on the specifiedMemoryStack
.static int
neOrigin(long struct)
Unsafe version ofeOrigin()
.static void
neOrigin(long struct, int value)
Unsafe version ofeOrigin
.static HmdVector3
nvDirection(long struct)
Unsafe version ofvDirection()
.static void
nvDirection(long struct, HmdVector3 value)
Unsafe version ofvDirection
.static HmdVector3
nvSource(long struct)
Unsafe version ofvSource()
.static void
nvSource(long struct, HmdVector3 value)
Unsafe version ofvSource
.VROverlayIntersectionParams
set(HmdVector3 vSource, HmdVector3 vDirection, int eOrigin)
Initializes this struct with the specified values.VROverlayIntersectionParams
set(VROverlayIntersectionParams src)
Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.HmdVector3
vDirection()
Returns aHmdVector3
view of thevDirection
field.VROverlayIntersectionParams
vDirection(java.util.function.Consumer<HmdVector3> consumer)
Passes thevDirection
field to the specifiedConsumer
.VROverlayIntersectionParams
vDirection(HmdVector3 value)
Copies the specifiedHmdVector3
to thevDirection
field.HmdVector3
vSource()
Returns aHmdVector3
view of thevSource
field.VROverlayIntersectionParams
vSource(java.util.function.Consumer<HmdVector3> consumer)
Passes thevSource
field to the specifiedConsumer
.VROverlayIntersectionParams
vSource(HmdVector3 value)
Copies the specifiedHmdVector3
to thevSource
field.-
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
-
-
-
Constructor Detail
-
VROverlayIntersectionParams
public VROverlayIntersectionParams(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionParams
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()
Description copied from class:Struct
Returnssizeof(struct)
.
-
vSource
public HmdVector3 vSource()
Returns aHmdVector3
view of thevSource
field.
-
vSource
public VROverlayIntersectionParams vSource(java.util.function.Consumer<HmdVector3> consumer)
Passes thevSource
field to the specifiedConsumer
.
-
vDirection
public HmdVector3 vDirection()
Returns aHmdVector3
view of thevDirection
field.
-
vDirection
public VROverlayIntersectionParams vDirection(java.util.function.Consumer<HmdVector3> consumer)
Passes thevDirection
field to the specifiedConsumer
.
-
eOrigin
public int eOrigin()
Returns the value of theeOrigin
field.
-
vSource
public VROverlayIntersectionParams vSource(HmdVector3 value)
Copies the specifiedHmdVector3
to thevSource
field.
-
vDirection
public VROverlayIntersectionParams vDirection(HmdVector3 value)
Copies the specifiedHmdVector3
to thevDirection
field.
-
eOrigin
public VROverlayIntersectionParams eOrigin(int value)
Sets the specified value to theeOrigin
field.
-
set
public VROverlayIntersectionParams set(HmdVector3 vSource, HmdVector3 vDirection, int eOrigin)
Initializes this struct with the specified values.
-
set
public VROverlayIntersectionParams set(VROverlayIntersectionParams src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VROverlayIntersectionParams malloc()
Returns a newVROverlayIntersectionParams
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VROverlayIntersectionParams calloc()
Returns a newVROverlayIntersectionParams
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VROverlayIntersectionParams create()
Returns a newVROverlayIntersectionParams
instance allocated withBufferUtils
.
-
create
public static VROverlayIntersectionParams create(long address)
Returns a newVROverlayIntersectionParams
instance for the specified memory address.
-
createSafe
@Nullable public static VROverlayIntersectionParams createSafe(long address)
-
malloc
public static VROverlayIntersectionParams.Buffer malloc(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VROverlayIntersectionParams.Buffer calloc(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VROverlayIntersectionParams.Buffer create(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VROverlayIntersectionParams.Buffer create(long address, int capacity)
Create aVROverlayIntersectionParams.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VROverlayIntersectionParams.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VROverlayIntersectionParams mallocStack()
Returns a newVROverlayIntersectionParams
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VROverlayIntersectionParams callocStack()
Returns a newVROverlayIntersectionParams
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VROverlayIntersectionParams mallocStack(MemoryStack stack)
Returns a newVROverlayIntersectionParams
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VROverlayIntersectionParams callocStack(MemoryStack stack)
Returns a newVROverlayIntersectionParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VROverlayIntersectionParams.Buffer mallocStack(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VROverlayIntersectionParams.Buffer callocStack(int capacity)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VROverlayIntersectionParams.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VROverlayIntersectionParams.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nvSource
public static HmdVector3 nvSource(long struct)
Unsafe version ofvSource()
.
-
nvDirection
public static HmdVector3 nvDirection(long struct)
Unsafe version ofvDirection()
.
-
neOrigin
public static int neOrigin(long struct)
Unsafe version ofeOrigin()
.
-
nvSource
public static void nvSource(long struct, HmdVector3 value)
Unsafe version ofvSource
.
-
nvDirection
public static void nvDirection(long struct, HmdVector3 value)
Unsafe version ofvDirection
.
-
neOrigin
public static void neOrigin(long struct, int value)
Unsafe version ofeOrigin
.
-
-