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.NativeResourceLayout
struct VROverlayIntersectionMaskPrimitive_t { EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType;VROverlayIntersectionMaskPrimitive_Data_tm_Primitive; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVROverlayIntersectionMaskPrimitive.BufferAn array ofVROverlayIntersectionMaskPrimitivestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_NPRIMITIVETYPE
M_PRIMITIVEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VROverlayIntersectionMaskPrimitive(java.nio.ByteBuffer container)Creates aVROverlayIntersectionMaskPrimitiveinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VROverlayIntersectionMaskPrimitivecalloc()Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withmemCalloc.static VROverlayIntersectionMaskPrimitive.Buffercalloc(int capacity)Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withmemCalloc.static VROverlayIntersectionMaskPrimitivecallocStack()Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VROverlayIntersectionMaskPrimitive.BuffercallocStack(int capacity)Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VROverlayIntersectionMaskPrimitive.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionMaskPrimitivecallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionMaskPrimitivecreate()Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withBufferUtils.static VROverlayIntersectionMaskPrimitive.Buffercreate(int capacity)Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withBufferUtils.static VROverlayIntersectionMaskPrimitivecreate(long address)Returns a newVROverlayIntersectionMaskPrimitiveinstance for the specified memory address.static VROverlayIntersectionMaskPrimitive.Buffercreate(long address, int capacity)Create aVROverlayIntersectionMaskPrimitive.Bufferinstance at the specified memory.static VROverlayIntersectionMaskPrimitivecreateSafe(long address)static VROverlayIntersectionMaskPrimitive.BuffercreateSafe(long address, int capacity)intm_nPrimitiveType()Returns the value of them_nPrimitiveTypefield.VROverlayIntersectionMaskPrimitivem_nPrimitiveType(int value)Sets the specified value to them_nPrimitiveTypefield.VROverlayIntersectionMaskPrimitiveDatam_Primitive()Returns aVROverlayIntersectionMaskPrimitiveDataview of them_Primitivefield.VROverlayIntersectionMaskPrimitivem_Primitive(java.util.function.Consumer<VROverlayIntersectionMaskPrimitiveData> consumer)Passes them_Primitivefield to the specifiedConsumer.VROverlayIntersectionMaskPrimitivem_Primitive(VROverlayIntersectionMaskPrimitiveData value)Copies the specifiedVROverlayIntersectionMaskPrimitiveDatato them_Primitivefield.static VROverlayIntersectionMaskPrimitivemalloc()Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withmemAlloc.static VROverlayIntersectionMaskPrimitive.Buffermalloc(int capacity)Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withmemAlloc.static VROverlayIntersectionMaskPrimitivemallocStack()Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the thread-localMemoryStack.static VROverlayIntersectionMaskPrimitive.BuffermallocStack(int capacity)Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the thread-localMemoryStack.static VROverlayIntersectionMaskPrimitive.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionMaskPrimitivemallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the specifiedMemoryStack.static intnm_nPrimitiveType(long struct)Unsafe version ofm_nPrimitiveType().static voidnm_nPrimitiveType(long struct, int value)Unsafe version ofm_nPrimitiveType.static VROverlayIntersectionMaskPrimitiveDatanm_Primitive(long struct)Unsafe version ofm_Primitive().static voidnm_Primitive(long struct, VROverlayIntersectionMaskPrimitiveData value)Unsafe version ofm_Primitive.VROverlayIntersectionMaskPrimitiveset(int m_nPrimitiveType, VROverlayIntersectionMaskPrimitiveData m_Primitive)Initializes this struct with the specified values.VROverlayIntersectionMaskPrimitiveset(VROverlayIntersectionMaskPrimitive src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VROverlayIntersectionMaskPrimitive
public VROverlayIntersectionMaskPrimitive(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionMaskPrimitiveinstance 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
-
m_nPrimitiveType
public int m_nPrimitiveType()
Returns the value of them_nPrimitiveTypefield.
-
m_Primitive
public VROverlayIntersectionMaskPrimitiveData m_Primitive()
Returns aVROverlayIntersectionMaskPrimitiveDataview of them_Primitivefield.
-
m_nPrimitiveType
public VROverlayIntersectionMaskPrimitive m_nPrimitiveType(int value)
Sets the specified value to them_nPrimitiveTypefield.
-
m_Primitive
public VROverlayIntersectionMaskPrimitive m_Primitive(VROverlayIntersectionMaskPrimitiveData value)
Copies the specifiedVROverlayIntersectionMaskPrimitiveDatato them_Primitivefield.
-
m_Primitive
public VROverlayIntersectionMaskPrimitive m_Primitive(java.util.function.Consumer<VROverlayIntersectionMaskPrimitiveData> consumer)
Passes them_Primitivefield 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 newVROverlayIntersectionMaskPrimitiveinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VROverlayIntersectionMaskPrimitive calloc()
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VROverlayIntersectionMaskPrimitive create()
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withBufferUtils.
-
create
public static VROverlayIntersectionMaskPrimitive create(long address)
Returns a newVROverlayIntersectionMaskPrimitiveinstance for the specified memory address.
-
createSafe
@Nullable public static VROverlayIntersectionMaskPrimitive createSafe(long address)
-
malloc
public static VROverlayIntersectionMaskPrimitive.Buffer malloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VROverlayIntersectionMaskPrimitive.Buffer calloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayIntersectionMaskPrimitive.Buffer create(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayIntersectionMaskPrimitive.Buffer create(long address, int capacity)
Create aVROverlayIntersectionMaskPrimitive.Bufferinstance 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 newVROverlayIntersectionMaskPrimitiveinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VROverlayIntersectionMaskPrimitive callocStack()
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VROverlayIntersectionMaskPrimitive mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VROverlayIntersectionMaskPrimitive callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VROverlayIntersectionMaskPrimitive.Buffer callocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-