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 Modifier and Type Method Description static HmdQuadcalloc()Returns a newHmdQuadinstance allocated withmemCalloc.static HmdQuad.Buffercalloc(int capacity)Returns a newHmdQuad.Bufferinstance allocated withmemCalloc.static HmdQuadcallocStack()Returns a newHmdQuadinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static HmdQuad.BuffercallocStack(int capacity)Returns a newHmdQuad.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static HmdQuad.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHmdQuad.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static HmdQuadcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newHmdQuadinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 HmdQuadmallocStack()Returns a newHmdQuadinstance allocated on the thread-localMemoryStack.static HmdQuad.BuffermallocStack(int capacity)Returns a newHmdQuad.Bufferinstance allocated on the thread-localMemoryStack.static HmdQuad.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newHmdQuad.Bufferinstance allocated on the specifiedMemoryStack.static HmdQuadmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newHmdQuadinstance allocated on the specifiedMemoryStack.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()Returns aHmdVector3.Buffer view of thevCornersfield.HmdVector3vCorners(int index)Returns aHmdVector3view of the struct at the specified index of thevCornersfield.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 aHmdVector3.Buffer view of thevCornersfield.
-
vCorners
public HmdVector3 vCorners(int index)
Returns aHmdVector3view 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
public static HmdQuad mallocStack()
Returns a newHmdQuadinstance allocated on the thread-localMemoryStack.
-
callocStack
public static HmdQuad callocStack()
Returns a newHmdQuadinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static HmdQuad mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuadinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static HmdQuad callocStack(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
-
mallocStack
public static HmdQuad.Buffer mallocStack(int capacity)
Returns a newHmdQuad.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static HmdQuad.Buffer callocStack(int capacity)
Returns a newHmdQuad.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static HmdQuad.Buffer mallocStack(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
-
callocStack
public static HmdQuad.Buffer callocStack(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.
-
-