source: libcaca/trunk/libee/ee.h @ 151

Last change on this file since 151 was 151, checked in by Sam Hocevar, 20 years ago
  • libee/triangle.c: + Wrote ee_draw_triangle() and ee_draw_thin_triangle().
  • libee/box.c: + Wrote ee_draw_box(), ee_draw_thin_box() and ee_fill_box().
  • libee/conic.c: + Wrote ee_fill_ellipse(). + First attempt at ee_draw_thin_ellipse(), to be reworked.
  • test/demo.c: + Merged demo_lines() and demo_thin_lines(). + Merged demo_triangles() and demo_outlined_triangles(). + Wrote demo_box(). + Use ee_fill_ellipse() in demo_all().
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1/*
2 *   libee         ASCII-Art library
3 *   Copyright (c) 2002, 2003 Sam Hocevar <sam@zoy.org>
4 *                 All Rights Reserved
5 *
6 *   $Id: ee.h 151 2003-11-11 10:22:19Z sam $
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/*
24 * Colors
25 */
26#define EE_BLACK 1
27#define EE_GREEN 2
28#define EE_YELLOW 3
29#define EE_WHITE 4
30#define EE_RED 5
31#define EE_GRAY 6
32#define EE_LIGHTGRAY 7
33#define EE_BLUE 8
34#define EE_CYAN 9
35#define EE_MAGENTA 10
36
37/*
38 * Types
39 */
40struct ee_sprite;
41
42/*
43 * Prototypes
44 */
45int ee_init(void);
46void ee_set_delay(int);
47int ee_get_width(void);
48int ee_get_height(void);
49void ee_refresh(void);
50void ee_end(void);
51
52char ee_get_key(void);
53
54void ee_color(int);
55void ee_putchar(int, int, char);
56void ee_putstr(int, int, char *);
57void ee_clear(void);
58
59void ee_draw_line(int, int, int, int, char);
60void ee_draw_thin_line(int, int, int, int);
61
62void ee_draw_circle(int, int, int, char);
63void ee_draw_ellipse(int, int, int, int, char);
64void ee_draw_thin_ellipse(int, int, int, int);
65void ee_fill_ellipse(int, int, int, int, char);
66
67void ee_draw_box(int, int, int, int, char);
68void ee_draw_thin_box(int, int, int, int);
69void ee_fill_box(int, int, int, int, char);
70
71void ee_draw_triangle(int, int, int, int, int, int, char);
72void ee_draw_thin_triangle(int, int, int, int, int, int);
73void ee_fill_triangle(int, int, int, int, int, int, char);
74
75int ee_rand(int, int);
76int ee_sqrt(int);
77
78struct ee_sprite * ee_load_sprite(const char *);
79void ee_set_sprite_frame(struct ee_sprite *, int);
80int ee_get_sprite_frame(struct ee_sprite *);
81void ee_draw_sprite(int, int, struct ee_sprite *);
82void ee_free_sprite(struct ee_sprite *);
83
Note: See TracBrowser for help on using the repository browser.