Package org.lwjgl.ovr
Class OVRErrorCode
- java.lang.Object
-
- org.lwjgl.ovr.OVRErrorCode
-
public class OVRErrorCode extends java.lang.ObjectLibOVR error code declarations.
-
-
Field Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanOVR_FAILURE(int result)Indicates if anovrResultindicates failure.static booleanOVR_SUCCESS(int result)Indicates if anovrResultindicates success.static booleanOVR_UNQUALIFIED_SUCCESS(int result)Indicates if anovrResultindicates an unqualified success.
-
-
-
Field Detail
-
ovrSuccess, ovrSuccess_NotVisible, ovrSuccess_BoundaryInvalid, ovrSuccess_DeviceUnavailable
Success codes (ovrSuccessType). Success is a value greater or equal to 0, while all error types are negative values.Enum values:
Success- This is a general success result.Success_NotVisible- Returned from a call toSubmitFrame. The call succeeded, but what the app rendered will not be visible on the HMD. Ideally the app should continue callingSubmitFrame, but not do any rendering. When the result becomesSuccess, rendering should continue as usual.Success_BoundaryInvalid- Boundary is invalid due to sensor change or was not setup.Success_DeviceUnavailable- Device is not available for the requested operation.
-
ovrError_MemoryAllocationFailure, ovrError_InvalidSession, ovrError_Timeout, ovrError_NotInitialized, ovrError_InvalidParameter, ovrError_ServiceError, ovrError_NoHmd, ovrError_Unsupported, ovrError_DeviceUnavailable, ovrError_InvalidHeadsetOrientation, ovrError_ClientSkippedDestroy, ovrError_ClientSkippedShutdown, ovrError_ServiceDeadlockDetected, ovrError_InvalidOperation, ovrError_InsufficientArraySize, ovrError_NoExternalCameraInfo, ovrError_LostTracking, ovrError_ExternalCameraInitializedFailed, ovrError_ExternalCameraCaptureFailed, ovrError_ExternalCameraNameListsBufferSize, ovrError_ExternalCameraNameListsMistmatch, ovrError_ExternalCameraNotCalibrated, ovrError_ExternalCameraNameWrongSize, ovrError_AccessDenied, ovrError_AudioDeviceNotFound, ovrError_AudioComError, ovrError_Initialize, ovrError_LibLoad, ovrError_LibVersion, ovrError_ServiceConnection, ovrError_ServiceVersion, ovrError_IncompatibleOS, ovrError_DisplayInit, ovrError_ServerStart, ovrError_Reinitialization, ovrError_MismatchedAdapters, ovrError_LeakingResources, ovrError_ClientVersion, ovrError_OutOfDateOS, ovrError_OutOfDateGfxDriver, ovrError_IncompatibleGPU, ovrError_NoValidVRDisplaySystem, ovrError_Obsolete, ovrError_DisabledOrDefaultAdapter, ovrError_HybridGraphicsNotSupported, ovrError_DisplayManagerInit, ovrError_TrackerDriverInit, ovrError_LibSignCheck, ovrError_LibPath, ovrError_LibSymbols, ovrError_RemoteSession, ovrError_InitializeVulkan, ovrError_BlacklistedGfxDriver, ovrError_Incomplete, ovrError_Abandoned, ovrError_DisplayLost, ovrError_TextureSwapChainFull, ovrError_TextureSwapChainInvalid, ovrError_GraphicsDeviceReset, ovrError_DisplayRemoved, ovrError_ContentProtectionNotAvailable, ovrError_ApplicationInvisible, ovrError_Disallowed, ovrError_DisplayPluggedIncorrectly, ovrError_DisplayLimitReached, ovrError_RuntimeException, ovrError_NoCalibration, ovrError_OldVersion, ovrError_MisformattedBlock
Error codes (ovrErrorType)Enum values:
Error_MemoryAllocationFailure- Failure to allocate memory.Error_InvalidSession- Invalid ovrSession parameter provided.Error_Timeout- The operation timed out.Error_NotInitialized- The system or component has not been initialized.Error_InvalidParameter- Invalid parameter provided. See error info or log for details.Error_ServiceError- Generic service error. See error info or log for details.Error_NoHmd- The given HMD doesn't exist.Error_Unsupported- Function call is not supported on this hardware/softwareError_DeviceUnavailable- Specified device type isn't available.Error_InvalidHeadsetOrientation- The headset was in an invalid orientation for the requested operation (e.g. vertically oriented duringOVR.ovr_RecenterTrackingOrigin(long)).Error_ClientSkippedDestroy- The client failed to callOVR.ovr_Destroy(long)on an active session before callingOVR.ovr_Shutdown(). Or the client crashed.Error_ClientSkippedShutdown- The client failed to callOVR.ovr_Shutdown()or the client crashed.Error_ServiceDeadlockDetected- The service watchdog discovered a deadlock.Error_InvalidOperation- Function call is invalid for object's current state.Error_InsufficientArraySize- Increase size of output arrayError_NoExternalCameraInfo- There is not any external camera information stored by ovrServer.Error_LostTracking- Tracking is lost whenGetDevicePosesis called.Error_ExternalCameraInitializedFailed- There was a problem initializing the external camera for captureError_ExternalCameraCaptureFailed- There was a problem capturing external camera framesError_ExternalCameraNameListsBufferSize- The external camera friendly name list and the external camera name list are not the fixed size(OVR.OVR_MAX_EXTERNAL_CAMERA_COUNT).Error_ExternalCameraNameListsMistmatch- The external camera friendly name list is not the same size as the external camera name list.Error_ExternalCameraNotCalibrated- The external camera property has not been sent to OVRServer when the user tries to open the camera.Error_ExternalCameraNameWrongSize- The external camera name is larger thanOVR.OVR_EXTERNAL_CAMERA_NAME_SIZE-1Error_AccessDenied- The caller doesn't have permissions for the requested action.Error_AudioDeviceNotFound- Failure to find the specified audio device.Error_AudioComError- Generic COM error.Error_Initialize- Generic initialization error.Error_LibLoad- Couldn't load LibOVRRT.Error_LibVersion- LibOVRRT version incompatibility.Error_ServiceConnection- Couldn't connect to the OVR Service.Error_ServiceVersion- OVR Service version incompatibility.Error_IncompatibleOS- The operating system version is incompatible.Error_DisplayInit- Unable to initialize the HMD display.Error_ServerStart- Unable to start the server. Is it already running?Error_Reinitialization- Attempting to re-initialize with a different version.Error_MismatchedAdapters- Chosen rendering adapters between client and service do not matchError_LeakingResources- Calling application has leaked resourcesError_ClientVersion- Client version too old to connect to serviceError_OutOfDateOS- The operating system is out of date.Error_OutOfDateGfxDriver- The graphics driver is out of date.Error_IncompatibleGPU- The graphics hardware is not supportedError_NoValidVRDisplaySystem- No valid VR display system found.Error_Obsolete- Feature or API is obsolete and no longer supported.Error_DisabledOrDefaultAdapter- No supported VR display system found, but disabled or driverless adapter found.Error_HybridGraphicsNotSupported- The system is using hybrid graphics (Optimus, etc...), which is not support.Error_DisplayManagerInit- Initialization of the DisplayManager failed.Error_TrackerDriverInit- Failed to get the interface for an attached trackerError_LibSignCheck- LibOVRRT signature check failure.Error_LibPath- LibOVRRT path failure.Error_LibSymbols- LibOVRRT symbol resolution failure.Error_RemoteSession- Failed to connect to the service because remote connections to the service are not allowed.Error_InitializeVulkan- Vulkan initialization error.Error_BlacklistedGfxDriver- The graphics driver is black-listed.Error_Incomplete- Requested async work not yet complete.Error_Abandoned- Requested async work was abandoned and result is incomplete.Error_DisplayLost- In the event of a system-wide graphics reset or cable unplug this is returned to the app.Error_TextureSwapChainFull-CommitTextureSwapChainwas called too many times on a texture swapchain without calling submit to use the chain.Error_TextureSwapChainInvalid- TheovrTextureSwapChainis in an incomplete or inconsistent state. EnsureCommitTextureSwapChainwas called at least once first.Error_GraphicsDeviceReset- Graphics device has been reset (TDR, etc...)Error_DisplayRemoved- HMD removed from the display adapterError_ContentProtectionNotAvailable- Content protection is not available for the displayError_ApplicationInvisible- Application declared itself as an invisible type and is not allowed to submit frames.Error_Disallowed- The given request is disallowed under the current conditions.Error_DisplayPluggedIncorrectly- Display portion of HMD is plugged into an incompatible port (ex: IGP)Error_DisplayLimitReached- Returned in the event a virtual display system reaches a display limitError_RuntimeException- A runtime exception occurred. The application is required to shutdown LibOVR and re-initialize it before this error state will be cleared.Error_NoCalibration- Result of a missing calibration block.Error_OldVersion- Result of an old calibration block.Error_MisformattedBlock- Result of a bad calibration block due to lengths.
-
-
Method Detail
-
OVR_SUCCESS
public static boolean OVR_SUCCESS(int result)
Indicates if anovrResultindicates success.Some functions return additional successful values other than
Successand require usage of this macro to indicate success.- Parameters:
result- theovrResultto check
-
OVR_UNQUALIFIED_SUCCESS
public static boolean OVR_UNQUALIFIED_SUCCESS(int result)
Indicates if anovrResultindicates an unqualified success.This is useful for indicating that the code intentionally wants to check for
result == ovrSuccessas opposed toSUCCESS, which checks forresult >= ovrSuccess.- Parameters:
result- theovrResultto check
-
OVR_FAILURE
public static boolean OVR_FAILURE(int result)
Indicates if anovrResultindicates failure.- Parameters:
result- theovrResultto check
-
-