Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
displays_c.h
Go to the documentation of this file.
1
10#ifndef DISPLAYS_C_H
11#define DISPLAYS_C_H
12
13#include "sr/core_c.h"
14
15typedef void* SR_screen;
16
17#ifdef WIN32
18#ifdef __cplusplus
19# ifdef COMPILING_DLL_SimulatedRealityDisplays
20# define SRAPI extern "C" __declspec(dllexport)
21# else
22# define SRAPI extern "C" __declspec(dllimport)
23# endif
24#else
25# ifdef COMPILING_DLL_SimulatedRealityDisplays
26# error Trying to compile SimulatedRealityDisplays.dll using a non-C++ compiler! Use a C++ compiler instead!
27# else
28# define SRAPI __declspec(dllimport)
29# endif
30#endif
31#else
32# define SRAPI
33#endif
34
48
58
68
78
88
98
108
117SRAPI const float getDotPitch(SR_screen screen);
118
120
130
131/*
132* \brief Checks whether the Lens is currently enabled
133*
134* \returns a boolean representing whether the Lens is currently enabled
135* \ingroup API_C
136*/
138
139/*
140* \brief This function returns true if any of already connected applications enabled the lense, otherwise returns false.
141*
142* \returns a boolean representing whether any applications have explicitly indicated that they want the lens to be on.
143* \ingroup API_C
144*/
146
153
160
169
170#undef SRAPI
171
172#endif // DISPLAYS_C_H
void * SRContext
Definition: admin_c.h:15
void * SR_screen
Definition: displays_admin_c.h:15
void * SR_switchableLensHint
Definition: displays_c.h:119
#define SRAPI
Definition: displays_c.h:32
void * SR_screen
Definition: displays_c.h:15
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.