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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayIntersectionParams extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct VROverlayIntersectionParams_t {HmdVector3_tvSource;HmdVector3_tvDirection; ETrackingUniverseOrigin eOrigin; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVROverlayIntersectionParams.BufferAn array ofVROverlayIntersectionParamsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEORIGINThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVDIRECTION
VSOURCEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VROverlayIntersectionParams(java.nio.ByteBuffer container)Creates aVROverlayIntersectionParamsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VROverlayIntersectionParamscalloc()Returns a newVROverlayIntersectionParamsinstance allocated withmemCalloc.static VROverlayIntersectionParams.Buffercalloc(int capacity)Returns a newVROverlayIntersectionParams.Bufferinstance allocated withmemCalloc.static VROverlayIntersectionParamscallocStack()Returns a newVROverlayIntersectionParamsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VROverlayIntersectionParams.BuffercallocStack(int capacity)Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VROverlayIntersectionParams.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionParamscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionParamscreate()Returns a newVROverlayIntersectionParamsinstance allocated withBufferUtils.static VROverlayIntersectionParams.Buffercreate(int capacity)Returns a newVROverlayIntersectionParams.Bufferinstance allocated withBufferUtils.static VROverlayIntersectionParamscreate(long address)Returns a newVROverlayIntersectionParamsinstance for the specified memory address.static VROverlayIntersectionParams.Buffercreate(long address, int capacity)Create aVROverlayIntersectionParams.Bufferinstance at the specified memory.static VROverlayIntersectionParamscreateSafe(long address)static VROverlayIntersectionParams.BuffercreateSafe(long address, int capacity)inteOrigin()Returns the value of theeOriginfield.VROverlayIntersectionParamseOrigin(int value)Sets the specified value to theeOriginfield.static VROverlayIntersectionParamsmalloc()Returns a newVROverlayIntersectionParamsinstance allocated withmemAlloc.static VROverlayIntersectionParams.Buffermalloc(int capacity)Returns a newVROverlayIntersectionParams.Bufferinstance allocated withmemAlloc.static VROverlayIntersectionParamsmallocStack()Returns a newVROverlayIntersectionParamsinstance allocated on the thread-localMemoryStack.static VROverlayIntersectionParams.BuffermallocStack(int capacity)Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the thread-localMemoryStack.static VROverlayIntersectionParams.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionParamsmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStack.static intneOrigin(long struct)Unsafe version ofeOrigin().static voidneOrigin(long struct, int value)Unsafe version ofeOrigin.static HmdVector3nvDirection(long struct)Unsafe version ofvDirection().static voidnvDirection(long struct, HmdVector3 value)Unsafe version ofvDirection.static HmdVector3nvSource(long struct)Unsafe version ofvSource().static voidnvSource(long struct, HmdVector3 value)Unsafe version ofvSource.VROverlayIntersectionParamsset(HmdVector3 vSource, HmdVector3 vDirection, int eOrigin)Initializes this struct with the specified values.VROverlayIntersectionParamsset(VROverlayIntersectionParams src)Copies the specified struct data to this struct.intsizeof()HmdVector3vDirection()Returns aHmdVector3view of thevDirectionfield.VROverlayIntersectionParamsvDirection(java.util.function.Consumer<HmdVector3> consumer)Passes thevDirectionfield to the specifiedConsumer.VROverlayIntersectionParamsvDirection(HmdVector3 value)Copies the specifiedHmdVector3to thevDirectionfield.HmdVector3vSource()Returns aHmdVector3view of thevSourcefield.VROverlayIntersectionParamsvSource(java.util.function.Consumer<HmdVector3> consumer)Passes thevSourcefield to the specifiedConsumer.VROverlayIntersectionParamsvSource(HmdVector3 value)Copies the specifiedHmdVector3to thevSourcefield.
-
-
-
Constructor Detail
-
VROverlayIntersectionParams
public VROverlayIntersectionParams(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionParamsinstance 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
-
vSource
public HmdVector3 vSource()
Returns aHmdVector3view of thevSourcefield.
-
vDirection
public HmdVector3 vDirection()
Returns aHmdVector3view of thevDirectionfield.
-
eOrigin
public int eOrigin()
Returns the value of theeOriginfield.
-
vSource
public VROverlayIntersectionParams vSource(HmdVector3 value)
Copies the specifiedHmdVector3to thevSourcefield.
-
vSource
public VROverlayIntersectionParams vSource(java.util.function.Consumer<HmdVector3> consumer)
Passes thevSourcefield to the specifiedConsumer.
-
vDirection
public VROverlayIntersectionParams vDirection(HmdVector3 value)
Copies the specifiedHmdVector3to thevDirectionfield.
-
vDirection
public VROverlayIntersectionParams vDirection(java.util.function.Consumer<HmdVector3> consumer)
Passes thevDirectionfield to the specifiedConsumer.
-
eOrigin
public VROverlayIntersectionParams eOrigin(int value)
Sets the specified value to theeOriginfield.
-
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 newVROverlayIntersectionParamsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VROverlayIntersectionParams calloc()
Returns a newVROverlayIntersectionParamsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VROverlayIntersectionParams create()
Returns a newVROverlayIntersectionParamsinstance allocated withBufferUtils.
-
create
public static VROverlayIntersectionParams create(long address)
Returns a newVROverlayIntersectionParamsinstance for the specified memory address.
-
createSafe
@Nullable public static VROverlayIntersectionParams createSafe(long address)
-
malloc
public static VROverlayIntersectionParams.Buffer malloc(int capacity)
Returns a newVROverlayIntersectionParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VROverlayIntersectionParams.Buffer calloc(int capacity)
Returns a newVROverlayIntersectionParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayIntersectionParams.Buffer create(int capacity)
Returns a newVROverlayIntersectionParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayIntersectionParams.Buffer create(long address, int capacity)
Create aVROverlayIntersectionParams.Bufferinstance 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 newVROverlayIntersectionParamsinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VROverlayIntersectionParams callocStack()
Returns a newVROverlayIntersectionParamsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VROverlayIntersectionParams mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VROverlayIntersectionParams callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VROverlayIntersectionParams.Buffer callocStack(int capacity)
Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VROverlayIntersectionParams.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VROverlayIntersectionParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-