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.NativeResource
Layout
union VROverlayIntersectionMaskPrimitive_Data_t {
IntersectionMaskRectangle_t
m_Rectangle;IntersectionMaskCircle_t
m_Circle; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VROverlayIntersectionMaskPrimitiveData.Buffer
An array ofVROverlayIntersectionMaskPrimitiveData
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
M_CIRCLE
M_RECTANGLEThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VROverlayIntersectionMaskPrimitiveData(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionMaskPrimitiveData
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 VROverlayIntersectionMaskPrimitiveData
calloc()
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated withmemCalloc
.static VROverlayIntersectionMaskPrimitiveData.Buffer
calloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated withmemCalloc
.static VROverlayIntersectionMaskPrimitiveData
callocStack()
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionMaskPrimitiveData.Buffer
callocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionMaskPrimitiveData.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionMaskPrimitiveData
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionMaskPrimitiveData
create()
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated withBufferUtils
.static VROverlayIntersectionMaskPrimitiveData.Buffer
create(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated withBufferUtils
.static VROverlayIntersectionMaskPrimitiveData
create(long address)
Returns a newVROverlayIntersectionMaskPrimitiveData
instance for the specified memory address.static VROverlayIntersectionMaskPrimitiveData.Buffer
create(long address, int capacity)
Create aVROverlayIntersectionMaskPrimitiveData.Buffer
instance at the specified memory.static VROverlayIntersectionMaskPrimitiveData
createSafe(long address)
static VROverlayIntersectionMaskPrimitiveData.Buffer
createSafe(long address, int capacity)
IntersectionMaskCircle
m_Circle()
Returns aIntersectionMaskCircle
view of them_Circle
field.VROverlayIntersectionMaskPrimitiveData
m_Circle(java.util.function.Consumer<IntersectionMaskCircle> consumer)
Passes them_Circle
field to the specifiedConsumer
.VROverlayIntersectionMaskPrimitiveData
m_Circle(IntersectionMaskCircle value)
Copies the specifiedIntersectionMaskCircle
to them_Circle
field.IntersectionMaskRectangle
m_Rectangle()
Returns aIntersectionMaskRectangle
view of them_Rectangle
field.VROverlayIntersectionMaskPrimitiveData
m_Rectangle(java.util.function.Consumer<IntersectionMaskRectangle> consumer)
Passes them_Rectangle
field to the specifiedConsumer
.VROverlayIntersectionMaskPrimitiveData
m_Rectangle(IntersectionMaskRectangle value)
Copies the specifiedIntersectionMaskRectangle
to them_Rectangle
field.static VROverlayIntersectionMaskPrimitiveData
malloc()
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated withmemAlloc
.static VROverlayIntersectionMaskPrimitiveData.Buffer
malloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated withmemAlloc
.static VROverlayIntersectionMaskPrimitiveData
mallocStack()
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated on the thread-localMemoryStack
.static VROverlayIntersectionMaskPrimitiveData.Buffer
mallocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated on the thread-localMemoryStack
.static VROverlayIntersectionMaskPrimitiveData.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated on the specifiedMemoryStack
.static VROverlayIntersectionMaskPrimitiveData
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated on the specifiedMemoryStack
.static IntersectionMaskCircle
nm_Circle(long struct)
Unsafe version ofm_Circle()
.static void
nm_Circle(long struct, IntersectionMaskCircle value)
Unsafe version ofm_Circle
.static IntersectionMaskRectangle
nm_Rectangle(long struct)
Unsafe version ofm_Rectangle()
.static void
nm_Rectangle(long struct, IntersectionMaskRectangle value)
Unsafe version ofm_Rectangle
.VROverlayIntersectionMaskPrimitiveData
set(VROverlayIntersectionMaskPrimitiveData src)
Copies the specified struct data to this struct.int
sizeof()
-
-
-
Constructor Detail
-
VROverlayIntersectionMaskPrimitiveData
public VROverlayIntersectionMaskPrimitiveData(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionMaskPrimitiveData
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_Rectangle
public IntersectionMaskRectangle m_Rectangle()
Returns aIntersectionMaskRectangle
view of them_Rectangle
field.
-
m_Circle
public IntersectionMaskCircle m_Circle()
Returns aIntersectionMaskCircle
view of them_Circle
field.
-
m_Rectangle
public VROverlayIntersectionMaskPrimitiveData m_Rectangle(IntersectionMaskRectangle value)
Copies the specifiedIntersectionMaskRectangle
to them_Rectangle
field.
-
m_Rectangle
public VROverlayIntersectionMaskPrimitiveData m_Rectangle(java.util.function.Consumer<IntersectionMaskRectangle> consumer)
Passes them_Rectangle
field to the specifiedConsumer
.
-
m_Circle
public VROverlayIntersectionMaskPrimitiveData m_Circle(IntersectionMaskCircle value)
Copies the specifiedIntersectionMaskCircle
to them_Circle
field.
-
m_Circle
public VROverlayIntersectionMaskPrimitiveData m_Circle(java.util.function.Consumer<IntersectionMaskCircle> consumer)
Passes them_Circle
field 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 newVROverlayIntersectionMaskPrimitiveData
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VROverlayIntersectionMaskPrimitiveData calloc()
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VROverlayIntersectionMaskPrimitiveData create()
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated withBufferUtils
.
-
create
public static VROverlayIntersectionMaskPrimitiveData create(long address)
Returns a newVROverlayIntersectionMaskPrimitiveData
instance for the specified memory address.
-
createSafe
@Nullable public static VROverlayIntersectionMaskPrimitiveData createSafe(long address)
-
malloc
public static VROverlayIntersectionMaskPrimitiveData.Buffer malloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VROverlayIntersectionMaskPrimitiveData.Buffer calloc(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VROverlayIntersectionMaskPrimitiveData.Buffer create(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VROverlayIntersectionMaskPrimitiveData.Buffer create(long address, int capacity)
Create aVROverlayIntersectionMaskPrimitiveData.Buffer
instance 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 newVROverlayIntersectionMaskPrimitiveData
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VROverlayIntersectionMaskPrimitiveData callocStack()
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VROverlayIntersectionMaskPrimitiveData mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VROverlayIntersectionMaskPrimitiveData callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionMaskPrimitiveData
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VROverlayIntersectionMaskPrimitiveData.Buffer callocStack(int capacity)
Returns a newVROverlayIntersectionMaskPrimitiveData.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.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_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
.
-
-