Package org.lwjgl.openvr
Class HmdVector4
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.HmdVector4
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class HmdVector4 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct HmdVector4_t { float v[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHmdVector4.BufferAn array ofHmdVector4structs.
-
Constructor Summary
Constructors Constructor Description HmdVector4(java.nio.ByteBuffer container)Creates aHmdVector4instance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HmdVector4calloc()Returns a newHmdVector4instance allocated withmemCalloc.static HmdVector4.Buffercalloc(int capacity)Returns a newHmdVector4.Bufferinstance allocated withmemCalloc.static HmdVector4.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHmdVector4.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdVector4calloc(org.lwjgl.system.MemoryStack stack)Returns a newHmdVector4instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdVector4callocStack()Deprecated.static HmdVector4.BuffercallocStack(int capacity)Deprecated.static HmdVector4.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static HmdVector4callocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static HmdVector4create()Returns a newHmdVector4instance allocated withBufferUtils.static HmdVector4.Buffercreate(int capacity)Returns a newHmdVector4.Bufferinstance allocated withBufferUtils.static HmdVector4create(long address)Returns a newHmdVector4instance for the specified memory address.static HmdVector4.Buffercreate(long address, int capacity)Create aHmdVector4.Bufferinstance at the specified memory.static HmdVector4createSafe(long address)static HmdVector4.BuffercreateSafe(long address, int capacity)static HmdVector4malloc()Returns a newHmdVector4instance allocated withmemAlloc.static HmdVector4.Buffermalloc(int capacity)Returns a newHmdVector4.Bufferinstance allocated withmemAlloc.static HmdVector4.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHmdVector4.Bufferinstance allocated on the specifiedMemoryStack.static HmdVector4malloc(org.lwjgl.system.MemoryStack stack)Returns a newHmdVector4instance allocated on the specifiedMemoryStack.static HmdVector4mallocStack()Deprecated.static HmdVector4.BuffermallocStack(int capacity)Deprecated.static HmdVector4.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static HmdVector4mallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.FloatBuffernv(long struct)Unsafe version ofv().static floatnv(long struct, int index)Unsafe version ofv.static voidnv(long struct, int index, float value)Unsafe version ofv.static voidnv(long struct, java.nio.FloatBuffer value)Unsafe version ofv.HmdVector4set(HmdVector4 src)Copies the specified struct data to this struct.intsizeof()java.nio.FloatBufferv()floatv(int index)HmdVector4v(int index, float value)Sets the specified value at the specified index of thevfield.HmdVector4v(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto thevfield.
-
-
-
Constructor Detail
-
HmdVector4
public HmdVector4(java.nio.ByteBuffer container)
Creates aHmdVector4instance 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
-
v
public java.nio.FloatBuffer v()
- Returns:
- a
FloatBufferview of thevfield.
-
v
public float v(int index)
- Returns:
- the value at the specified index of the
vfield.
-
v
public HmdVector4 v(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto thevfield.
-
v
public HmdVector4 v(int index, float value)
Sets the specified value at the specified index of thevfield.
-
set
public HmdVector4 set(HmdVector4 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static HmdVector4 malloc()
Returns a newHmdVector4instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static HmdVector4 calloc()
Returns a newHmdVector4instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static HmdVector4 create()
Returns a newHmdVector4instance allocated withBufferUtils.
-
create
public static HmdVector4 create(long address)
Returns a newHmdVector4instance for the specified memory address.
-
createSafe
@Nullable public static HmdVector4 createSafe(long address)
-
malloc
public static HmdVector4.Buffer malloc(int capacity)
Returns a newHmdVector4.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static HmdVector4.Buffer calloc(int capacity)
Returns a newHmdVector4.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static HmdVector4.Buffer create(int capacity)
Returns a newHmdVector4.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static HmdVector4.Buffer create(long address, int capacity)
Create aHmdVector4.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static HmdVector4.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static HmdVector4 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static HmdVector4 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static HmdVector4 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static HmdVector4 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static HmdVector4.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static HmdVector4.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static HmdVector4.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 HmdVector4.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static HmdVector4 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newHmdVector4instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static HmdVector4 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newHmdVector4instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static HmdVector4.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdVector4.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static HmdVector4.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdVector4.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nv
public static java.nio.FloatBuffer nv(long struct)
Unsafe version ofv().
-
nv
public static float nv(long struct, int index)Unsafe version ofv.
-
nv
public static void nv(long struct, java.nio.FloatBuffer value)Unsafe version ofv.
-
nv
public static void nv(long struct, int index, float value)Unsafe version ofv.
-
-