
Extended structure used set and get callback functions. More...
Data Fields | |
| int | major |
| int | minor |
| void * | userData |
| INT16(* | setup_cal_display_hook )(void *userData) |
| INT16(* | exit_cal_display_hook )(void *userData) |
| INT16(* | setup_image_display_hook )(void *userData, INT16 width, INT16 height) |
| INT16(* | image_title_hook )(void *userData, char *title) |
| INT16(* | draw_image )(void *userData, INT16 width, INT16 height, byte *pixels) |
| INT16(* | exit_image_display_hook )(void *userData) |
| INT16(* | clear_cal_display_hook )(void *userData) |
| INT16(* | erase_cal_target_hook )(void *userData) |
| INT16(* | draw_cal_target_hook )(void *userData, float x, float y) |
| INT16(* | play_target_beep_hook )(void *userData, EL_CAL_BEEP beep_type) |
| INT16(* | get_input_key_hook )(void *userData, InputEvent *event) |
| INT16(* | alert_printf_hook )(void *userData, const char *msg) |
Extended structure used set and get callback functions.
Structure used set and get callback functions so that the calibration graphics can be drawn.
Called by alert_printf( ). Defaults to the MessageBox( ) function, in Windows. Prints to standard error in macOS and Linux.
| userData | User context data set on userData field of HOOKFCNS2. |
| msg | The message that is displayed. |
Called to clear the calibration display.
| userData | User context data set on userData field of HOOKFCNS2. |
Call to draw a gaze target for calibration, validation or drift correction.
| userData | User context data set on userData field of HOOKFCNS2. |
| x | x-axis coordinate of the target. |
| y | y-axis coordinate of the target. |
Called to supply the image.
| userData | User context data set on userData field of HOOKFCNS2. |
| width | width of the picture. |
| height | height of the picture. |
| pixels | pixels pointer to the pixel data. The size of the pixel data can be calculate by width*height*4. The image comes in RGBA(network order) format. |
Erases the target that was drawn by the last call to draw_cal_target.
| userData | User context data set on userData field of HOOKFCNS2. |
Called to release the resources that are not used after calibration.
| userData | User context data set on userData field of HOOKFCNS2. |
Called to notify when the camera setup is complete. Any resources that are allocated in setup_image_display( ) may be released by this function.
| userData | User context data set on userData field of HOOKFCNS2. |
| INT16( * get_input_key_hook) (void *userData, InputEvent *event) |
Called to check for keyboard input.
| [in] | userData | User context data set on userData field of HOOKFCNS2. |
| [out] | event | Returns the new state of the keyboard. |
Special keys:
One needn't change the modifier value when using SDL, as it will already match the desired value.
Called to update the image title.
| userData | User context data set on userData field of HOOKFCNS2. |
| title | The text that will be rendered and printed by the image. |
| int major |
Major version. At the moment the version number must be set to 1.
| int minor |
Minor version. At the moment the version number must be set to 0.
| INT16( * play_target_beep_hook) (void *userData, EL_CAL_BEEP beep_type) |
Called to signal audibly that a new target has been presented.
| userData | User context data set on userData field of HOOKFCNS2. |
| beep_type | Specifies what sound to play, from the EL_CAL_BEEP enumeration. |
Called before any calibration routine is started to set up the calibration/validation display.
| userData | User context data set on userData field of HOOKFCNS2. |
Initialises the resources that are required for camera setup.
| userData | User context data set on userData field of HOOKFCNS2. |
| width | width of the source image to expect. |
| height | height of the source image to expect. |
-1 on failure0 success with support for drawing single size camera images1 success with support for drawing variable size camera images, for high resolution global camera images from newer EyeLink models. | void* userData |
The value set here will be passed to every single call back functions.