LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
core_c.h
Go to the documentation of this file.
1
5#ifndef CORE_C_H
6#define CORE_C_H
7
9
10typedef void* SRContext;
11
12#ifdef WIN32
13#ifdef __cplusplus
14# ifdef COMPILING_DLL_SimulatedRealityCore
15# define SRAPI extern "C" __declspec(dllexport)
16# else
17# define SRAPI extern "C" __declspec(dllimport)
18# endif
19#else
20# ifdef COMPILING_DLL_SimulatedRealityCore
21# error Trying to compile SimulatedRealityCore.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
54
65
74
75typedef void* SR_systemSense;
77
87
98
107
108#undef SRAPI
109
110#endif // CORE_C_H
void * SRContext
Definition: admin_c.h:10
void * SRContext
Definition: core_c.h:10
#define SRAPI
Definition: core_c.h:27
void * SR_systemSense
Definition: core_c.h:75
void * SR_systemEventListener
Definition: core_c.h:76
SRAPI void deleteSystemEventListener(SR_systemEventListener systemEventListener)
Cleans up underlying object instances used to facilitate system event update callbacks.
SRAPI void deleteSRContext(SRContext context)
Delete and clean up the instance of SRContext.
SRAPI SRContext newSRContext()
Construct an instance of SRContext, the environment in which created senses are kept track of.
SRAPI SR_systemSense createSystemSense(SRContext context)
Creates a functional SystemSense instance.
SRAPI SRContext newSRContextLensPreference(bool lensPreference)
Construct an instance of SRContext, the environment in which created senses are kept track of.
SRAPI void initializeSRContext(SRContext context)
Initialize all senses.
SRAPI SR_systemEventListener createSystemEventListener(SR_systemSense systemSense, void(*acceptSystemEventCallback)(SR_systemEvent))
Add a new callback function to listen to a specific systemSense.
C-compatible struct containing a system-wide event.
Definition: systemevent.h:41