Package org.lwjgl.ovr
Class OVRSizei
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRSizei>
org.lwjgl.ovr.OVRSizei
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRSizei
extends org.lwjgl.system.Struct<OVRSizei>
implements org.lwjgl.system.NativeResource
-
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 size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRSizei(ByteBuffer container) Creates aOVRSizeiinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRSizeicalloc()Returns a newOVRSizeiinstance allocated withmemCalloc.static OVRSizei.Buffercalloc(int capacity) Returns a newOVRSizei.Bufferinstance allocated withmemCalloc.static OVRSizei.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRSizei.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRSizeicalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRSizeiinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRSizeiDeprecated.static OVRSizei.BuffercallocStack(int capacity) Deprecated.static OVRSizei.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRSizeicallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static OVRSizeicreate()Returns a newOVRSizeiinstance allocated withBufferUtils.static OVRSizei.Buffercreate(int capacity) Returns a newOVRSizei.Bufferinstance allocated withBufferUtils.static OVRSizeicreate(long address) Returns a newOVRSizeiinstance for the specified memory address.static OVRSizei.Buffercreate(long address, int capacity) Create aOVRSizei.Bufferinstance at the specified memory.static @Nullable OVRSizeicreateSafe(long address) static @Nullable OVRSizei.BuffercreateSafe(long address, int capacity) inth()the heighth(int value) Sets the specified value to theh()field.static OVRSizeimalloc()Returns a newOVRSizeiinstance allocated withmemAlloc.static OVRSizei.Buffermalloc(int capacity) Returns a newOVRSizei.Bufferinstance allocated withmemAlloc.static OVRSizei.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRSizei.Bufferinstance allocated on the specifiedMemoryStack.static OVRSizeimalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRSizeiinstance allocated on the specifiedMemoryStack.static OVRSizeiDeprecated.static OVRSizei.BuffermallocStack(int capacity) Deprecated.static OVRSizei.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRSizeimallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intnh(long struct) Unsafe version ofh().static voidnh(long struct, int value) Unsafe version ofh.static intnw(long struct) Unsafe version ofw().static voidnw(long struct, int value) Unsafe version ofw.set(int w, int h) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()intw()the widthw(int value) Sets the specified value to thew()field.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. -
W
public static final int WThe struct member offsets. -
H
public static final int HThe struct member offsets.
-
-
Constructor Details
-
OVRSizei
Creates aOVRSizeiinstance 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<OVRSizei>
-
w
public int w()the width -
h
public int h()the height -
w
Sets the specified value to thew()field. -
h
Sets the specified value to theh()field. -
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 newOVRSizeiinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRSizeiinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRSizeiinstance allocated withBufferUtils. -
create
Returns a newOVRSizeiinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRSizei.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRSizei.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRSizei.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRSizei.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 OVRSizei.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 OVRSizei.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRSizeiinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRSizeiinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRSizei.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRSizei.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nw
public static int nw(long struct) Unsafe version ofw(). -
nh
public static int nh(long struct) Unsafe version ofh(). -
nw
public static void nw(long struct, int value) Unsafe version ofw. -
nh
public static void nh(long struct, int value) Unsafe version ofh.
-