home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / bomb.tar.gz / bomb.tar / bomb / image_db.h < prev    next >
C/C++ Source or Header  |  1997-07-14  |  2KB  |  46 lines

  1. /*
  2.     bomb - automatic interactive visual stimulation
  3.     Copyright (C) 1994  Scott Draves <spot@cs.cmu.edu>
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19.  
  20. #define SMALL_FACTOR 5
  21. #define TILE_SIZE 40
  22. #define SMALL_SIZE (TILE_SIZE/SMALL_FACTOR)
  23.  
  24. #if mac_bomb || win_bomb
  25. #  define use_suck_dir 1
  26. #  define max_image_name 30
  27. #  define max_images 300
  28. extern char image_names[max_images][max_image_name];
  29. #else
  30. #  define use_suck_dir 0
  31. #include <dirent.h>
  32. extern struct dirent **image_dir;
  33. #endif
  34. extern int image_dir_len;
  35.  
  36. extern int current_image;
  37. extern Image global_images[N_RAM_IMAGES];
  38. extern Image global_images_small[N_RAM_IMAGES];
  39. extern image8_t small_pattern;
  40. void drive_with_image(int image_num);
  41. void init_images();
  42. void file_to_image(int file_num, int image_num);
  43. void rotate_images();
  44. void invert_board();
  45. void random_image_set();
  46.