Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrExternalCameraExtrinsicsOCULUS

extends Struct<XrExternalCameraExtrinsicsOCULUS>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Camera extrinsics state.
Valid Usage (Implicit)
See Also

XrExternalCameraOCULUS, XrPosef

Layout


struct XrExternalCameraExtrinsicsOCULUS {
    XrTime lastChangeTime;
    XrExternalCameraStatusFlagsOCULUS cameraStatusFlags;
    XrExternalCameraAttachedToDeviceOCULUS attachedToDevice;
    XrPosef relativePose;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ATTACHEDTODEVICE

The struct member offsets.

public static final int
CAMERASTATUSFLAGS

The struct member offsets.

public static final int
LASTCHANGETIME

The struct member offsets.

public static final int
RELATIVEPOSE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
XrExternalCameraExtrinsicsOCULUS(ByteBuffer container)

Creates a XrExternalCameraExtrinsicsOCULUS instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
attachedToDevice()

the XrExternalCameraAttachedToDeviceOCULUS for the device this camera is attached to

public XrExternalCameraExtrinsicsOCULUS
attachedToDevice(int value)

Sets the specified value to the attachedToDevice field.

public static XrExternalCameraExtrinsicsOCULUS
calloc()

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated with memCalloc.

public static XrExternalCameraExtrinsicsOCULUS.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated with memCalloc.

public static XrExternalCameraExtrinsicsOCULUS
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XrExternalCameraExtrinsicsOCULUS.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public long
cameraStatusFlags()

the XrExternalCameraStatusFlagsOCULUS for this camera’s status.

public XrExternalCameraExtrinsicsOCULUS
cameraStatusFlags(long value)

Sets the specified value to the cameraStatusFlags field.

protected XrExternalCameraExtrinsicsOCULUS
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XrExternalCameraExtrinsicsOCULUS
create()

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated with BufferUtils.

public static XrExternalCameraExtrinsicsOCULUS
create(long address)

Returns a new XrExternalCameraExtrinsicsOCULUS instance for the specified memory address.

public static XrExternalCameraExtrinsicsOCULUS.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated with BufferUtils.

public static XrExternalCameraExtrinsicsOCULUS.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XrExternalCameraExtrinsicsOCULUS.Buffer instance at the specified memory.

public static XrExternalCameraExtrinsicsOCULUS
createSafe(long address)

Like create, but returns null if address is NULL.

public static XrExternalCameraExtrinsicsOCULUS.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
lastChangeTime()

the XrTime when this camera’s extrinsics last changed.

public XrExternalCameraExtrinsicsOCULUS
lastChangeTime(long value)

Sets the specified value to the lastChangeTime field.

public static XrExternalCameraExtrinsicsOCULUS
malloc()

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated with memAlloc.

public static XrExternalCameraExtrinsicsOCULUS.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated with memAlloc.

public static XrExternalCameraExtrinsicsOCULUS
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated on the specified MemoryStack.

public static XrExternalCameraExtrinsicsOCULUS.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated on the specified MemoryStack.

public static int
nattachedToDevice(long struct)

Unsafe version of attachedToDevice.

public static void
nattachedToDevice(long struct, int value)

Unsafe version of attachedToDevice.

public static long
ncameraStatusFlags(long struct)

Unsafe version of cameraStatusFlags.

public static void
ncameraStatusFlags(long struct, long value)

Unsafe version of cameraStatusFlags.

public static long
nlastChangeTime(long struct)

Unsafe version of lastChangeTime.

public static void
nlastChangeTime(long struct, long value)

Unsafe version of lastChangeTime.

public static XrPosef
nrelativePose(long struct)

Unsafe version of relativePose.

public static void
nrelativePose(long struct, XrPosef value)

Unsafe version of relativePose.

public XrPosef
relativePose()

the XrPosef for offset of the camera from the device that the camera is attached to

public XrExternalCameraExtrinsicsOCULUS
relativePose(XrPosef value)

Copies the specified XrPosef to the relativePose field.

public XrExternalCameraExtrinsicsOCULUS
relativePose(Consumer<XrPosef> consumer)

Passes the relativePose field to the specified Consumer.

public XrExternalCameraExtrinsicsOCULUS
set(long lastChangeTime, long cameraStatusFlags, int attachedToDevice, XrPosef relativePose)

Initializes this struct with the specified values.

public XrExternalCameraExtrinsicsOCULUS

Returns:

this struct
set
(XrExternalCameraExtrinsicsOCULUS
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

ATTACHEDTODEVICEback to summary
public static final int ATTACHEDTODEVICE

The struct member offsets.

CAMERASTATUSFLAGSback to summary
public static final int CAMERASTATUSFLAGS

The struct member offsets.

LASTCHANGETIMEback to summary
public static final int LASTCHANGETIME

The struct member offsets.

RELATIVEPOSEback to summary
public static final int RELATIVEPOSE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

XrExternalCameraExtrinsicsOCULUSback to summary
protected XrExternalCameraExtrinsicsOCULUS(long address, ByteBuffer container)
XrExternalCameraExtrinsicsOCULUSback to summary
public XrExternalCameraExtrinsicsOCULUS(ByteBuffer container)

Creates a XrExternalCameraExtrinsicsOCULUS instance at the current position of the specified ByteBuffer 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

attachedToDeviceback to summary
public int attachedToDevice()

the XrExternalCameraAttachedToDeviceOCULUS for the device this camera is attached to

Annotations
@NativeType:XrExternalCameraAttachedToDeviceOCULUS
attachedToDeviceback to summary
public XrExternalCameraExtrinsicsOCULUS attachedToDevice(int value)

Sets the specified value to the attachedToDevice field.

callocback to summary
public static XrExternalCameraExtrinsicsOCULUS calloc()

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static XrExternalCameraExtrinsicsOCULUS.Buffer calloc(int capacity)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static XrExternalCameraExtrinsicsOCULUS calloc(MemoryStack stack)

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static XrExternalCameraExtrinsicsOCULUS.Buffer calloc(int capacity, MemoryStack stack)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

cameraStatusFlagsback to summary
public long cameraStatusFlags()

the XrExternalCameraStatusFlagsOCULUS for this camera’s status.

Annotations
@NativeType:XrExternalCameraStatusFlagsOCULUS
cameraStatusFlagsback to summary
public XrExternalCameraExtrinsicsOCULUS cameraStatusFlags(long value)

Sets the specified value to the cameraStatusFlags field.

createback to summary
protected XrExternalCameraExtrinsicsOCULUS create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static XrExternalCameraExtrinsicsOCULUS create()

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated with BufferUtils.

createback to summary
public static XrExternalCameraExtrinsicsOCULUS create(long address)

Returns a new XrExternalCameraExtrinsicsOCULUS instance for the specified memory address.

createback to summary
public static XrExternalCameraExtrinsicsOCULUS.Buffer create(int capacity)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static XrExternalCameraExtrinsicsOCULUS.Buffer create(long address, int capacity)

Create a XrExternalCameraExtrinsicsOCULUS.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static XrExternalCameraExtrinsicsOCULUS createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static XrExternalCameraExtrinsicsOCULUS.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
lastChangeTimeback to summary
public long lastChangeTime()

the XrTime when this camera’s extrinsics last changed.

Annotations
@NativeType:XrTime
lastChangeTimeback to summary
public XrExternalCameraExtrinsicsOCULUS lastChangeTime(long value)

Sets the specified value to the lastChangeTime field.

mallocback to summary
public static XrExternalCameraExtrinsicsOCULUS malloc()

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static XrExternalCameraExtrinsicsOCULUS.Buffer malloc(int capacity)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static XrExternalCameraExtrinsicsOCULUS malloc(MemoryStack stack)

Returns a new XrExternalCameraExtrinsicsOCULUS instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static XrExternalCameraExtrinsicsOCULUS.Buffer malloc(int capacity, MemoryStack stack)

Returns a new XrExternalCameraExtrinsicsOCULUS.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nattachedToDeviceback to summary
public static int nattachedToDevice(long struct)

Unsafe version of attachedToDevice.

nattachedToDeviceback to summary
public static void nattachedToDevice(long struct, int value)

Unsafe version of attachedToDevice.

ncameraStatusFlagsback to summary
public static long ncameraStatusFlags(long struct)

Unsafe version of cameraStatusFlags.

ncameraStatusFlagsback to summary
public static void ncameraStatusFlags(long struct, long value)

Unsafe version of cameraStatusFlags.

nlastChangeTimeback to summary
public static long nlastChangeTime(long struct)

Unsafe version of lastChangeTime.

nlastChangeTimeback to summary
public static void nlastChangeTime(long struct, long value)

Unsafe version of lastChangeTime.

nrelativePoseback to summary
public static XrPosef nrelativePose(long struct)

Unsafe version of relativePose.

nrelativePoseback to summary
public static void nrelativePose(long struct, XrPosef value)

Unsafe version of relativePose.

relativePoseback to summary
public XrPosef relativePose()

the XrPosef for offset of the camera from the device that the camera is attached to

relativePoseback to summary
public XrExternalCameraExtrinsicsOCULUS relativePose(XrPosef value)

Copies the specified XrPosef to the relativePose field.

relativePoseback to summary
public XrExternalCameraExtrinsicsOCULUS relativePose(Consumer<XrPosef> consumer)

Passes the relativePose field to the specified Consumer.

setback to summary
public XrExternalCameraExtrinsicsOCULUS set(long lastChangeTime, long cameraStatusFlags, int attachedToDevice, XrPosef relativePose)

Initializes this struct with the specified values.

setback to summary
public XrExternalCameraExtrinsicsOCULUS set(XrExternalCameraExtrinsicsOCULUS src)

Copies the specified struct data to this struct.

Parameters
src:XrExternalCameraExtrinsicsOCULUS

the source struct

Returns:XrExternalCameraExtrinsicsOCULUS

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.openxr back to summary

public Class XrExternalCameraExtrinsicsOCULUS.Buffer

extends StructBuffer<XrExternalCameraExtrinsicsOCULUS, XrExternalCameraExtrinsicsOCULUS.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of XrExternalCameraExtrinsicsOCULUS structs.

Field Summary

Modifier and TypeField and Description
private static final XrExternalCameraExtrinsicsOCULUS

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new XrExternalCameraExtrinsicsOCULUS.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int
public XrExternalCameraExtrinsicsOCULUS.Buffer
attachedToDevice(int value)

Sets the specified value to the XrExternalCameraExtrinsicsOCULUS#attachedToDevice field.

public long
public XrExternalCameraExtrinsicsOCULUS.Buffer
cameraStatusFlags(long value)

Sets the specified value to the XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags field.

protected XrExternalCameraExtrinsicsOCULUS
public long
public XrExternalCameraExtrinsicsOCULUS.Buffer
lastChangeTime(long value)

Sets the specified value to the XrExternalCameraExtrinsicsOCULUS#lastChangeTime field.

public XrPosef
public XrExternalCameraExtrinsicsOCULUS.Buffer
public XrExternalCameraExtrinsicsOCULUS.Buffer
protected XrExternalCameraExtrinsicsOCULUS.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final XrExternalCameraExtrinsicsOCULUS ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new XrExternalCameraExtrinsicsOCULUS.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrExternalCameraExtrinsicsOCULUS#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

attachedToDeviceback to summary
public int attachedToDevice()
Returns:int

the value of the XrExternalCameraExtrinsicsOCULUS#attachedToDevice field.

Annotations
@NativeType:XrExternalCameraAttachedToDeviceOCULUS
attachedToDeviceback to summary
public XrExternalCameraExtrinsicsOCULUS.Buffer attachedToDevice(int value)

Sets the specified value to the XrExternalCameraExtrinsicsOCULUS#attachedToDevice field.

cameraStatusFlagsback to summary
public long cameraStatusFlags()
Returns:long

the value of the XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags field.

Annotations
@NativeType:XrExternalCameraStatusFlagsOCULUS
cameraStatusFlagsback to summary
public XrExternalCameraExtrinsicsOCULUS.Buffer cameraStatusFlags(long value)

Sets the specified value to the XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags field.

getElementFactoryback to summary
protected XrExternalCameraExtrinsicsOCULUS getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
lastChangeTimeback to summary
public long lastChangeTime()
Returns:long

the value of the XrExternalCameraExtrinsicsOCULUS#lastChangeTime field.

Annotations
@NativeType:XrTime
lastChangeTimeback to summary
public XrExternalCameraExtrinsicsOCULUS.Buffer lastChangeTime(long value)

Sets the specified value to the XrExternalCameraExtrinsicsOCULUS#lastChangeTime field.

relativePoseback to summary
public XrPosef relativePose()
Returns:XrPosef

a XrPosef view of the XrExternalCameraExtrinsicsOCULUS#relativePose field.

relativePoseback to summary
public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(XrPosef value)

Copies the specified XrPosef to the XrExternalCameraExtrinsicsOCULUS#relativePose field.

relativePoseback to summary
public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(Consumer<XrPosef> consumer)

Passes the XrExternalCameraExtrinsicsOCULUS#relativePose field to the specified Consumer.

selfback to summary
protected XrExternalCameraExtrinsicsOCULUS.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override