source: libcaca/trunk/src/caca_internals.h @ 246

Last change on this file since 246 was 246, checked in by Sam Hocevar, 19 years ago
  • src/graphics.c: + Internally cache screen width and height.
  • src/bitmap.c: + Added alpha support to caca_draw_bitmap(). For now, we only treat 0%

alpha as fully transparent, and any other value as fully opaque.

+ Slightly tuned colour weights in the renderer.
+ caca_set_bitmap_palette() takes unsigned ints.

  • examples/demo.c: + Added a crap render demo.
  • examples/aafire.c: + Set a 20ms delay. + Added alpha values to the palette.
  • examples/view.c: + Draw a gray checkered grid below the image so that transparent images

look a lot nicer.

+ 'f' toggles "fullscreen" mode.

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1/*
2 *   libcaca       ASCII-Art library
3 *   Copyright (c) 2002, 2003 Sam Hocevar <sam@zoy.org>
4 *                 All Rights Reserved
5 *
6 *   This library is free software; you can redistribute it and/or
7 *   modify it under the terms of the GNU Lesser General Public
8 *   License as published by the Free Software Foundation; either
9 *   version 2 of the License, or (at your option) any later version.
10 *
11 *   This library is distributed in the hope that it will be useful,
12 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 *   Lesser General Public License for more details.
15 *
16 *   You should have received a copy of the GNU Lesser General Public
17 *   License along with this library; if not, write to the Free Software
18 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 *   02111-1307  USA
20 */
21
22/**  \file caca_internals.h
23 *   \version \$Id: caca_internals.h 246 2003-12-11 16:31:49Z sam $
24 *   \author Sam Hocevar <sam@zoy.org>
25 *   \brief The \e libcaca private header.
26 *
27 *   This header contains the private types and functions used by \e libcaca.
28 */
29
30#ifndef __CACA_INTERNALS_H__
31#define __CACA_INTERNALS_H__
32
33extern int _caca_init_graphics(void);
34
35#if defined(USE_NCURSES)
36extern int _caca_attr[];
37#endif
38
39#if defined(USE_CONIO)
40extern struct text_info _ti;
41extern char *_caca_screen;
42#endif
43
44extern unsigned int _caca_width;
45extern unsigned int _caca_height;
46
47extern char *_caca_empty_line;
48extern char *_caca_scratch_line;
49
50#endif /* __CACA_INTERNALS_H__ */
Note: See TracBrowser for help on using the repository browser.