Package org.lwjgl.ovr
Class OVRPosef
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Position and orientation together.
Layout
struct ovrPosef {
ovrQuatf
Orientation()
;
ovrVector3f
Position()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVRPosef
(ByteBuffer container) Creates aOVRPosef
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRPosef
calloc()
Returns a newOVRPosef
instance allocated withmemCalloc
.static OVRPosef.Buffer
calloc
(int capacity) Returns a newOVRPosef.Buffer
instance allocated withmemCalloc
.static OVRPosef.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRPosef.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRPosef
calloc
(MemoryStack stack) Returns a newOVRPosef
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRPosef
Deprecated.static OVRPosef.Buffer
callocStack
(int capacity) Deprecated.static OVRPosef.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRPosef
callocStack
(MemoryStack stack) Deprecated.static OVRPosef
create()
Returns a newOVRPosef
instance allocated withBufferUtils
.static OVRPosef.Buffer
create
(int capacity) Returns a newOVRPosef.Buffer
instance allocated withBufferUtils
.static OVRPosef
create
(long address) Returns a newOVRPosef
instance for the specified memory address.static OVRPosef.Buffer
create
(long address, int capacity) Create aOVRPosef.Buffer
instance at the specified memory.static OVRPosef
createSafe
(long address) static OVRPosef.Buffer
createSafe
(long address, int capacity) static OVRPosef
malloc()
Returns a newOVRPosef
instance allocated withmemAlloc
.static OVRPosef.Buffer
malloc
(int capacity) Returns a newOVRPosef.Buffer
instance allocated withmemAlloc
.static OVRPosef.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRPosef.Buffer
instance allocated on the specifiedMemoryStack
.static OVRPosef
malloc
(MemoryStack stack) Returns a newOVRPosef
instance allocated on the specifiedMemoryStack
.static OVRPosef
Deprecated.static OVRPosef.Buffer
mallocStack
(int capacity) Deprecated.static OVRPosef.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRPosef
mallocStack
(MemoryStack stack) Deprecated.static OVRQuatf
nOrientation
(long struct) Unsafe version ofOrientation()
.static void
nOrientation
(long struct, OVRQuatf value) Unsafe version ofOrientation
.static OVRVector3f
nPosition
(long struct) Unsafe version ofPosition()
.static void
nPosition
(long struct, OVRVector3f value) Unsafe version ofPosition
.the pose orientationOrientation
(Consumer<OVRQuatf> consumer) Passes theOrientation()
field to the specifiedConsumer
.Orientation
(OVRQuatf value) Copies the specifiedOVRQuatf
to theOrientation()
field.Position()
the pose positionPosition
(Consumer<OVRVector3f> consumer) Passes thePosition()
field to the specifiedConsumer
.Position
(OVRVector3f value) Copies the specifiedOVRVector3f
to thePosition()
field.Copies the specified struct data to this struct.set
(OVRQuatf Orientation, OVRVector3f Position) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
ORIENTATION
public static final int ORIENTATIONThe struct member offsets. -
POSITION
public static final int POSITIONThe struct member offsets.
-
-
Constructor Details
-
OVRPosef
Creates aOVRPosef
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
. -
Orientation
the pose orientation -
Position
the pose position -
Orientation
Copies the specifiedOVRQuatf
to theOrientation()
field. -
Orientation
Passes theOrientation()
field to the specifiedConsumer
. -
Position
Copies the specifiedOVRVector3f
to thePosition()
field. -
Position
Passes thePosition()
field to the specifiedConsumer
. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newOVRPosef
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRPosef
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRPosef
instance allocated withBufferUtils
. -
create
Returns a newOVRPosef
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRPosef.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRPosef.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRPosef.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRPosef.Buffer
instance 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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVRPosef
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRPosef
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRPosef.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRPosef.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nOrientation
Unsafe version ofOrientation()
. -
nPosition
Unsafe version ofPosition()
. -
nOrientation
Unsafe version ofOrientation
. -
nPosition
Unsafe version ofPosition
.
-