SR Research Support Site
Data Structures | Macros | Typedefs | Functions
sdl2_expt.h File Reference

Declarations of eyelink_core_graphics functions and types. More...

Data Structures

struct  _CCDBS
 

Macros

#define SDLRGB(x, y)   SDL_MapRGB(x->format,(y).r,(y).g,(y).b)
 
#define SCREEN_LEFT   dispinfo.left
 
#define SCREEN_TOP   dispinfo.top
 
#define SCREEN_RIGHT   dispinfo.right
 
#define SCREEN_BOTTOM   dispinfo.bottom
 
#define SCRHEIGHT   dispinfo.height
 
#define SCRWIDTH   dispinfo.width
 
#define bitmap_save_and_backdrop   sdl_bitmap_save_and_backdrop
 
#define bitmap_to_backdrop   sdl_bitmap_to_backdrop
 
#define bitmap_save   sdl_bitmap_save
 
#define EXTERNAL_DEV_NONE   ((getExButtonStates)0)
 
#define EXTERNAL_DEV_CEDRUS   ((getExButtonStates)1)
 
#define EXTERNAL_DEV_SYS_KEYBOARD   ((getExButtonStates)2)
 

Typedefs

typedef struct _CCDBS CCDBS
 
typedef int(* getExButtonStates) (CCDBS *)
 

Functions

void set_calibration_colors (SDL_Color *fg, SDL_Color *bg)
 
void set_target_size (UINT16 diameter, UINT16 holesize)
 
void set_cal_sounds (char *ontarget, char *ongood, char *onbad)
 
void set_dcorr_sounds (char *ontarget, char *ongood, char *onbad)
 
INT16 set_camera_image_position (INT16 left, INT16 top, INT16 right, INT16 bottom)
 
int get_current_display_information (int *csw, int *csh, int *ccd)
 
void get_display_information (DISPLAYINFO *di)
 
INT16 init_expt_window (SDL_Window **window, DISPLAYINFO *info)
 
void close_expt_graphics (void)
 
void get_expt_window (SDL_Window **window)
 
int sdl_bitmap_save_and_backdrop (SDL_Surface *hbm, INT16 xs, INT16 ys, INT16 width, INT16 height, char *fname, char *path, INT16 sv_options, INT16 xd, INT16 yd, UINT16 bx_options)
 
int sdl_bitmap_to_backdrop (SDL_Surface *hbm, INT16 xs, INT16 ys, INT16 width, INT16 height, INT16 xd, INT16 yd, UINT16 bx_options)
 
int sdl_bitmap_save (SDL_Surface *hbm, INT16 xs, INT16 ys, INT16 width, INT16 height, char *fname, char *path, INT16 sv_options)
 
void set_cal_target_surface (SDL_Surface *surface)
 
void set_cal_background_surface (SDL_Surface *surface)
 
void reset_background_surface ()
 
void disable_custombackground_on_imagemode ()
 
int set_cal_animation_target (const char *aviName, int playCount, int options)
 
int enable_external_calibration_device (getExButtonStates buttonStatesfcn, const char *config, void *userData)
 
void set_cal_font (const char *fontPath, int size)
 

Detailed Description

Declarations of eyelink_core_graphics functions and types.

This file will also reference the other EyeLink header files.


Copyright ©2002-2021, SR Research Ltd.