Package org.lwjgl.ovr
Class OVRRecti
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRRecti>
org.lwjgl.ovr.OVRRecti
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRRecti
extends org.lwjgl.system.Struct<OVRRecti>
implements org.lwjgl.system.NativeResource
A 2D rectangle with a position and size. All components are integers.
Layout
struct ovrRecti {
ovrVector2i Pos();
ovrSizei Size();
}-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionOVRRecti(ByteBuffer container) Creates aOVRRectiinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRRecticalloc()Returns a newOVRRectiinstance allocated withmemCalloc.static OVRRecti.Buffercalloc(int capacity) Returns a newOVRRecti.Bufferinstance allocated withmemCalloc.static OVRRecti.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRRecti.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRRecticalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRRectiinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRRectiDeprecated.static OVRRecti.BuffercallocStack(int capacity) Deprecated.static OVRRecti.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRRecticallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRRecticreate()Returns a newOVRRectiinstance allocated withBufferUtils.static OVRRecti.Buffercreate(int capacity) Returns a newOVRRecti.Bufferinstance allocated withBufferUtils.static OVRRecticreate(long address) Returns a newOVRRectiinstance for the specified memory address.static OVRRecti.Buffercreate(long address, int capacity) Create aOVRRecti.Bufferinstance at the specified memory.static @Nullable OVRRecticreateSafe(long address) static @Nullable OVRRecti.BuffercreateSafe(long address, int capacity) static OVRRectimalloc()Returns a newOVRRectiinstance allocated withmemAlloc.static OVRRecti.Buffermalloc(int capacity) Returns a newOVRRecti.Bufferinstance allocated withmemAlloc.static OVRRecti.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRRecti.Bufferinstance allocated on the specifiedMemoryStack.static OVRRectimalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRRectiinstance allocated on the specifiedMemoryStack.static OVRRectiDeprecated.static OVRRecti.BuffermallocStack(int capacity) Deprecated.static OVRRecti.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRRectimallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRVector2inPos(long struct) Unsafe version ofPos().static voidnPos(long struct, OVRVector2i value) Unsafe version ofPos.static OVRSizeinSize(long struct) Unsafe version ofSize().static voidUnsafe version ofSize.Pos()the rectangle positionPos(Consumer<OVRVector2i> consumer) Pos(OVRVector2i value) Copies the specifiedOVRVector2ito thePos()field.Copies the specified struct data to this struct.set(OVRVector2i Pos, OVRSizei Size) Initializes this struct with the specified values.Size()the rectangle sizeintsizeof()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. -
POS
public static final int POSThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets.
-
-
Constructor Details
-
OVRRecti
Creates aOVRRectiinstance 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<OVRRecti>
-
Pos
the rectangle position -
Size
the rectangle size -
Pos
Copies the specifiedOVRVector2ito thePos()field. -
Pos
-
Size
-
Size
-
set
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 newOVRRectiinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRRectiinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRRectiinstance allocated withBufferUtils. -
create
Returns a newOVRRectiinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRRecti.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRRecti.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRRecti.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRRecti.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
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.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
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 OVRRecti.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 OVRRecti.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRRectiinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRRectiinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRRecti.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRRecti.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nPos
Unsafe version ofPos(). -
nSize
Unsafe version ofSize(). -
nPos
Unsafe version ofPos. -
nSize
Unsafe version ofSize.
-