Package org.lwjgl.openvr
Class VROverlayIntersectionMaskPrimitiveData
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VROverlayIntersectionMaskPrimitiveData>
org.lwjgl.openvr.VROverlayIntersectionMaskPrimitiveData
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayIntersectionMaskPrimitiveData
extends org.lwjgl.system.Struct<VROverlayIntersectionMaskPrimitiveData>
implements org.lwjgl.system.NativeResource
Layout
union VROverlayIntersectionMaskPrimitive_Data_t {
IntersectionMaskRectangle_t m_Rectangle;
IntersectionMaskCircle_t m_Circle;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVROverlayIntersectionMaskPrimitiveDatastructs.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
ConstructorsConstructorDescriptionVROverlayIntersectionMaskPrimitiveData(ByteBuffer container) Creates aVROverlayIntersectionMaskPrimitiveDatainstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withmemCalloc.calloc(int capacity) Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitiveDatainstance 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 newVROverlayIntersectionMaskPrimitiveDatainstance allocated withBufferUtils.create(int capacity) Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVROverlayIntersectionMaskPrimitiveDatainstance for the specified memory address.create(long address, int capacity) Create aVROverlayIntersectionMaskPrimitiveData.Bufferinstance at the specified memory.static @Nullable VROverlayIntersectionMaskPrimitiveDatacreateSafe(long address) static @Nullable VROverlayIntersectionMaskPrimitiveData.BuffercreateSafe(long address, int capacity) m_Circle()m_Circle(Consumer<IntersectionMaskCircle> consumer) Passes them_Circlefield to the specifiedConsumer.m_Circle(IntersectionMaskCircle value) Copies the specifiedIntersectionMaskCircleto them_Circlefield.m_Rectangle(Consumer<IntersectionMaskRectangle> consumer) Passes them_Rectanglefield to the specifiedConsumer.Copies the specifiedIntersectionMaskRectangleto them_Rectanglefield.malloc()Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withmemAlloc.malloc(int capacity) Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitiveDatainstance 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 IntersectionMaskCirclenm_Circle(long struct) Unsafe version ofm_Circle().static voidnm_Circle(long struct, IntersectionMaskCircle value) Unsafe version ofm_Circle.static IntersectionMaskRectanglenm_Rectangle(long struct) Unsafe version ofm_Rectangle().static voidnm_Rectangle(long struct, IntersectionMaskRectangle value) Unsafe version ofm_Rectangle.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_RECTANGLE
public static final int M_RECTANGLEThe struct member offsets. -
M_CIRCLE
public static final int M_CIRCLEThe struct member offsets.
-
-
Constructor Details
-
VROverlayIntersectionMaskPrimitiveData
Creates aVROverlayIntersectionMaskPrimitiveDatainstance 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<VROverlayIntersectionMaskPrimitiveData>
-
m_Rectangle
- Returns:
- a
IntersectionMaskRectangleview of them_Rectanglefield.
-
m_Circle
- Returns:
- a
IntersectionMaskCircleview of them_Circlefield.
-
m_Rectangle
Copies the specifiedIntersectionMaskRectangleto them_Rectanglefield. -
m_Rectangle
public VROverlayIntersectionMaskPrimitiveData m_Rectangle(Consumer<IntersectionMaskRectangle> consumer) Passes them_Rectanglefield to the specifiedConsumer. -
m_Circle
Copies the specifiedIntersectionMaskCircleto them_Circlefield. -
m_Circle
Passes them_Circlefield to the specifiedConsumer. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withBufferUtils. -
create
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance for the specified memory address. -
createSafe
-
malloc
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVROverlayIntersectionMaskPrimitiveData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VROverlayIntersectionMaskPrimitiveData.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 VROverlayIntersectionMaskPrimitiveData mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
@Deprecated public static VROverlayIntersectionMaskPrimitiveData 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 VROverlayIntersectionMaskPrimitiveData.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 VROverlayIntersectionMaskPrimitiveData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VROverlayIntersectionMaskPrimitiveData.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VROverlayIntersectionMaskPrimitiveData.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nm_Rectangle
Unsafe version ofm_Rectangle(). -
nm_Circle
Unsafe version ofm_Circle(). -
nm_Rectangle
Unsafe version ofm_Rectangle. -
nm_Circle
Unsafe version ofm_Circle.
-