mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:16:51 +02:00
Expose face tracking to the script engine.
This commit is contained in:
parent
c77a91eb63
commit
0524155349
2 changed files with 4 additions and 1 deletions
|
@ -3763,6 +3763,8 @@ void Application::registerScriptEngineWithApplicationServices(ScriptEngine* scri
|
||||||
scriptEngine->registerGlobalObject("GlobalServices", GlobalServicesScriptingInterface::getInstance());
|
scriptEngine->registerGlobalObject("GlobalServices", GlobalServicesScriptingInterface::getInstance());
|
||||||
qScriptRegisterMetaType(scriptEngine, DownloadInfoResultToScriptValue, DownloadInfoResultFromScriptValue);
|
qScriptRegisterMetaType(scriptEngine, DownloadInfoResultToScriptValue, DownloadInfoResultFromScriptValue);
|
||||||
|
|
||||||
|
scriptEngine->registerGlobalObject("FaceTracker", DependencyManager::get<DdeFaceTracker>().data());
|
||||||
|
|
||||||
scriptEngine->registerGlobalObject("AvatarManager", DependencyManager::get<AvatarManager>().data());
|
scriptEngine->registerGlobalObject("AvatarManager", DependencyManager::get<AvatarManager>().data());
|
||||||
|
|
||||||
qScriptRegisterMetaType(scriptEngine, joystickToScriptValue, joystickFromScriptValue);
|
qScriptRegisterMetaType(scriptEngine, joystickToScriptValue, joystickFromScriptValue);
|
||||||
|
|
|
@ -47,7 +47,6 @@ public:
|
||||||
|
|
||||||
bool isMuted() const { return _isMuted; }
|
bool isMuted() const { return _isMuted; }
|
||||||
void setIsMuted(bool isMuted) { _isMuted = isMuted; }
|
void setIsMuted(bool isMuted) { _isMuted = isMuted; }
|
||||||
void toggleMute();
|
|
||||||
|
|
||||||
static float getEyeDeflection() { return _eyeDeflection.get(); }
|
static float getEyeDeflection() { return _eyeDeflection.get(); }
|
||||||
static void setEyeDeflection(float eyeDeflection);
|
static void setEyeDeflection(float eyeDeflection);
|
||||||
|
@ -57,6 +56,8 @@ signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void setEnabled(bool enabled) = 0;
|
virtual void setEnabled(bool enabled) = 0;
|
||||||
|
void toggleMute();
|
||||||
|
bool getMuted() { return _isMuted; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~FaceTracker() {};
|
virtual ~FaceTracker() {};
|
||||||
|
|
Loading…
Reference in a new issue