Package org.lwjgl.openxr
Class XrOffset2Df
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrOffset2Df
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrOffset2Df extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrOffset2Df.BufferAn array ofXrOffset2Dfstructs.
-
Constructor Summary
Constructors Constructor Description XrOffset2Df(java.nio.ByteBuffer container)Creates aXrOffset2Dfinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrOffset2Dfcalloc()Returns a newXrOffset2Dfinstance allocated withmemCalloc.static XrOffset2Df.Buffercalloc(int capacity)Returns a newXrOffset2Df.Bufferinstance allocated withmemCalloc.static XrOffset2Df.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrOffset2Df.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrOffset2Dfcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrOffset2Dfinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrOffset2Dfcreate()Returns a newXrOffset2Dfinstance allocated withBufferUtils.static XrOffset2Df.Buffercreate(int capacity)Returns a newXrOffset2Df.Bufferinstance allocated withBufferUtils.static XrOffset2Dfcreate(long address)Returns a newXrOffset2Dfinstance for the specified memory address.static XrOffset2Df.Buffercreate(long address, int capacity)Create aXrOffset2Df.Bufferinstance at the specified memory.static XrOffset2DfcreateSafe(long address)static XrOffset2Df.BuffercreateSafe(long address, int capacity)static XrOffset2Dfmalloc()Returns a newXrOffset2Dfinstance allocated withmemAlloc.static XrOffset2Df.Buffermalloc(int capacity)Returns a newXrOffset2Df.Bufferinstance allocated withmemAlloc.static XrOffset2Df.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrOffset2Df.Bufferinstance allocated on the specifiedMemoryStack.static XrOffset2Dfmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrOffset2Dfinstance allocated on the specifiedMemoryStack.static floatnx(long struct)Unsafe version ofx().static voidnx(long struct, float value)Unsafe version ofx.static floatny(long struct)Unsafe version ofy().static voidny(long struct, float value)Unsafe version ofy.XrOffset2Dfset(float x, float y)Initializes this struct with the specified values.XrOffset2Dfset(XrOffset2Df src)Copies the specified struct data to this struct.intsizeof()floatx()the floating-point offset in the x direction.XrOffset2Dfx(float value)Sets the specified value to thex()field.floaty()the floating-point offset in the y direction.XrOffset2Dfy(float value)Sets the specified value to they()field.
-
-
-
Constructor Detail
-
XrOffset2Df
public XrOffset2Df(java.nio.ByteBuffer container)
Creates aXrOffset2Dfinstance 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 float x()
the floating-point offset in the x direction.
-
y
public float y()
the floating-point offset in the y direction.
-
x
public XrOffset2Df x(float value)
Sets the specified value to thex()field.
-
y
public XrOffset2Df y(float value)
Sets the specified value to they()field.
-
set
public XrOffset2Df set(float x, float y)
Initializes this struct with the specified values.
-
set
public XrOffset2Df set(XrOffset2Df src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrOffset2Df malloc()
Returns a newXrOffset2Dfinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrOffset2Df calloc()
Returns a newXrOffset2Dfinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrOffset2Df create()
Returns a newXrOffset2Dfinstance allocated withBufferUtils.
-
create
public static XrOffset2Df create(long address)
Returns a newXrOffset2Dfinstance for the specified memory address.
-
createSafe
@Nullable public static XrOffset2Df createSafe(long address)
-
malloc
public static XrOffset2Df.Buffer malloc(int capacity)
Returns a newXrOffset2Df.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrOffset2Df.Buffer calloc(int capacity)
Returns a newXrOffset2Df.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrOffset2Df.Buffer create(int capacity)
Returns a newXrOffset2Df.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrOffset2Df.Buffer create(long address, int capacity)
Create aXrOffset2Df.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrOffset2Df.Buffer createSafe(long address, int capacity)
-
malloc
public static XrOffset2Df malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrOffset2Dfinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrOffset2Df calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrOffset2Dfinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrOffset2Df.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrOffset2Df.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrOffset2Df.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrOffset2Df.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 float nx(long struct)
Unsafe version ofx().
-
ny
public static float ny(long struct)
Unsafe version ofy().
-
nx
public static void nx(long struct, float value)Unsafe version ofx.
-
ny
public static void ny(long struct, float value)Unsafe version ofy.
-
-