Package org.lwjgl.openvr
Class VROverlayIntersectionMaskPrimitiveData
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VROverlayIntersectionMaskPrimitiveData
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayIntersectionMaskPrimitiveData extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
union VROverlayIntersectionMaskPrimitive_Data_t {IntersectionMaskRectangle_tm_Rectangle;IntersectionMaskCircle_tm_Circle; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVROverlayIntersectionMaskPrimitiveData.BufferAn array ofVROverlayIntersectionMaskPrimitiveDatastructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intM_CIRCLE
M_RECTANGLEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VROverlayIntersectionMaskPrimitiveData(java.nio.ByteBuffer container)Creates aVROverlayIntersectionMaskPrimitiveDatainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VROverlayIntersectionMaskPrimitiveDatacalloc()Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withmemCalloc.static VROverlayIntersectionMaskPrimitiveData.Buffercalloc(int capacity)Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withmemCalloc.static VROverlayIntersectionMaskPrimitiveDatacallocStack()Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VROverlayIntersectionMaskPrimitiveData.BuffercallocStack(int capacity)Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VROverlayIntersectionMaskPrimitiveData.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionMaskPrimitiveDatacallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionMaskPrimitiveDatacreate()Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withBufferUtils.static VROverlayIntersectionMaskPrimitiveData.Buffercreate(int capacity)Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withBufferUtils.static VROverlayIntersectionMaskPrimitiveDatacreate(long address)Returns a newVROverlayIntersectionMaskPrimitiveDatainstance for the specified memory address.static VROverlayIntersectionMaskPrimitiveData.Buffercreate(long address, int capacity)Create aVROverlayIntersectionMaskPrimitiveData.Bufferinstance at the specified memory.static VROverlayIntersectionMaskPrimitiveDatacreateSafe(long address)static VROverlayIntersectionMaskPrimitiveData.BuffercreateSafe(long address, int capacity)IntersectionMaskCirclem_Circle()Returns aIntersectionMaskCircleview of them_Circlefield.VROverlayIntersectionMaskPrimitiveDatam_Circle(java.util.function.Consumer<IntersectionMaskCircle> consumer)Passes them_Circlefield to the specifiedConsumer.VROverlayIntersectionMaskPrimitiveDatam_Circle(IntersectionMaskCircle value)Copies the specifiedIntersectionMaskCircleto them_Circlefield.IntersectionMaskRectanglem_Rectangle()Returns aIntersectionMaskRectangleview of them_Rectanglefield.VROverlayIntersectionMaskPrimitiveDatam_Rectangle(java.util.function.Consumer<IntersectionMaskRectangle> consumer)Passes them_Rectanglefield to the specifiedConsumer.VROverlayIntersectionMaskPrimitiveDatam_Rectangle(IntersectionMaskRectangle value)Copies the specifiedIntersectionMaskRectangleto them_Rectanglefield.static VROverlayIntersectionMaskPrimitiveDatamalloc()Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withmemAlloc.static VROverlayIntersectionMaskPrimitiveData.Buffermalloc(int capacity)Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withmemAlloc.static VROverlayIntersectionMaskPrimitiveDatamallocStack()Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the thread-localMemoryStack.static VROverlayIntersectionMaskPrimitiveData.BuffermallocStack(int capacity)Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the thread-localMemoryStack.static VROverlayIntersectionMaskPrimitiveData.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionMaskPrimitiveDatamallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the specifiedMemoryStack.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.VROverlayIntersectionMaskPrimitiveDataset(VROverlayIntersectionMaskPrimitiveData src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VROverlayIntersectionMaskPrimitiveData
public VROverlayIntersectionMaskPrimitiveData(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
m_Rectangle
public IntersectionMaskRectangle m_Rectangle()
Returns aIntersectionMaskRectangleview of them_Rectanglefield.
-
m_Circle
public IntersectionMaskCircle m_Circle()
Returns aIntersectionMaskCircleview of them_Circlefield.
-
m_Rectangle
public VROverlayIntersectionMaskPrimitiveData m_Rectangle(IntersectionMaskRectangle value)
Copies the specifiedIntersectionMaskRectangleto them_Rectanglefield.
-
m_Rectangle
public VROverlayIntersectionMaskPrimitiveData m_Rectangle(java.util.function.Consumer<IntersectionMaskRectangle> consumer)
Passes them_Rectanglefield to the specifiedConsumer.
-
m_Circle
public VROverlayIntersectionMaskPrimitiveData m_Circle(IntersectionMaskCircle value)
Copies the specifiedIntersectionMaskCircleto them_Circlefield.
-
m_Circle
public VROverlayIntersectionMaskPrimitiveData m_Circle(java.util.function.Consumer<IntersectionMaskCircle> consumer)
Passes them_Circlefield to the specifiedConsumer.
-
set
public VROverlayIntersectionMaskPrimitiveData set(VROverlayIntersectionMaskPrimitiveData src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VROverlayIntersectionMaskPrimitiveData malloc()
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VROverlayIntersectionMaskPrimitiveData calloc()
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VROverlayIntersectionMaskPrimitiveData create()
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated withBufferUtils.
-
create
public static VROverlayIntersectionMaskPrimitiveData create(long address)
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance for the specified memory address.
-
createSafe
@Nullable public static VROverlayIntersectionMaskPrimitiveData createSafe(long address)
-
malloc
public static VROverlayIntersectionMaskPrimitiveData.Buffer malloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VROverlayIntersectionMaskPrimitiveData.Buffer calloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayIntersectionMaskPrimitiveData.Buffer create(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayIntersectionMaskPrimitiveData.Buffer create(long address, int capacity)
Create aVROverlayIntersectionMaskPrimitiveData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VROverlayIntersectionMaskPrimitiveData.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VROverlayIntersectionMaskPrimitiveData mallocStack()
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the thread-localMemoryStack.
-
callocStack
public static VROverlayIntersectionMaskPrimitiveData callocStack()
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VROverlayIntersectionMaskPrimitiveData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VROverlayIntersectionMaskPrimitiveData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VROverlayIntersectionMaskPrimitiveData.Buffer mallocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VROverlayIntersectionMaskPrimitiveData.Buffer callocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VROverlayIntersectionMaskPrimitiveData.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VROverlayIntersectionMaskPrimitiveData.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nm_Rectangle
public static IntersectionMaskRectangle nm_Rectangle(long struct)
Unsafe version ofm_Rectangle().
-
nm_Circle
public static IntersectionMaskCircle nm_Circle(long struct)
Unsafe version ofm_Circle().
-
nm_Rectangle
public static void nm_Rectangle(long struct, IntersectionMaskRectangle value)Unsafe version ofm_Rectangle.
-
nm_Circle
public static void nm_Circle(long struct, IntersectionMaskCircle value)Unsafe version ofm_Circle.
-
-