aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Include/OVR_CAPI_0_5_0.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibOVR/Include/OVR_CAPI_0_5_0.h')
-rwxr-xr-xLibOVR/Include/OVR_CAPI_0_5_0.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/LibOVR/Include/OVR_CAPI_0_5_0.h b/LibOVR/Include/OVR_CAPI_0_5_0.h
index 01f0dd8..c235cba 100755
--- a/LibOVR/Include/OVR_CAPI_0_5_0.h
+++ b/LibOVR/Include/OVR_CAPI_0_5_0.h
@@ -573,6 +573,7 @@ typedef struct ovrPositionTimewarpDesc_
/// to return portable types such as ovrTexture and ovrRenderAPIConfig.
typedef enum ovrRenderAPIType_
{
+#if !defined(HEADLESS_APP)
ovrRenderAPI_None,
ovrRenderAPI_OpenGL,
ovrRenderAPI_Android_GLES, // May include extra native window pointers, etc.
@@ -581,6 +582,11 @@ typedef enum ovrRenderAPIType_
ovrRenderAPI_D3D11,
ovrRenderAPI_Count,
ovrRenderAPI_EnumSize = 0x7fffffff ///< Force type int32_t.
+#else /* !defined(HEADLESS_APP) */
+ ovrRenderAPI_None,
+ ovrRenderAPI_Count,
+ ovrRenderAPI_EnumSize = 0x7fffffff ///< Force type int32_t.
+#endif /* !defined(HEADLESS_APP) */
} ovrRenderAPIType;
/// Platform-independent part of rendering API-configuration data.
@@ -652,6 +658,7 @@ extern "C" {
#endif
+#if !defined(HEADLESS_APP)
/// ovr_InitializeRenderingShim initializes the rendering shim apart from everything
/// else in LibOVR. This may be helpful if the application prefers to avoid
/// creating any OVR resources (allocations, service connections, etc) at this point.
@@ -667,6 +674,7 @@ extern "C" {
OVR_PUBLIC_FUNCTION(ovrBool) ovr_InitializeRenderingShimVersion(int requestedMinorVersion);
OVR_PUBLIC_FUNCTION(ovrBool) ovr_InitializeRenderingShim();
+#endif /* !defined(HEADLESS_APP) */
/// Library init/shutdown, must be called around all other OVR code.
@@ -765,6 +773,7 @@ OVR_PUBLIC_FUNCTION(ovrHmd) ovrHmd_CreateDebug(ovrHmdType type);
/// Pass null hmd to get global errors (during create etc).
OVR_PUBLIC_FUNCTION(const char*) ovrHmd_GetLastError(ovrHmd hmd);
+#if !defined(HEADLESS_APP)
/// Platform specific function to specify the application window whose output will be
/// displayed on the HMD. Only used if the ovrHmdCap_ExtendDesktop flag is false.
/// Windows: SwapChain associated with this window will be displayed on the HMD.
@@ -775,6 +784,7 @@ OVR_PUBLIC_FUNCTION(const char*) ovrHmd_GetLastError(ovrHmd hmd);
OVR_PUBLIC_FUNCTION(ovrBool) ovrHmd_AttachToWindow(ovrHmd hmd, void* window,
const ovrRecti* destMirrorRect,
const ovrRecti* sourceRenderTargetRect);
+#endif /* !defined(HEADLESS_APP) */
/// Returns capability bits that are enabled at this time as described by ovrHmdCaps.
/// Note that this value is different font ovrHmdDesc::HmdCaps, which describes what
@@ -1056,6 +1066,8 @@ OVR_PUBLIC_FUNCTION(ovrBool) ovrHmd_GetLatencyTest2DrawColor(ovrHmd hmddesc, uns
// ***** Health and Safety Warning Display interface
//
+#if !defined(HEADLESS_APP)
+
/// Used by ovrhmd_GetHSWDisplayState to report the current display state.
typedef struct OVR_ALIGNAS(8) ovrHSWDisplayState_
{
@@ -1098,6 +1110,8 @@ OVR_PUBLIC_FUNCTION(void) ovrHmd_GetHSWDisplayState(ovrHmd hmd, ovrHSWDisplaySta
/// }
OVR_PUBLIC_FUNCTION(ovrBool) ovrHmd_DismissHSWDisplay(ovrHmd hmd);
+#endif /* !defined(HEADLESS_APP) */
+
/// Get boolean property. Returns first element if property is a boolean array.
/// Returns defaultValue if property doesn't exist.
OVR_PUBLIC_FUNCTION(ovrBool) ovrHmd_GetBool(ovrHmd hmd, const char* propertyName, ovrBool defaultVal);