Package org.lwjgl.openvr
Class VROverlayIntersectionResults
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VROverlayIntersectionResults
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VROverlayIntersectionResults extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct VROverlayIntersectionResults_t {
HmdVector3_t
vPoint;HmdVector3_t
vNormal;HmdVector2_t
vUVs; float fDistance; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VROverlayIntersectionResults.Buffer
An array ofVROverlayIntersectionResults
structs.
-
Constructor Summary
Constructors Constructor Description VROverlayIntersectionResults(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionResults
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 VROverlayIntersectionResults
calloc()
Returns a newVROverlayIntersectionResults
instance allocated withmemCalloc
.static VROverlayIntersectionResults.Buffer
calloc(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated withmemCalloc
.static VROverlayIntersectionResults
callocStack()
Returns a newVROverlayIntersectionResults
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionResults.Buffer
callocStack(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionResults.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionResults
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionResults
create()
Returns a newVROverlayIntersectionResults
instance allocated withBufferUtils
.static VROverlayIntersectionResults.Buffer
create(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated withBufferUtils
.static VROverlayIntersectionResults
create(long address)
Returns a newVROverlayIntersectionResults
instance for the specified memory address.static VROverlayIntersectionResults.Buffer
create(long address, int capacity)
Create aVROverlayIntersectionResults.Buffer
instance at the specified memory.static VROverlayIntersectionResults
createSafe(long address)
static VROverlayIntersectionResults.Buffer
createSafe(long address, int capacity)
float
fDistance()
Returns the value of thefDistance
field.static VROverlayIntersectionResults
malloc()
Returns a newVROverlayIntersectionResults
instance allocated withmemAlloc
.static VROverlayIntersectionResults.Buffer
malloc(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated withmemAlloc
.static VROverlayIntersectionResults
mallocStack()
Returns a newVROverlayIntersectionResults
instance allocated on the thread-localMemoryStack
.static VROverlayIntersectionResults.Buffer
mallocStack(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated on the thread-localMemoryStack
.static VROverlayIntersectionResults.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated on the specifiedMemoryStack
.static VROverlayIntersectionResults
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults
instance allocated on the specifiedMemoryStack
.static float
nfDistance(long struct)
Unsafe version offDistance()
.static HmdVector3
nvNormal(long struct)
Unsafe version ofvNormal()
.static HmdVector3
nvPoint(long struct)
Unsafe version ofvPoint()
.static HmdVector2
nvUVs(long struct)
Unsafe version ofvUVs()
.int
sizeof()
HmdVector3
vNormal()
Returns aHmdVector3
view of thevNormal
field.HmdVector3
vPoint()
Returns aHmdVector3
view of thevPoint
field.HmdVector2
vUVs()
Returns aHmdVector2
view of thevUVs
field.
-
-
-
Constructor Detail
-
VROverlayIntersectionResults
public VROverlayIntersectionResults(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionResults
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
-
vPoint
public HmdVector3 vPoint()
Returns aHmdVector3
view of thevPoint
field.
-
vNormal
public HmdVector3 vNormal()
Returns aHmdVector3
view of thevNormal
field.
-
vUVs
public HmdVector2 vUVs()
Returns aHmdVector2
view of thevUVs
field.
-
fDistance
public float fDistance()
Returns the value of thefDistance
field.
-
malloc
public static VROverlayIntersectionResults malloc()
Returns a newVROverlayIntersectionResults
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VROverlayIntersectionResults calloc()
Returns a newVROverlayIntersectionResults
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VROverlayIntersectionResults create()
Returns a newVROverlayIntersectionResults
instance allocated withBufferUtils
.
-
create
public static VROverlayIntersectionResults create(long address)
Returns a newVROverlayIntersectionResults
instance for the specified memory address.
-
createSafe
@Nullable public static VROverlayIntersectionResults createSafe(long address)
-
malloc
public static VROverlayIntersectionResults.Buffer malloc(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VROverlayIntersectionResults.Buffer calloc(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VROverlayIntersectionResults.Buffer create(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VROverlayIntersectionResults.Buffer create(long address, int capacity)
Create aVROverlayIntersectionResults.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VROverlayIntersectionResults.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VROverlayIntersectionResults mallocStack()
Returns a newVROverlayIntersectionResults
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VROverlayIntersectionResults callocStack()
Returns a newVROverlayIntersectionResults
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VROverlayIntersectionResults mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VROverlayIntersectionResults callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VROverlayIntersectionResults.Buffer mallocStack(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VROverlayIntersectionResults.Buffer callocStack(int capacity)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VROverlayIntersectionResults.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VROverlayIntersectionResults.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nvPoint
public static HmdVector3 nvPoint(long struct)
Unsafe version ofvPoint()
.
-
nvNormal
public static HmdVector3 nvNormal(long struct)
Unsafe version ofvNormal()
.
-
nvUVs
public static HmdVector2 nvUVs(long struct)
Unsafe version ofvUVs()
.
-
nfDistance
public static float nfDistance(long struct)
Unsafe version offDistance()
.
-
-