Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
core_c.h
Go to the documentation of this file.
1
10#ifndef CORE_C_H
11#define CORE_C_H
12
14
15typedef void* SRContext;
16
17#ifdef WIN32
18#ifdef __cplusplus
19# ifdef COMPILING_DLL_SimulatedRealityCore
20# define SRAPI extern "C" __declspec(dllexport)
21# else
22# define SRAPI extern "C" __declspec(dllimport)
23# endif
24#else
25# ifdef COMPILING_DLL_SimulatedRealityCore
26# error Trying to compile SimulatedRealityCore.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
59
70
79
80typedef void* SR_systemSense;
82
92
103
112
113#undef SRAPI
114
115#endif // CORE_C_H
void * SRContext
Definition: admin_c.h:15
void * SRContext
Definition: core_c.h:15
#define SRAPI
Definition: core_c.h:32
void * SR_systemSense
Definition: core_c.h:80
void * SR_systemEventListener
Definition: core_c.h:81
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:46