Package org.lwjgl.openvr
Class VROverlayIntersectionMaskPrimitive
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VROverlayIntersectionMaskPrimitive>
org.lwjgl.openvr.VROverlayIntersectionMaskPrimitive
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayIntersectionMaskPrimitive
extends org.lwjgl.system.Struct<VROverlayIntersectionMaskPrimitive>
implements org.lwjgl.system.NativeResource
Layout
struct VROverlayIntersectionMaskPrimitive_t {
EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType;
VROverlayIntersectionMaskPrimitive_Data_t m_Primitive;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVROverlayIntersectionMaskPrimitivestructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVROverlayIntersectionMaskPrimitive(ByteBuffer container) Creates aVROverlayIntersectionMaskPrimitiveinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withmemCalloc.calloc(int capacity) Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.Deprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.callocStack(org.lwjgl.system.MemoryStack stack) Deprecated.create()Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withBufferUtils.create(int capacity) Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVROverlayIntersectionMaskPrimitiveinstance for the specified memory address.create(long address, int capacity) Create aVROverlayIntersectionMaskPrimitive.Bufferinstance at the specified memory.static @Nullable VROverlayIntersectionMaskPrimitivecreateSafe(long address) static @Nullable VROverlayIntersectionMaskPrimitive.BuffercreateSafe(long address, int capacity) intm_nPrimitiveType(int value) Sets the specified value to them_nPrimitiveTypefield.Passes them_Primitivefield to the specifiedConsumer.Copies the specifiedVROverlayIntersectionMaskPrimitiveDatato them_Primitivefield.malloc()Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withmemAlloc.malloc(int capacity) Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the specifiedMemoryStack.Deprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnm_nPrimitiveType(long struct) Unsafe version ofm_nPrimitiveType().static voidnm_nPrimitiveType(long struct, int value) Unsafe version ofm_nPrimitiveType.nm_Primitive(long struct) Unsafe version ofm_Primitive().static voidnm_Primitive(long struct, VROverlayIntersectionMaskPrimitiveData value) Unsafe version ofm_Primitive.set(int m_nPrimitiveType, VROverlayIntersectionMaskPrimitiveData m_Primitive) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
M_NPRIMITIVETYPE
public static final int M_NPRIMITIVETYPEThe struct member offsets. -
M_PRIMITIVE
public static final int M_PRIMITIVEThe struct member offsets.
-
-
Constructor Details
-
VROverlayIntersectionMaskPrimitive
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VROverlayIntersectionMaskPrimitive>
-
m_nPrimitiveType
public int m_nPrimitiveType()- Returns:
- the value of the
m_nPrimitiveTypefield.
-
m_Primitive
- Returns:
- a
VROverlayIntersectionMaskPrimitiveDataview of them_Primitivefield.
-
m_nPrimitiveType
Sets the specified value to them_nPrimitiveTypefield. -
m_Primitive
Copies the specifiedVROverlayIntersectionMaskPrimitiveDatato them_Primitivefield. -
m_Primitive
public VROverlayIntersectionMaskPrimitive m_Primitive(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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated withBufferUtils. -
create
Returns a newVROverlayIntersectionMaskPrimitiveinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVROverlayIntersectionMaskPrimitive.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VROverlayIntersectionMaskPrimitive.Buffer createSafe(long address, int capacity) -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
@Deprecated public static VROverlayIntersectionMaskPrimitive mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
@Deprecated public static VROverlayIntersectionMaskPrimitive callocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VROverlayIntersectionMaskPrimitive.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 VROverlayIntersectionMaskPrimitive.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVROverlayIntersectionMaskPrimitiveinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VROverlayIntersectionMaskPrimitive.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VROverlayIntersectionMaskPrimitive.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitive.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nm_nPrimitiveType
public static int nm_nPrimitiveType(long struct) Unsafe version ofm_nPrimitiveType(). -
nm_Primitive
Unsafe version ofm_Primitive(). -
nm_nPrimitiveType
public static void nm_nPrimitiveType(long struct, int value) Unsafe version ofm_nPrimitiveType. -
nm_Primitive
Unsafe version ofm_Primitive.
-