Top Description Fields Constructors Methods
org.lwjgl.openxr

public Class OCULUSExternalCamera

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

The XR_OCULUS_external_camera extension.

This extension enables the querying of external camera information for a session. This extension is intended to enable mixed reality capture support for applications.

This extension does not provide a mechanism for supplying external camera information to the runtime. If external camera information is not supplied to the runtime before using this extension, no camera information will be returned.

This API supports returning camera intrinsics and extrinsics:

Field Summary

Modifier and TypeField and Description
public static final int
XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUS

XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS Description

EnumDescription EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSExternal camera is at a fixed point in LOCAL space EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSExternal camera is attached to the HMD EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSExternal camera is attached to a left Touch controller EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSExternal camera is attached to a right Touch controller
public static final int
XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUS

XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS Description

EnumDescription EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSExternal camera is at a fixed point in LOCAL space EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSExternal camera is attached to the HMD EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSExternal camera is attached to a left Touch controller EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSExternal camera is attached to a right Touch controller
public static final int
XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUS

XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS Description

EnumDescription EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSExternal camera is at a fixed point in LOCAL space EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSExternal camera is attached to the HMD EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSExternal camera is attached to a left Touch controller EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSExternal camera is attached to a right Touch controller
public static final int
XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUS

XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS Description

EnumDescription EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSExternal camera is at a fixed point in LOCAL space EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSExternal camera is attached to the HMD EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSExternal camera is attached to a left Touch controller EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSExternal camera is attached to a right Touch controller
public static final int
XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS Flag Descriptions

public static final int
XR_EXTERNAL_CAMERA_STATUS_CALIBRATING_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS Flag Descriptions

public static final int
XR_EXTERNAL_CAMERA_STATUS_CALIBRATION_FAILED_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS Flag Descriptions

public static final int
XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS Flag Descriptions

public static final int
XR_EXTERNAL_CAMERA_STATUS_CONNECTED_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS Flag Descriptions

public static final int
XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS

XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS

public static final String
public static final int
XR_OCULUS_external_camera_SPEC_VERSION

The extension specification version.

public static final int
XR_TYPE_EXTERNAL_CAMERA_OCULUS

Extends XrStructureType.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nxrEnumerateExternalCamerasOCULUS(XrSession session, int
the capacity of the cameras array, or 0 to indicate a request to retrieve the required capacity.
cameraCapacityInput
,
long cameraCountOutput, long cameras)

Unsafe version of: EnumerateExternalCamerasOCULUS

public static int
xrEnumerateExternalCamerasOCULUS(XrSession
the XrSession to query the external cameras in
session
,
IntBuffer
filled in by the runtime with the count of cameras written or the required capacity in the case that cameraCapacityInput is insufficient.
cameraCountOutput
,
XrExternalCameraOCULUS.Buffer
an array of XrExternalCameraOCULUS filled in by the runtime which contains all the available external cameras, but can be NULL if cameraCapacityInput is 0.
cameras
)

Enumerates all the external cameras that are supported by the runtime.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUS

XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS

Description
EnumDescription
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSExternal camera is at a fixed point in LOCAL space
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSExternal camera is attached to the HMD
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSExternal camera is attached to a left Touch controller
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSExternal camera is attached to a right Touch controller
See Also

XrExternalCameraExtrinsicsOCULUS

XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUS

XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS

Description
EnumDescription
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSExternal camera is at a fixed point in LOCAL space
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSExternal camera is attached to the HMD
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSExternal camera is attached to a left Touch controller
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSExternal camera is attached to a right Touch controller
See Also

XrExternalCameraExtrinsicsOCULUS

XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUS

XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS

Description
EnumDescription
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSExternal camera is at a fixed point in LOCAL space
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSExternal camera is attached to the HMD
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSExternal camera is attached to a left Touch controller
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSExternal camera is attached to a right Touch controller
See Also

XrExternalCameraExtrinsicsOCULUS

XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUS

XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS

Description
EnumDescription
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUSExternal camera is at a fixed point in LOCAL space
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUSExternal camera is attached to the HMD
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUSExternal camera is attached to a left Touch controller
EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUSExternal camera is attached to a right Touch controller
See Also

XrExternalCameraExtrinsicsOCULUS

XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS

Flag Descriptions
XR_EXTERNAL_CAMERA_STATUS_CALIBRATING_BIT_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_STATUS_CALIBRATING_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS

Flag Descriptions
XR_EXTERNAL_CAMERA_STATUS_CALIBRATION_FAILED_BIT_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_STATUS_CALIBRATION_FAILED_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS

Flag Descriptions
XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS

Flag Descriptions
XR_EXTERNAL_CAMERA_STATUS_CONNECTED_BIT_OCULUSback to summary
public static final int XR_EXTERNAL_CAMERA_STATUS_CONNECTED_BIT_OCULUS

XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS

Flag Descriptions
XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUSback to summary
public static final int XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS

XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS

XR_OCULUS_EXTERNAL_CAMERA_EXTENSION_NAMEback to summary
public static final String XR_OCULUS_EXTERNAL_CAMERA_EXTENSION_NAME

The extension name.

XR_OCULUS_external_camera_SPEC_VERSIONback to summary
public static final int XR_OCULUS_external_camera_SPEC_VERSION

The extension specification version.

XR_TYPE_EXTERNAL_CAMERA_OCULUSback to summary
public static final int XR_TYPE_EXTERNAL_CAMERA_OCULUS

Extends XrStructureType.

Constructor Detail

OCULUSExternalCameraback to summary
protected OCULUSExternalCamera()

Method Detail

nxrEnumerateExternalCamerasOCULUSback to summary
public static int nxrEnumerateExternalCamerasOCULUS(XrSession session, int cameraCapacityInput, long cameraCountOutput, long cameras)

Unsafe version of: EnumerateExternalCamerasOCULUS

Parameters
cameraCapacityInput:int

the capacity of the cameras array, or 0 to indicate a request to retrieve the required capacity.

xrEnumerateExternalCamerasOCULUSback to summary
public static int xrEnumerateExternalCamerasOCULUS(XrSession session, IntBuffer cameraCountOutput, XrExternalCameraOCULUS.Buffer cameras)

Enumerates all the external cameras that are supported by the runtime.

C Specification

The EnumerateExternalCamerasOCULUS function enumerates all the external cameras that are supported by the runtime, it is defined as:


XrResult xrEnumerateExternalCamerasOCULUS(
    XrSession                                   session,
    uint32_t                                    cameraCapacityInput,
    uint32_t*                                   cameraCountOutput,
    XrExternalCameraOCULUS*                     cameras);
Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

XrExternalCameraOCULUS

Parameters
session:XrSession

the XrSession to query the external cameras in

cameraCountOutput:IntBuffer

filled in by the runtime with the count of cameras written or the required capacity in the case that cameraCapacityInput is insufficient.

cameras:XrExternalCameraOCULUS.Buffer

an array of XrExternalCameraOCULUS filled in by the runtime which contains all the available external cameras, but can be NULL if cameraCapacityInput is 0.

Annotations
@NativeType:XrResult