SR Research Support Site
Data Structures | Macros | Typedefs | Functions
sdl_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 Flip(x)   while(SDL_Flip(x)<0)
 
#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_graphics (SDL_Surface *hwnd, DISPLAYINFO *info)
 
void close_expt_graphics (void)
 
int sdl_bitmap_save_and_backdrop (SDL_Surface *hbm, INT16 xs, INT16 ys, INT16 width, INT16 height, const char *fname, const 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)
 
void disable_custombackground_on_imagemode (void)
 
int set_cal_animation_target (const char *aviName, int playCount, int options)
 
void set_lerp_on_target_move (int animateMove)
 
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.

Copyright (c) 1996-2023, SR Research Ltd., All Rights Reserved

For use by SR Research licencees only. Redistribution and use in source and binary forms, with or without modification, are NOT permitted.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither name of SR Research Ltd nor the name of contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This file will also reference the other EyeLink header files.


Copyright ©2002-2023, SR Research Ltd.