Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
facetrackers_c.h
Go to the documentation of this file.
1
10#ifndef FACETRACKERS_C_H
11#define FACETRACKERS_C_H
12
13#include "sr/core_c.h"
14
17
18typedef void* SR_eyeTracker;
19typedef void* SR_eyePairListener;
20
21typedef void* SR_headTracker;
22typedef void* SR_headListener;
23
24#ifdef WIN32
25#ifdef __cplusplus
26# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
27# define SRAPI extern "C" __declspec(dllexport)
28# else
29# define SRAPI extern "C" __declspec(dllimport)
30# endif
31#else
32# ifdef COMPILING_DLL_SimulatedRealityFaceTrackers
33# error Trying to compile SimulatedRealityFaceTrackers.dll using a non-C++ compiler! Use a C++ compiler instead!
34# else
35# define SRAPI __declspec(dllimport)
36# endif
37#endif
38#else
39# define SRAPI
40#endif
41
54
64SRAPI SR_eyePairListener createEyePairListener(SR_eyeTracker eyeTracker, void (*acceptEyePairCallback)(SR_eyePair));
65
74
87
97SRAPI SR_headListener createHeadListener(SR_headTracker headTracker, void (*acceptHeadCallback)(SR_head));
98
107
108#undef SRAPI
109
110#endif // FACETRACKERS_C_H
void * SRContext
Definition: admin_c.h:15
void * SR_headTracker
Definition: facetrackers_c.h:21
#define SRAPI
Definition: facetrackers_c.h:39
void * SR_eyePairListener
Definition: facetrackers_c.h:19
void * SR_eyeTracker
Definition: facetrackers_c.h:18
void * SR_headListener
Definition: facetrackers_c.h:22
SRAPI SR_eyeTracker createEyeTracker(SRContext context)
Creates a functional EyeTracker instance.
SRAPI SR_headListener createHeadListener(SR_headTracker headTracker, void(*acceptHeadCallback)(SR_head))
Create a new callback function to listen to a specific headtracker.
SRAPI SR_headTracker createHeadTracker(SRContext context)
Creates a functional Headtracker instance.
SRAPI SR_eyePairListener createEyePairListener(SR_eyeTracker eyeTracker, void(*acceptEyePairCallback)(SR_eyePair))
Create a new callback function to listen to a specific eyetracker.
SRAPI void deleteEyePairListener(SR_eyePairListener eyePairListener)
Cleans up underlying object instances used to facilitate eye position update callbacks.
SRAPI void deleteHeadListener(SR_headListener headListener)
Cleans up underlying object instances used to facilitate head position update callbacks.
C-compatible struct containing the position of two eyes.
Definition: eyepair.h:28
C-compatible struct containing the position of head.
Definition: head.h:43