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 Deprecated 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 VROverlayIntersectionParams.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionParamscalloc(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionParamscallocStack()Deprecated.static VROverlayIntersectionParams.BuffercallocStack(int capacity)Deprecated.static VROverlayIntersectionParams.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VROverlayIntersectionParamscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()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 VROverlayIntersectionParams.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionParamsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionParamsmallocStack()Deprecated.static VROverlayIntersectionParams.BuffermallocStack(int capacity)Deprecated.static VROverlayIntersectionParams.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VROverlayIntersectionParamsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()VROverlayIntersectionParamsvDirection(java.util.function.Consumer<HmdVector3> consumer)Passes thevDirectionfield to the specifiedConsumer.VROverlayIntersectionParamsvDirection(HmdVector3 value)Copies the specifiedHmdVector3to thevDirectionfield.HmdVector3vSource()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:
- a
HmdVector3view of thevSourcefield.
-
vDirection
public HmdVector3 vDirection()
- Returns:
- a
HmdVector3view of thevDirectionfield.
-
eOrigin
public int eOrigin()
- Returns:
- the value of the
eOriginfield.
-
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
@Deprecated public static VROverlayIntersectionParams mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VROverlayIntersectionParams callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VROverlayIntersectionParams mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VROverlayIntersectionParams callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VROverlayIntersectionParams.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VROverlayIntersectionParams.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VROverlayIntersectionParams.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VROverlayIntersectionParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VROverlayIntersectionParams malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VROverlayIntersectionParams calloc(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
-
malloc
public static VROverlayIntersectionParams.Buffer malloc(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
-
calloc
public static VROverlayIntersectionParams.Buffer calloc(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.
-
-