Package org.lwjgl.openxr
Class XrVector4sFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrVector4sFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrVector4sFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA four component short integer vector.Member Descriptions
xis thexcomponent of the vector.yis theycomponent of the vector.zis thezcomponent of the vector.wis thewcomponent of the vector.
Valid Usage (Implicit)
- The
XR_FB_hand_tracking_meshextension must be enabled prior to usingXrVector4sFB
See Also
Layout
struct XrVector4sFB { int16_t x; int16_t y; int16_t z; int16_t w; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrVector4sFB.BufferAn array ofXrVector4sFBstructs.
-
Constructor Summary
Constructors Constructor Description XrVector4sFB(java.nio.ByteBuffer container)Creates aXrVector4sFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrVector4sFBcalloc()Returns a newXrVector4sFBinstance allocated withmemCalloc.static XrVector4sFB.Buffercalloc(int capacity)Returns a newXrVector4sFB.Bufferinstance allocated withmemCalloc.static XrVector4sFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrVector4sFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrVector4sFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrVector4sFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrVector4sFBcreate()Returns a newXrVector4sFBinstance allocated withBufferUtils.static XrVector4sFB.Buffercreate(int capacity)Returns a newXrVector4sFB.Bufferinstance allocated withBufferUtils.static XrVector4sFBcreate(long address)Returns a newXrVector4sFBinstance for the specified memory address.static XrVector4sFB.Buffercreate(long address, int capacity)Create aXrVector4sFB.Bufferinstance at the specified memory.static XrVector4sFBcreateSafe(long address)static XrVector4sFB.BuffercreateSafe(long address, int capacity)static XrVector4sFBmalloc()Returns a newXrVector4sFBinstance allocated withmemAlloc.static XrVector4sFB.Buffermalloc(int capacity)Returns a newXrVector4sFB.Bufferinstance allocated withmemAlloc.static XrVector4sFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrVector4sFB.Bufferinstance allocated on the specifiedMemoryStack.static XrVector4sFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrVector4sFBinstance allocated on the specifiedMemoryStack.static shortnw(long struct)Unsafe version ofw().static voidnw(long struct, short value)Unsafe version ofw.static shortnx(long struct)Unsafe version ofx().static voidnx(long struct, short value)Unsafe version ofx.static shortny(long struct)Unsafe version ofy().static voidny(long struct, short value)Unsafe version ofy.static shortnz(long struct)Unsafe version ofz().static voidnz(long struct, short value)Unsafe version ofz.XrVector4sFBset(short x, short y, short z, short w)Initializes this struct with the specified values.XrVector4sFBset(XrVector4sFB src)Copies the specified struct data to this struct.intsizeof()shortw()XrVector4sFBw(short value)Sets the specified value to thewfield.shortx()XrVector4sFBx(short value)Sets the specified value to thexfield.shorty()XrVector4sFBy(short value)Sets the specified value to theyfield.shortz()XrVector4sFBz(short value)Sets the specified value to thezfield.
-
-
-
Constructor Detail
-
XrVector4sFB
public XrVector4sFB(java.nio.ByteBuffer container)
Creates aXrVector4sFBinstance 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 short x()
- Returns:
- the value of the
xfield.
-
y
public short y()
- Returns:
- the value of the
yfield.
-
z
public short z()
- Returns:
- the value of the
zfield.
-
w
public short w()
- Returns:
- the value of the
wfield.
-
x
public XrVector4sFB x(short value)
Sets the specified value to thexfield.
-
y
public XrVector4sFB y(short value)
Sets the specified value to theyfield.
-
z
public XrVector4sFB z(short value)
Sets the specified value to thezfield.
-
w
public XrVector4sFB w(short value)
Sets the specified value to thewfield.
-
set
public XrVector4sFB set(short x, short y, short z, short w)
Initializes this struct with the specified values.
-
set
public XrVector4sFB set(XrVector4sFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrVector4sFB malloc()
Returns a newXrVector4sFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrVector4sFB calloc()
Returns a newXrVector4sFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrVector4sFB create()
Returns a newXrVector4sFBinstance allocated withBufferUtils.
-
create
public static XrVector4sFB create(long address)
Returns a newXrVector4sFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrVector4sFB createSafe(long address)
-
malloc
public static XrVector4sFB.Buffer malloc(int capacity)
Returns a newXrVector4sFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrVector4sFB.Buffer calloc(int capacity)
Returns a newXrVector4sFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrVector4sFB.Buffer create(int capacity)
Returns a newXrVector4sFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrVector4sFB.Buffer create(long address, int capacity)
Create aXrVector4sFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrVector4sFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrVector4sFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrVector4sFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrVector4sFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrVector4sFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrVector4sFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrVector4sFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrVector4sFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrVector4sFB.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 short nx(long struct)
Unsafe version ofx().
-
ny
public static short ny(long struct)
Unsafe version ofy().
-
nz
public static short nz(long struct)
Unsafe version ofz().
-
nw
public static short nw(long struct)
Unsafe version ofw().
-
nx
public static void nx(long struct, short value)Unsafe version ofx.
-
ny
public static void ny(long struct, short value)Unsafe version ofy.
-
nz
public static void nz(long struct, short value)Unsafe version ofz.
-
nw
public static void nw(long struct, short value)Unsafe version ofw.
-
-