Package org.lwjgl.openxr
Class XrOffset2Di
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrOffset2Di
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrOffset2Di extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrOffset2Di.BufferAn array ofXrOffset2Distructs.
-
Constructor Summary
Constructors Constructor Description XrOffset2Di(java.nio.ByteBuffer container)Creates aXrOffset2Diinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrOffset2Dicalloc()Returns a newXrOffset2Diinstance allocated withmemCalloc.static XrOffset2Di.Buffercalloc(int capacity)Returns a newXrOffset2Di.Bufferinstance allocated withmemCalloc.static XrOffset2Di.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrOffset2Di.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrOffset2Dicalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrOffset2Diinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrOffset2Dicreate()Returns a newXrOffset2Diinstance allocated withBufferUtils.static XrOffset2Di.Buffercreate(int capacity)Returns a newXrOffset2Di.Bufferinstance allocated withBufferUtils.static XrOffset2Dicreate(long address)Returns a newXrOffset2Diinstance for the specified memory address.static XrOffset2Di.Buffercreate(long address, int capacity)Create aXrOffset2Di.Bufferinstance at the specified memory.static XrOffset2DicreateSafe(long address)static XrOffset2Di.BuffercreateSafe(long address, int capacity)static XrOffset2Dimalloc()Returns a newXrOffset2Diinstance allocated withmemAlloc.static XrOffset2Di.Buffermalloc(int capacity)Returns a newXrOffset2Di.Bufferinstance allocated withmemAlloc.static XrOffset2Di.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrOffset2Di.Bufferinstance allocated on the specifiedMemoryStack.static XrOffset2Dimalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrOffset2Diinstance allocated on the specifiedMemoryStack.static intnx(long struct)Unsafe version ofx().static voidnx(long struct, int value)Unsafe version ofx.static intny(long struct)Unsafe version ofy().static voidny(long struct, int value)Unsafe version ofy.XrOffset2Diset(int x, int y)Initializes this struct with the specified values.XrOffset2Diset(XrOffset2Di src)Copies the specified struct data to this struct.intsizeof()intx()the integer offset in the x direction.XrOffset2Dix(int value)Sets the specified value to thex()field.inty()the integer offset in the y direction.XrOffset2Diy(int value)Sets the specified value to they()field.
-
-
-
Constructor Detail
-
XrOffset2Di
public XrOffset2Di(java.nio.ByteBuffer container)
Creates aXrOffset2Diinstance 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
-
x
public int x()
the integer offset in the x direction.
-
y
public int y()
the integer offset in the y direction.
-
x
public XrOffset2Di x(int value)
Sets the specified value to thex()field.
-
y
public XrOffset2Di y(int value)
Sets the specified value to they()field.
-
set
public XrOffset2Di set(int x, int y)
Initializes this struct with the specified values.
-
set
public XrOffset2Di set(XrOffset2Di src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrOffset2Di malloc()
Returns a newXrOffset2Diinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrOffset2Di calloc()
Returns a newXrOffset2Diinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrOffset2Di create()
Returns a newXrOffset2Diinstance allocated withBufferUtils.
-
create
public static XrOffset2Di create(long address)
Returns a newXrOffset2Diinstance for the specified memory address.
-
createSafe
@Nullable public static XrOffset2Di createSafe(long address)
-
malloc
public static XrOffset2Di.Buffer malloc(int capacity)
Returns a newXrOffset2Di.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrOffset2Di.Buffer calloc(int capacity)
Returns a newXrOffset2Di.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrOffset2Di.Buffer create(int capacity)
Returns a newXrOffset2Di.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrOffset2Di.Buffer create(long address, int capacity)
Create aXrOffset2Di.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrOffset2Di.Buffer createSafe(long address, int capacity)
-
malloc
public static XrOffset2Di malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrOffset2Diinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrOffset2Di calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrOffset2Diinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrOffset2Di.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrOffset2Di.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrOffset2Di.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrOffset2Di.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nx
public static int nx(long struct)
Unsafe version ofx().
-
ny
public static int ny(long struct)
Unsafe version ofy().
-
nx
public static void nx(long struct, int value)Unsafe version ofx.
-
ny
public static void ny(long struct, int value)Unsafe version ofy.
-
-