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.NativeResource
Layout
struct HmdQuad_t {
HmdVector3_t
vCorners[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HmdQuad.Buffer
An array ofHmdQuad
structs.
-
Constructor Summary
Constructors Constructor Description HmdQuad(java.nio.ByteBuffer container)
Creates aHmdQuad
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HmdQuad
calloc()
Returns a newHmdQuad
instance allocated withmemCalloc
.static HmdQuad.Buffer
calloc(int capacity)
Returns a newHmdQuad.Buffer
instance allocated withmemCalloc
.static HmdQuad
callocStack()
Returns a newHmdQuad
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static HmdQuad.Buffer
callocStack(int capacity)
Returns a newHmdQuad.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static HmdQuad.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuad.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HmdQuad
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuad
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static HmdQuad
create()
Returns a newHmdQuad
instance allocated withBufferUtils
.static HmdQuad.Buffer
create(int capacity)
Returns a newHmdQuad.Buffer
instance allocated withBufferUtils
.static HmdQuad
create(long address)
Returns a newHmdQuad
instance for the specified memory address.static HmdQuad.Buffer
create(long address, int capacity)
Create aHmdQuad.Buffer
instance at the specified memory.static HmdQuad
createSafe(long address)
static HmdQuad.Buffer
createSafe(long address, int capacity)
static HmdQuad
malloc()
Returns a newHmdQuad
instance allocated withmemAlloc
.static HmdQuad.Buffer
malloc(int capacity)
Returns a newHmdQuad.Buffer
instance allocated withmemAlloc
.static HmdQuad
mallocStack()
Returns a newHmdQuad
instance allocated on the thread-localMemoryStack
.static HmdQuad.Buffer
mallocStack(int capacity)
Returns a newHmdQuad.Buffer
instance allocated on the thread-localMemoryStack
.static HmdQuad.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuad.Buffer
instance allocated on the specifiedMemoryStack
.static HmdQuad
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuad
instance allocated on the specifiedMemoryStack
.static HmdVector3.Buffer
nvCorners(long struct)
Unsafe version ofvCorners()
.static HmdVector3
nvCorners(long struct, int index)
Unsafe version ofvCorners
.static void
nvCorners(long struct, int index, HmdVector3 value)
Unsafe version ofvCorners
.static void
nvCorners(long struct, HmdVector3.Buffer value)
Unsafe version ofvCorners
.HmdQuad
set(HmdQuad src)
Copies the specified struct data to this struct.int
sizeof()
HmdVector3.Buffer
vCorners()
Returns aHmdVector3
.Buffer view of thevCorners
field.HmdVector3
vCorners(int index)
Returns aHmdVector3
view of the struct at the specified index of thevCorners
field.HmdQuad
vCorners(int index, java.util.function.Consumer<HmdVector3> consumer)
Passes the element atindex
of thevCorners
field to the specifiedConsumer
.HmdQuad
vCorners(int index, HmdVector3 value)
Copies the specifiedHmdVector3
at the specified index of thevCorners
field.HmdQuad
vCorners(java.util.function.Consumer<HmdVector3.Buffer> consumer)
Passes thevCorners
field to the specifiedConsumer
.HmdQuad
vCorners(HmdVector3.Buffer value)
Copies the specifiedHmdVector3.Buffer
to thevCorners
field.
-
-
-
Constructor Detail
-
HmdQuad
public HmdQuad(java.nio.ByteBuffer container)
Creates aHmdQuad
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
vCorners
public HmdVector3.Buffer vCorners()
Returns aHmdVector3
.Buffer view of thevCorners
field.
-
vCorners
public HmdVector3 vCorners(int index)
Returns aHmdVector3
view of the struct at the specified index of thevCorners
field.
-
vCorners
public HmdQuad vCorners(HmdVector3.Buffer value)
Copies the specifiedHmdVector3.Buffer
to thevCorners
field.
-
vCorners
public HmdQuad vCorners(int index, HmdVector3 value)
Copies the specifiedHmdVector3
at the specified index of thevCorners
field.
-
vCorners
public HmdQuad vCorners(java.util.function.Consumer<HmdVector3.Buffer> consumer)
Passes thevCorners
field to the specifiedConsumer
.
-
vCorners
public HmdQuad vCorners(int index, java.util.function.Consumer<HmdVector3> consumer)
Passes the element atindex
of thevCorners
field 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 newHmdQuad
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static HmdQuad calloc()
Returns a newHmdQuad
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static HmdQuad create()
Returns a newHmdQuad
instance allocated withBufferUtils
.
-
create
public static HmdQuad create(long address)
Returns a newHmdQuad
instance for the specified memory address.
-
createSafe
@Nullable public static HmdQuad createSafe(long address)
-
malloc
public static HmdQuad.Buffer malloc(int capacity)
Returns a newHmdQuad.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static HmdQuad.Buffer calloc(int capacity)
Returns a newHmdQuad.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static HmdQuad.Buffer create(int capacity)
Returns a newHmdQuad.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static HmdQuad.Buffer create(long address, int capacity)
Create aHmdQuad.Buffer
instance 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 newHmdQuad
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static HmdQuad callocStack()
Returns a newHmdQuad
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static HmdQuad mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuad
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static HmdQuad callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newHmdQuad
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static HmdQuad.Buffer callocStack(int capacity)
Returns a newHmdQuad.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-