You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

84 lines
2.2 KiB

  1. /*
  2. * libee ASCII-Art library
  3. * Copyright (c) 2002, 2003 Sam Hocevar <sam@zoy.org>
  4. * All Rights Reserved
  5. *
  6. * $Id$
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. */
  22. /*
  23. * Colors
  24. */
  25. #define EE_BLACK 1
  26. #define EE_GREEN 2
  27. #define EE_YELLOW 3
  28. #define EE_WHITE 4
  29. #define EE_RED 5
  30. #define EE_GRAY 6
  31. #define EE_LIGHTGRAY 7
  32. #define EE_BLUE 8
  33. #define EE_CYAN 9
  34. #define EE_MAGENTA 10
  35. /*
  36. * Types
  37. */
  38. struct ee_sprite;
  39. /*
  40. * Prototypes
  41. */
  42. int ee_init(void);
  43. void ee_set_delay(int);
  44. int ee_get_width(void);
  45. int ee_get_height(void);
  46. void ee_refresh(void);
  47. void ee_end(void);
  48. char ee_get_key(void);
  49. void ee_color(int);
  50. void ee_putchar(int, int, char);
  51. void ee_putstr(int, int, char *);
  52. void ee_clear(void);
  53. void ee_draw_line(int, int, int, int, char);
  54. void ee_draw_thin_line(int, int, int, int);
  55. void ee_draw_circle(int, int, int, char);
  56. void ee_draw_ellipse(int, int, int, int, char);
  57. void ee_draw_thin_ellipse(int, int, int, int);
  58. void ee_fill_ellipse(int, int, int, int, char);
  59. void ee_draw_box(int, int, int, int, char);
  60. void ee_draw_thin_box(int, int, int, int);
  61. void ee_fill_box(int, int, int, int, char);
  62. void ee_draw_triangle(int, int, int, int, int, int, char);
  63. void ee_draw_thin_triangle(int, int, int, int, int, int);
  64. void ee_fill_triangle(int, int, int, int, int, int, char);
  65. int ee_rand(int, int);
  66. int ee_sqrt(int);
  67. struct ee_sprite * ee_load_sprite(const char *);
  68. void ee_set_sprite_frame(struct ee_sprite *, int);
  69. int ee_get_sprite_frame(struct ee_sprite *);
  70. void ee_draw_sprite(int, int, struct ee_sprite *);
  71. void ee_free_sprite(struct ee_sprite *);