Package org.lwjgl.openvr
Class HmdVector3d
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<HmdVector3d>
org.lwjgl.openvr.HmdVector3d
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class HmdVector3d
extends org.lwjgl.system.Struct<HmdVector3d>
implements org.lwjgl.system.NativeResource
Layout
struct HmdVector3d_t {
double v[3];
}-
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 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
ConstructorsConstructorDescriptionHmdVector3d(ByteBuffer container) Creates aHmdVector3dinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic HmdVector3dcalloc()Returns a newHmdVector3dinstance allocated withmemCalloc.static HmdVector3d.Buffercalloc(int capacity) Returns a newHmdVector3d.Bufferinstance allocated withmemCalloc.static HmdVector3d.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newHmdVector3d.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdVector3dcalloc(org.lwjgl.system.MemoryStack stack) Returns a newHmdVector3dinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdVector3dDeprecated.static HmdVector3d.BuffercallocStack(int capacity) Deprecated.static HmdVector3d.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static HmdVector3dcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static HmdVector3dcreate()Returns a newHmdVector3dinstance allocated withBufferUtils.static HmdVector3d.Buffercreate(int capacity) Returns a newHmdVector3d.Bufferinstance allocated withBufferUtils.static HmdVector3dcreate(long address) Returns a newHmdVector3dinstance for the specified memory address.static HmdVector3d.Buffercreate(long address, int capacity) Create aHmdVector3d.Bufferinstance at the specified memory.static @Nullable HmdVector3dcreateSafe(long address) static @Nullable HmdVector3d.BuffercreateSafe(long address, int capacity) static HmdVector3dmalloc()Returns a newHmdVector3dinstance allocated withmemAlloc.static HmdVector3d.Buffermalloc(int capacity) Returns a newHmdVector3d.Bufferinstance allocated withmemAlloc.static HmdVector3d.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newHmdVector3d.Bufferinstance allocated on the specifiedMemoryStack.static HmdVector3dmalloc(org.lwjgl.system.MemoryStack stack) Returns a newHmdVector3dinstance allocated on the specifiedMemoryStack.static HmdVector3dDeprecated.static HmdVector3d.BuffermallocStack(int capacity) Deprecated.static HmdVector3d.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static HmdVector3dmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static DoubleBuffernv(long struct) Unsafe version ofv().static doublenv(long struct, int index) Unsafe version ofv.static voidnv(long struct, int index, double value) Unsafe version ofv.static voidnv(long struct, DoubleBuffer value) Unsafe version ofv.set(HmdVector3d src) Copies the specified struct data to this struct.intsizeof()v()doublev(int index) v(int index, double value) Sets the specified value at the specified index of thevfield.v(DoubleBuffer value) Copies the specifiedDoubleBufferto thevfield.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. -
V
public static final int VThe struct member offsets.
-
-
Constructor Details
-
HmdVector3d
Creates aHmdVector3dinstance 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<HmdVector3d>
-
v
- Returns:
- a
DoubleBufferview of thevfield.
-
v
public double v(int index) - Returns:
- the value at the specified index of the
vfield.
-
v
Copies the specifiedDoubleBufferto thevfield. -
v
Sets the specified value at the specified index of thevfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newHmdVector3dinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newHmdVector3dinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newHmdVector3dinstance allocated withBufferUtils. -
create
Returns a newHmdVector3dinstance for the specified memory address. -
createSafe
-
malloc
Returns a newHmdVector3d.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newHmdVector3d.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newHmdVector3d.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aHmdVector3d.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 HmdVector3d.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 HmdVector3d.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newHmdVector3dinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newHmdVector3dinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newHmdVector3d.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newHmdVector3d.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nv
Unsafe version ofv(). -
nv
public static double nv(long struct, int index) Unsafe version ofv. -
nv
Unsafe version ofv. -
nv
public static void nv(long struct, int index, double value) Unsafe version ofv.
-