Package org.lwjgl.openvr
Class HmdQuad
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.HmdQuad
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class HmdQuad extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct HmdQuad_t {HmdVector3_tvCorners[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHmdQuad.BufferAn array ofHmdQuadstructs.
-
Constructor Summary
Constructors Constructor Description HmdQuad(java.nio.ByteBuffer container)Creates aHmdQuadinstance 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 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 HmdQuadcallocStack()Deprecated.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 HmdQuadcreateSafe(long address)static 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 HmdQuadmallocStack()Deprecated.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.HmdQuadset(HmdQuad src)Copies the specified struct data to this struct.intsizeof()HmdVector3.BuffervCorners()HmdVector3vCorners(int index)HmdQuadvCorners(int index, java.util.function.Consumer<HmdVector3> consumer)Passes the element atindexof thevCornersfield to the specifiedConsumer.HmdQuadvCorners(int index, HmdVector3 value)Copies the specifiedHmdVector3at the specified index of thevCornersfield.HmdQuadvCorners(java.util.function.Consumer<HmdVector3.Buffer> consumer)Passes thevCornersfield to the specifiedConsumer.HmdQuadvCorners(HmdVector3.Buffer value)Copies the specifiedHmdVector3.Bufferto thevCornersfield.
-
-
-
Constructor Detail
-
HmdQuad
public HmdQuad(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
vCorners
public HmdVector3.Buffer vCorners()
- Returns:
- a
HmdVector3.Buffer view of thevCornersfield.
-
vCorners
public HmdVector3 vCorners(int index)
- Returns:
- a
HmdVector3view of the struct at the specified index of thevCornersfield.
-
vCorners
public HmdQuad vCorners(HmdVector3.Buffer value)
Copies the specifiedHmdVector3.Bufferto thevCornersfield.
-
vCorners
public HmdQuad vCorners(int index, HmdVector3 value)
Copies the specifiedHmdVector3at the specified index of thevCornersfield.
-
vCorners
public HmdQuad vCorners(java.util.function.Consumer<HmdVector3.Buffer> consumer)
Passes thevCornersfield to the specifiedConsumer.
-
vCorners
public HmdQuad vCorners(int index, java.util.function.Consumer<HmdVector3> consumer)
Passes the element atindexof thevCornersfield to the specifiedConsumer.
-
set
public HmdQuad set(HmdQuad src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static HmdQuad malloc()
Returns a newHmdQuadinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static HmdQuad calloc()
Returns a newHmdQuadinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static HmdQuad create()
Returns a newHmdQuadinstance allocated withBufferUtils.
-
create
public static HmdQuad create(long address)
Returns a newHmdQuadinstance for the specified memory address.
-
createSafe
@Nullable public static HmdQuad createSafe(long address)
-
malloc
public static HmdQuad.Buffer malloc(int capacity)
Returns a newHmdQuad.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static HmdQuad.Buffer calloc(int capacity)
Returns a newHmdQuad.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static HmdQuad.Buffer create(int capacity)
Returns a newHmdQuad.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static HmdQuad.Buffer create(long address, int capacity)
Create aHmdQuad.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static HmdQuad.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static HmdQuad mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static HmdQuad callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static HmdQuad mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static HmdQuad callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static HmdQuad.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static HmdQuad.Buffer callocStack(int capacity)
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
public static HmdQuad malloc(org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuadinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static HmdQuad calloc(org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static HmdQuad.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuad.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static HmdQuad.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuad.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nvCorners
public static HmdVector3.Buffer nvCorners(long struct)
Unsafe version ofvCorners().
-
nvCorners
public static HmdVector3 nvCorners(long struct, int index)
Unsafe version ofvCorners.
-
nvCorners
public static void nvCorners(long struct, HmdVector3.Buffer value)Unsafe version ofvCorners.
-
nvCorners
public static void nvCorners(long struct, int index, HmdVector3 value)Unsafe version ofvCorners.
-
-