Package org.lwjgl.openxr
Class XrRect2Di
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrRect2Di
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrRect2Di extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceRect in two dimensions.Description
This variant is for representing discrete values such as texels. For representing physical distances, the floating-point variant must be used instead.
See Also
XrExtent2Di,XrOffset2Di,XrSwapchainSubImageLayout
struct XrRect2Di {XrOffset2Dioffset();XrExtent2Diextent(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrRect2Di.BufferAn array ofXrRect2Distructs.
-
Constructor Summary
Constructors Constructor Description XrRect2Di(java.nio.ByteBuffer container)Creates aXrRect2Diinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrRect2Dicalloc()Returns a newXrRect2Diinstance allocated withmemCalloc.static XrRect2Di.Buffercalloc(int capacity)Returns a newXrRect2Di.Bufferinstance allocated withmemCalloc.static XrRect2Di.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrRect2Di.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRect2Dicalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrRect2Diinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRect2Dicreate()Returns a newXrRect2Diinstance allocated withBufferUtils.static XrRect2Di.Buffercreate(int capacity)Returns a newXrRect2Di.Bufferinstance allocated withBufferUtils.static XrRect2Dicreate(long address)Returns a newXrRect2Diinstance for the specified memory address.static XrRect2Di.Buffercreate(long address, int capacity)Create aXrRect2Di.Bufferinstance at the specified memory.static XrRect2DicreateSafe(long address)static XrRect2Di.BuffercreateSafe(long address, int capacity)XrExtent2Diextent()theXrExtent2Dispecifying the integer rectangle extent.XrRect2Diextent(java.util.function.Consumer<XrExtent2Di> consumer)Passes theextent()field to the specifiedConsumer.XrRect2Diextent(XrExtent2Di value)Copies the specifiedXrExtent2Dito theextent()field.static XrRect2Dimalloc()Returns a newXrRect2Diinstance allocated withmemAlloc.static XrRect2Di.Buffermalloc(int capacity)Returns a newXrRect2Di.Bufferinstance allocated withmemAlloc.static XrRect2Di.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrRect2Di.Bufferinstance allocated on the specifiedMemoryStack.static XrRect2Dimalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrRect2Diinstance allocated on the specifiedMemoryStack.static XrExtent2Dinextent(long struct)Unsafe version ofextent().static voidnextent(long struct, XrExtent2Di value)Unsafe version ofextent.static XrOffset2Dinoffset(long struct)Unsafe version ofoffset().static voidnoffset(long struct, XrOffset2Di value)Unsafe version ofoffset.XrOffset2Dioffset()theXrOffset2Dispecifying the integer rectangle offset.XrRect2Dioffset(java.util.function.Consumer<XrOffset2Di> consumer)Passes theoffset()field to the specifiedConsumer.XrRect2Dioffset(XrOffset2Di value)Copies the specifiedXrOffset2Dito theoffset()field.XrRect2Diset(XrOffset2Di offset, XrExtent2Di extent)Initializes this struct with the specified values.XrRect2Diset(XrRect2Di src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrRect2Di
public XrRect2Di(java.nio.ByteBuffer container)
Creates aXrRect2Diinstance 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
-
offset
public XrOffset2Di offset()
theXrOffset2Dispecifying the integer rectangle offset.
-
extent
public XrExtent2Di extent()
theXrExtent2Dispecifying the integer rectangle extent.
-
offset
public XrRect2Di offset(XrOffset2Di value)
Copies the specifiedXrOffset2Dito theoffset()field.
-
offset
public XrRect2Di offset(java.util.function.Consumer<XrOffset2Di> consumer)
Passes theoffset()field to the specifiedConsumer.
-
extent
public XrRect2Di extent(XrExtent2Di value)
Copies the specifiedXrExtent2Dito theextent()field.
-
extent
public XrRect2Di extent(java.util.function.Consumer<XrExtent2Di> consumer)
Passes theextent()field to the specifiedConsumer.
-
set
public XrRect2Di set(XrOffset2Di offset, XrExtent2Di extent)
Initializes this struct with the specified values.
-
set
public XrRect2Di set(XrRect2Di src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrRect2Di malloc()
Returns a newXrRect2Diinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrRect2Di calloc()
Returns a newXrRect2Diinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrRect2Di create()
Returns a newXrRect2Diinstance allocated withBufferUtils.
-
create
public static XrRect2Di create(long address)
Returns a newXrRect2Diinstance for the specified memory address.
-
createSafe
@Nullable public static XrRect2Di createSafe(long address)
-
malloc
public static XrRect2Di.Buffer malloc(int capacity)
Returns a newXrRect2Di.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrRect2Di.Buffer calloc(int capacity)
Returns a newXrRect2Di.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrRect2Di.Buffer create(int capacity)
Returns a newXrRect2Di.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrRect2Di.Buffer create(long address, int capacity)
Create aXrRect2Di.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrRect2Di.Buffer createSafe(long address, int capacity)
-
malloc
public static XrRect2Di malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrRect2Diinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrRect2Di calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrRect2Diinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrRect2Di.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrRect2Di.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrRect2Di.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrRect2Di.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
noffset
public static XrOffset2Di noffset(long struct)
Unsafe version ofoffset().
-
nextent
public static XrExtent2Di nextent(long struct)
Unsafe version ofextent().
-
noffset
public static void noffset(long struct, XrOffset2Di value)Unsafe version ofoffset.
-
nextent
public static void nextent(long struct, XrExtent2Di value)Unsafe version ofextent.
-
-