Package org.lwjgl.openvr
Class HmdQuad
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<HmdQuad>
org.lwjgl.openvr.HmdQuad
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class HmdQuad
extends org.lwjgl.system.Struct<HmdQuad>
implements org.lwjgl.system.NativeResource
Layout
struct HmdQuad_t {
HmdVector3_t vCorners[4];
}-
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
ConstructorsConstructorDescriptionHmdQuad(ByteBuffer container) Creates aHmdQuadinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic HmdQuadcalloc()Returns a newHmdQuadinstance allocated withmemCalloc.static HmdQuad.Buffercalloc(int capacity) Returns a newHmdQuad.Bufferinstance allocated withmemCalloc.static HmdQuad.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newHmdQuad.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdQuadcalloc(org.lwjgl.system.MemoryStack stack) Returns a newHmdQuadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdQuadDeprecated.static HmdQuad.BuffercallocStack(int capacity) Deprecated.static HmdQuad.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static HmdQuadcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static HmdQuadcreate()Returns a newHmdQuadinstance allocated withBufferUtils.static HmdQuad.Buffercreate(int capacity) Returns a newHmdQuad.Bufferinstance allocated withBufferUtils.static HmdQuadcreate(long address) Returns a newHmdQuadinstance for the specified memory address.static HmdQuad.Buffercreate(long address, int capacity) Create aHmdQuad.Bufferinstance at the specified memory.static @Nullable HmdQuadcreateSafe(long address) static @Nullable HmdQuad.BuffercreateSafe(long address, int capacity) static HmdQuadmalloc()Returns a newHmdQuadinstance allocated withmemAlloc.static HmdQuad.Buffermalloc(int capacity) Returns a newHmdQuad.Bufferinstance allocated withmemAlloc.static HmdQuad.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newHmdQuad.Bufferinstance allocated on the specifiedMemoryStack.static HmdQuadmalloc(org.lwjgl.system.MemoryStack stack) Returns a newHmdQuadinstance allocated on the specifiedMemoryStack.static HmdQuadDeprecated.static HmdQuad.BuffermallocStack(int capacity) Deprecated.static HmdQuad.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static HmdQuadmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static HmdVector3.BuffernvCorners(long struct) Unsafe version ofvCorners().static HmdVector3nvCorners(long struct, int index) Unsafe version ofvCorners.static voidnvCorners(long struct, int index, HmdVector3 value) Unsafe version ofvCorners.static voidnvCorners(long struct, HmdVector3.Buffer value) Unsafe version ofvCorners.Copies the specified struct data to this struct.intsizeof()vCorners()vCorners(int index) vCorners(int index, Consumer<HmdVector3> consumer) vCorners(int index, HmdVector3 value) Copies the specifiedHmdVector3at the specified index of thevCornersfield.vCorners(Consumer<HmdVector3.Buffer> consumer) Passes thevCornersfield to the specifiedConsumer.vCorners(HmdVector3.Buffer value) Copies the specifiedHmdVector3.Bufferto thevCornersfield.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. -
VCORNERS
public static final int VCORNERSThe struct member offsets.
-
-
Constructor Details
-
HmdQuad
Creates aHmdQuadinstance 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<HmdQuad>
-
vCorners
- Returns:
- a
HmdVector3.Buffer view of thevCornersfield.
-
vCorners
- Returns:
- a
HmdVector3view of the struct at the specified index of thevCornersfield.
-
vCorners
Copies the specifiedHmdVector3.Bufferto thevCornersfield. -
vCorners
Copies the specifiedHmdVector3at the specified index of thevCornersfield. -
vCorners
Passes thevCornersfield to the specifiedConsumer. -
vCorners
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newHmdQuadinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newHmdQuadinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newHmdQuadinstance allocated withBufferUtils. -
create
Returns a newHmdQuadinstance for the specified memory address. -
createSafe
-
malloc
Returns a newHmdQuad.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newHmdQuad.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newHmdQuad.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aHmdQuad.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 HmdQuad.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 HmdQuad.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newHmdQuadinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newHmdQuadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newHmdQuad.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newHmdQuad.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nvCorners
Unsafe version ofvCorners(). -
nvCorners
Unsafe version ofvCorners. -
nvCorners
Unsafe version ofvCorners. -
nvCorners
Unsafe version ofvCorners.
-