Tobii Pro SDK C API
set_hmd_lens_configuration.c
#include <stdio.h>
void set_hmd_lens_configuration_example(TobiiResearchEyeTracker* eyetracker) {
TobiiResearchHMDLensConfiguration old_lens_configuration;
tobii_research_get_hmd_lens_configuration(eyetracker, &old_lens_configuration);
lens_configuration.left.x = 32.0f;
lens_configuration.left.y = 0.0f;
lens_configuration.left.z = 0.0f;
lens_configuration.right.x = -32.0f;
lens_configuration.right.y = 0.0f;
lens_configuration.right.z = 0.0f;
TobiiResearchStatus status = tobii_research_get_hmd_lens_configuration(eyetracker, &lens_configuration);
char* serial_number = NULL;
tobii_research_get_serial_number(eyetracker, &serial_number);
printf("Set lens configuration from tracker with serial number %s with status %i:\n", serial_number, status);
status = tobii_research_set_hmd_lens_configuration(eyetracker, &old_lens_configuration);
}
TobiiResearchPoint3D::y
float y
Definition: tobii_research.h:402
tobii_research_get_hmd_lens_configuration
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_hmd_lens_configuration(TobiiResearchEyeTracker *eyetracker, TobiiResearchHMDLensConfiguration *lens_configuration)
Gets the current lens configuration of the HMD based eye tracker. The lens configuration describes ho...
TobiiResearchHMDLensConfiguration::left
TobiiResearchPoint3D left
Definition: tobii_research_eyetracker.h:263
tobii_research_get_serial_number
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_get_serial_number(TobiiResearchEyeTracker *eyetracker, char **serial_number)
Gets the serial number of the eye tracker. All physical eye trackers have a unique serial number.
tobii_research_set_hmd_lens_configuration
TOBII_RESEARCH_API TobiiResearchStatus TOBII_RESEARCH_CALL tobii_research_set_hmd_lens_configuration(TobiiResearchEyeTracker *eyetracker, const TobiiResearchHMDLensConfiguration *lens_configuration)
Sets the lens configuration of the HMD based eye tracker. The lens configuration describes how the le...
tobii_research_eyetracker.h
Functionality for an eye tracker.
TobiiResearchPoint3D::x
float x
Definition: tobii_research.h:398
tobii_research_free_string
TOBII_RESEARCH_API void TOBII_RESEARCH_CALL tobii_research_free_string(char *str)
Free memory allocation for a string allocated by the SDK.
TobiiResearchHMDLensConfiguration::right
TobiiResearchPoint3D right
Definition: tobii_research_eyetracker.h:267
TobiiResearchEyeTracker
struct TobiiResearchEyeTracker TobiiResearchEyeTracker
Definition: tobii_research.h:310
TobiiResearchPoint3D::z
float z
Definition: tobii_research.h:406
TobiiResearchHMDLensConfiguration
Definition: tobii_research_eyetracker.h:259
TobiiResearchStatus
TobiiResearchStatus
Definition: tobii_research.h:45