Package org.lwjgl.openvr
Class VROverlayIntersectionMaskPrimitive
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VROverlayIntersectionMaskPrimitive
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VROverlayIntersectionMaskPrimitive extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct VROverlayIntersectionMaskPrimitive_t { EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType;
VROverlayIntersectionMaskPrimitive_Data_t
m_Primitive; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VROverlayIntersectionMaskPrimitive.Buffer
An array ofVROverlayIntersectionMaskPrimitive
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_NPRIMITIVETYPE
M_PRIMITIVEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VROverlayIntersectionMaskPrimitive(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionMaskPrimitive
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 VROverlayIntersectionMaskPrimitive
calloc()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated withmemCalloc
.static VROverlayIntersectionMaskPrimitive.Buffer
calloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated withmemCalloc
.static VROverlayIntersectionMaskPrimitive
callocStack()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionMaskPrimitive.Buffer
callocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionMaskPrimitive.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionMaskPrimitive
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionMaskPrimitive
create()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated withBufferUtils
.static VROverlayIntersectionMaskPrimitive.Buffer
create(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated withBufferUtils
.static VROverlayIntersectionMaskPrimitive
create(long address)
Returns a newVROverlayIntersectionMaskPrimitive
instance for the specified memory address.static VROverlayIntersectionMaskPrimitive.Buffer
create(long address, int capacity)
Create aVROverlayIntersectionMaskPrimitive.Buffer
instance at the specified memory.static VROverlayIntersectionMaskPrimitive
createSafe(long address)
static VROverlayIntersectionMaskPrimitive.Buffer
createSafe(long address, int capacity)
int
m_nPrimitiveType()
Returns the value of them_nPrimitiveType
field.VROverlayIntersectionMaskPrimitive
m_nPrimitiveType(int value)
Sets the specified value to them_nPrimitiveType
field.VROverlayIntersectionMaskPrimitiveData
m_Primitive()
Returns aVROverlayIntersectionMaskPrimitiveData
view of them_Primitive
field.VROverlayIntersectionMaskPrimitive
m_Primitive(java.util.function.Consumer<VROverlayIntersectionMaskPrimitiveData> consumer)
Passes them_Primitive
field to the specifiedConsumer
.VROverlayIntersectionMaskPrimitive
m_Primitive(VROverlayIntersectionMaskPrimitiveData value)
Copies the specifiedVROverlayIntersectionMaskPrimitiveData
to them_Primitive
field.static VROverlayIntersectionMaskPrimitive
malloc()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated withmemAlloc
.static VROverlayIntersectionMaskPrimitive.Buffer
malloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated withmemAlloc
.static VROverlayIntersectionMaskPrimitive
mallocStack()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated on the thread-localMemoryStack
.static VROverlayIntersectionMaskPrimitive.Buffer
mallocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated on the thread-localMemoryStack
.static VROverlayIntersectionMaskPrimitive.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated on the specifiedMemoryStack
.static VROverlayIntersectionMaskPrimitive
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated on the specifiedMemoryStack
.static int
nm_nPrimitiveType(long struct)
Unsafe version ofm_nPrimitiveType()
.static void
nm_nPrimitiveType(long struct, int value)
Unsafe version ofm_nPrimitiveType
.static VROverlayIntersectionMaskPrimitiveData
nm_Primitive(long struct)
Unsafe version ofm_Primitive()
.static void
nm_Primitive(long struct, VROverlayIntersectionMaskPrimitiveData value)
Unsafe version ofm_Primitive
.VROverlayIntersectionMaskPrimitive
set(int m_nPrimitiveType, VROverlayIntersectionMaskPrimitiveData m_Primitive)
Initializes this struct with the specified values.VROverlayIntersectionMaskPrimitive
set(VROverlayIntersectionMaskPrimitive src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
VROverlayIntersectionMaskPrimitive
public VROverlayIntersectionMaskPrimitive(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionMaskPrimitive
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
-
m_nPrimitiveType
public int m_nPrimitiveType()
Returns the value of them_nPrimitiveType
field.
-
m_Primitive
public VROverlayIntersectionMaskPrimitiveData m_Primitive()
Returns aVROverlayIntersectionMaskPrimitiveData
view of them_Primitive
field.
-
m_nPrimitiveType
public VROverlayIntersectionMaskPrimitive m_nPrimitiveType(int value)
Sets the specified value to them_nPrimitiveType
field.
-
m_Primitive
public VROverlayIntersectionMaskPrimitive m_Primitive(VROverlayIntersectionMaskPrimitiveData value)
Copies the specifiedVROverlayIntersectionMaskPrimitiveData
to them_Primitive
field.
-
m_Primitive
public VROverlayIntersectionMaskPrimitive m_Primitive(java.util.function.Consumer<VROverlayIntersectionMaskPrimitiveData> consumer)
Passes them_Primitive
field to the specifiedConsumer
.
-
set
public VROverlayIntersectionMaskPrimitive set(int m_nPrimitiveType, VROverlayIntersectionMaskPrimitiveData m_Primitive)
Initializes this struct with the specified values.
-
set
public VROverlayIntersectionMaskPrimitive set(VROverlayIntersectionMaskPrimitive src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VROverlayIntersectionMaskPrimitive malloc()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VROverlayIntersectionMaskPrimitive calloc()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VROverlayIntersectionMaskPrimitive create()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated withBufferUtils
.
-
create
public static VROverlayIntersectionMaskPrimitive create(long address)
Returns a newVROverlayIntersectionMaskPrimitive
instance for the specified memory address.
-
createSafe
@Nullable public static VROverlayIntersectionMaskPrimitive createSafe(long address)
-
malloc
public static VROverlayIntersectionMaskPrimitive.Buffer malloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VROverlayIntersectionMaskPrimitive.Buffer calloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VROverlayIntersectionMaskPrimitive.Buffer create(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VROverlayIntersectionMaskPrimitive.Buffer create(long address, int capacity)
Create aVROverlayIntersectionMaskPrimitive.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VROverlayIntersectionMaskPrimitive.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VROverlayIntersectionMaskPrimitive mallocStack()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VROverlayIntersectionMaskPrimitive callocStack()
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VROverlayIntersectionMaskPrimitive mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VROverlayIntersectionMaskPrimitive callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitive
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VROverlayIntersectionMaskPrimitive.Buffer mallocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VROverlayIntersectionMaskPrimitive.Buffer callocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VROverlayIntersectionMaskPrimitive.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VROverlayIntersectionMaskPrimitive.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitive.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nm_nPrimitiveType
public static int nm_nPrimitiveType(long struct)
Unsafe version ofm_nPrimitiveType()
.
-
nm_Primitive
public static VROverlayIntersectionMaskPrimitiveData nm_Primitive(long struct)
Unsafe version ofm_Primitive()
.
-
nm_nPrimitiveType
public static void nm_nPrimitiveType(long struct, int value)
Unsafe version ofm_nPrimitiveType
.
-
nm_Primitive
public static void nm_Primitive(long struct, VROverlayIntersectionMaskPrimitiveData value)
Unsafe version ofm_Primitive
.
-
-