Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

21 лет назад
21 лет назад
21 лет назад
21 лет назад
21 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. #ifndef __EE_H__
  23. #define __EE_H__
  24. #ifdef __cplusplus
  25. extern "C"
  26. {
  27. #endif
  28. /*
  29. * Colors
  30. */
  31. #define EE_BLACK 1
  32. #define EE_GREEN 2
  33. #define EE_YELLOW 3
  34. #define EE_WHITE 4
  35. #define EE_RED 5
  36. #define EE_GRAY 6
  37. #define EE_LIGHTGRAY 7
  38. #define EE_BLUE 8
  39. #define EE_CYAN 9
  40. #define EE_MAGENTA 10
  41. /*
  42. * Types
  43. */
  44. struct ee_sprite;
  45. /*
  46. * Prototypes
  47. */
  48. int ee_init(void);
  49. void ee_set_delay(int);
  50. int ee_get_width(void);
  51. int ee_get_height(void);
  52. void ee_refresh(void);
  53. void ee_end(void);
  54. char ee_get_key(void);
  55. void ee_set_color(int);
  56. int ee_get_color(void);
  57. void ee_putchar(int, int, char);
  58. void ee_putstr(int, int, char *);
  59. void ee_clear(void);
  60. void ee_draw_line(int, int, int, int, char);
  61. void ee_draw_polyline(int[], int[], int, char);
  62. void ee_draw_thin_line(int, int, int, int);
  63. void ee_draw_thin_polyline(int[], int[], int);
  64. void ee_draw_circle(int, int, int, char);
  65. void ee_draw_ellipse(int, int, int, int, char);
  66. void ee_draw_thin_ellipse(int, int, int, int);
  67. void ee_fill_ellipse(int, int, int, int, char);
  68. void ee_draw_box(int, int, int, int, char);
  69. void ee_draw_thin_box(int, int, int, int);
  70. void ee_fill_box(int, int, int, int, char);
  71. void ee_draw_triangle(int, int, int, int, int, int, char);
  72. void ee_draw_thin_triangle(int, int, int, int, int, int);
  73. void ee_fill_triangle(int, int, int, int, int, int, char);
  74. int ee_rand(int, int);
  75. int ee_sqrt(int);
  76. struct ee_sprite * ee_load_sprite(const char *);
  77. int ee_get_sprite_frames(struct ee_sprite *);
  78. int ee_get_sprite_width(struct ee_sprite *, int);
  79. int ee_get_sprite_height(struct ee_sprite *, int);
  80. int ee_get_sprite_dx(struct ee_sprite *, int);
  81. int ee_get_sprite_dy(struct ee_sprite *, int);
  82. void ee_draw_sprite(int, int, struct ee_sprite *, int);
  83. void ee_free_sprite(struct ee_sprite *);
  84. #ifdef __cplusplus
  85. }
  86. #endif
  87. #endif /* __EE_H__ */