LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
displays_c.h
Go to the documentation of this file.
1
5#ifndef DISPLAYS_C_H
6#define DISPLAYS_C_H
7
8#include "sr/core_c.h"
9
10typedef void* SR_screen;
11
12#ifdef WIN32
13#ifdef __cplusplus
14# ifdef COMPILING_DLL_SimulatedRealityDisplays
15# define SRAPI extern "C" __declspec(dllexport)
16# else
17# define SRAPI extern "C" __declspec(dllimport)
18# endif
19#else
20# ifdef COMPILING_DLL_SimulatedRealityDisplays
21# error Trying to compile SimulatedRealityDisplays.dll using a non-C++ compiler! Use a C++ compiler instead!
22# else
23# define SRAPI __declspec(dllimport)
24# endif
25#endif
26#else
27# define SRAPI
28#endif
29
43
53
63
73
83
93
103
112SRAPI const float getDotPitch(SR_screen screen);
113
115
129
130/*
131* \brief Checks whether the Lens is currently enabled
132*
133* \returns a boolean representing whether the Lens is currently enabled
134* \ingroup API_C
135*/
137
138/*
139* \brief This function returns true if any of already connected applications enabled the lense, otherwise returns false.
140*
141* \returns a boolean representing whether any applications have explicitly indicated that they want the lens to be on.
142* \ingroup API_C
143*/
145
152
159
168
169#undef SRAPI
170
171#endif // DISPLAYS_C_H
void * SRContext
Definition: admin_c.h:10
void * SR_screen
Definition: displays_admin_c.h:10
void * SR_switchableLensHint
Definition: displays_c.h:114
#define SRAPI
Definition: displays_c.h:27
void * SR_screen
Definition: displays_c.h:10
SRAPI bool isLensEnabledByPreference(SR_switchableLensHint lensHint)
SRAPI bool isLensEnabled(SR_switchableLensHint lensHint)
SRAPI const float getPhysicalSizeWidth(SR_screen screen)
Returns physical screen width in cm.
SRAPI const int getPhysicalResolutionWidth(SR_screen screen)
Returns physical resolution width of screen instance.
SRAPI void deleteSwitchableLensHint(SR_switchableLensHint lensHint)
Cleans up underlying object instances used to facilitate indicating lens switch preferance.
SRAPI const float getPhysicalSizeHeight(SR_screen screen)
Returns physical screen height in cm.
SRAPI void lensEnableHint(SR_switchableLensHint lensHint)
SRAPI SR_screen createScreen(SRContext context)
Creates a functional Screen instance.
SRAPI void lensDisableHint(SR_switchableLensHint lensHint)
SRAPI const int getResolutionHeight(SR_screen screen)
Returns resolution height of screen instance as seen by user.
SRAPI const int getPhysicalResolutionHeight(SR_screen screen)
Returns physical resolution height of screen instance.
SRAPI const float getDotPitch(SR_screen screen)
Returns distance between pixels in cm.
SRAPI SR_switchableLensHint createSwitchableLensHint(SRContext context)
Creates a functional SwitchableLensHints instance.
SRAPI const int getResolutionWidth(SR_screen screen)
Returns resolution width of screen instance as seen by user.