Changeset 322
- Timestamp:
- Jan 7, 2004, 1:45:02 PM (19 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/NEWS
r310 r322 1 1 $Id$ 2 3 Changes between 0.6 and 0.7: 4 ---------------------------- 5 6 * cacaball, a metaball animation example 2 7 3 8 Changes between 0.5 and 0.6: … … 45 50 * cacaview, an image viewer based on libcaca 46 51 47 48 52 New in 0.1 49 53 ---------- -
libcaca/trunk/debian/control
r310 r322 33 33 or enable anti-aliasing. 34 34 . 35 cacafire is a port of AALib's aafire and displays burning ASCII art flames. 36 . 37 cacademo is a simple application that shows the libcaca rendering features 38 such as line and ellipses drawing, triangle filling, and sprite blitting. 39 . 40 caca-spritedit is a simple sprite viewer for libcaca. 35 cacaball is a tiny graphic program that renders animated ASCII metaballs on 36 the screen, cacafire is a port of AALib's aafire and displays burning ASCII 37 art flames, cacademo is a simple application that shows the libcaca rendering 38 features such as line and ellipses drawing, triangle filling and sprite 39 blitting, and caca-spritedit is a simple sprite viewer for libcaca. -
libcaca/trunk/debian/rules
r310 r322 43 43 DESTDIR=`pwd`/debian/libcaca-dev/ $(MAKE) install prefix=/usr 44 44 45 mv debian/libcaca-dev/usr/bin/cacaball debian/caca-utils/usr/bin 45 46 mv debian/libcaca-dev/usr/bin/cacademo debian/caca-utils/usr/bin 46 47 mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin … … 49 50 50 51 mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share 52 mv debian/libcaca-dev/usr/share/man/man1/cacaball.1 \ 53 debian/caca-utils/usr/share/man/man1/ 51 54 mv debian/libcaca-dev/usr/share/man/man1/cacademo.1 \ 52 55 debian/caca-utils/usr/share/man/man1/ -
libcaca/trunk/doc/Makefile.am
r313 r322 48 48 rm -f $(DESTDIR)$(mandir)/man1/cacafire.1 49 49 ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacafire.1 50 rm -f $(DESTDIR)$(mandir)/man1/cacaball.1 51 ln -s cacademo.1 $(DESTDIR)$(mandir)/man1/cacaball.1 50 52 endif 51 53 -
libcaca/trunk/doc/cacademo.1
r248 r322 1 .TH libcaca 1 "200 3-11-22" "libcaca"1 .TH libcaca 1 "2004-1-6" "libcaca" 2 2 .SH NAME 3 cacademo, cacafire \- libcaca's demonstration applications3 cacademo, cacafire, cacaball \- libcaca's demonstration applications 4 4 .SH SYNOPSIS 5 5 cacademo 6 6 .PP 7 7 cacafire 8 .PP 9 cacaball 8 10 .RI 9 11 .SH DESCRIPTION 10 This manual page documents briefly the cacademo and cacafire programs. 12 This manual page documents briefly the cacademo, cacafire and cacaball 13 programs. 11 14 .PP 12 15 .B cacademo … … 17 20 .B cacafire 18 21 displays burning ASCII art flames. 22 .PP 23 .B cacaball 24 displays ASCII art metaballs. 19 25 .SH BUGS 20 26 Please report any bugs you find to <libcaca@lists.zoy.org>. 21 27 .SH LICENSE 22 cacademo and cacafire are all covered by the GNU Lesser General Public23 License (LGPL).28 cacademo, cacafire and cacaball are covered by the GNU Lesser General 29 Public License (LGPL). 24 30 .SH AUTHORS 31 .B cacademo 32 and this manual page were written by Sam Hocevar <sam@zoy.org>. 33 .PP 25 34 .B cacafire 26 35 is a port of AAlib's … … 28 37 written by Jan Hubicka <hubicka@freesoft.cz>. 29 38 .PP 30 .B caca demo31 and this manual page were written by Sam Hocevar <sam@zoy.org> 39 .B cacaball 40 was written by Jean-Yves Lamoureux <jylam@lnxscene.org>. 32 41 .SH SEE ALSO 33 42 cacaview(1), aafire(1) -
libcaca/trunk/libcaca.spec
r312 r322 48 48 or enable anti-aliasing. 49 49 50 cacafire is a port of AALib's aafire and displays burning ASCII art flames. 51 52 cacademo is a simple application that shows the libcaca rendering features 53 such as line and ellipses drawing, triangle filling, and sprite blitting. 54 55 caca-spritedit is a simple sprite viewer for libcaca. 50 cacaball is a tiny graphic program that renders animated ASCII metaballs on 51 the screen, cacafire is a port of AALib's aafire and displays burning ASCII 52 art flames, cacademo is a simple application that shows the libcaca rendering 53 features such as line and ellipses drawing, triangle filling and sprite 54 blitting, and caca-spritedit is a simple sprite viewer for libcaca. 56 55 57 56 %prep … … 94 93 %files -n caca-utils 95 94 %defattr(-,root,root) 95 %{_prefix}/bin/cacaball 96 96 %{_prefix}/bin/cacademo 97 97 %{_prefix}/bin/cacafire … … 100 100 %{_prefix}/share/doc/caca-utils-%{version}/* 101 101 %{_prefix}/share/libcaca/* 102 %{_prefix}/share/man/man1/cacaball.1* 102 103 %{_prefix}/share/man/man1/cacademo.1* 103 104 %{_prefix}/share/man/man1/cacafire.1* -
libcaca/trunk/src/bitmap.c
r308 r322 30 30 #include "config.h" 31 31 32 #if defined(HAVE_INTTYPES_H) 32 #if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME) 33 33 # include <inttypes.h> 34 34 #else … … 50 50 * Global variables 51 51 */ 52 #if !defined(_DOXYGEN_SKIP_ME) 52 53 enum caca_feature _caca_background; 53 54 enum caca_feature _caca_dithering; 54 55 enum caca_feature _caca_antialiasing; 56 #endif 55 57 56 58 /* 57 59 * Local variables 58 60 */ 59 #define LOOKUP_VAL 32 60 #define LOOKUP_SAT 32 61 #define LOOKUP_HUE 16 61 #if !defined(_DOXYGEN_SKIP_ME) 62 # define LOOKUP_VAL 32 63 # define LOOKUP_SAT 32 64 # define LOOKUP_HUE 16 65 #endif 62 66 static unsigned char hsv_distances[LOOKUP_VAL][LOOKUP_SAT][LOOKUP_HUE]; 63 67 static enum caca_color lookup_colors[8]; … … 76 80 }; 77 81 82 #if !defined(_DOXYGEN_SKIP_ME) 78 83 #define HSV_XRATIO 6 79 84 #define HSV_YRATIO 3 … … 92 97 * ((h) - hsv_palette[index * 4 + 1])) \ 93 98 : 0))) 99 #endif 94 100 95 101 /* … … 124 130 static void increment_random_dither(void); 125 131 132 #if !defined(_DOXYGEN_SKIP_ME) 126 133 struct caca_bitmap 127 134 { … … 134 141 int red[256], green[256], blue[256], alpha[256]; 135 142 }; 143 #endif 136 144 137 145 static void mask2shift(unsigned int mask, int *right, int *left) … … 230 238 * \brief Set the palette of an 8bpp bitmap object. 231 239 * 232 * \param b pp The bitmap object.240 * \param bitmap The bitmap object. 233 241 * \param red An array of 256 red values. 234 242 * \param green An array of 256 green values. 235 243 * \param blue An array of 256 blue values. 236 244 * \param alpha An array of 256 alpha values. 237 * \return void238 245 */ 239 246 void caca_set_bitmap_palette(struct caca_bitmap *bitmap, … … 419 426 420 427 /* FIXME: choose better characters! */ 421 # define DENSITY_CHARS 13 428 #if !defined(_DOXYGEN_SKIP_ME) 429 # define DENSITY_CHARS ((sizeof(density_chars)/sizeof(char const))-1) 430 #endif 422 431 static char const density_chars[] = 423 432 " " … … 606 615 } 607 616 617 #if !defined(_DOXYGEN_SKIP_ME) 608 618 int _caca_init_bitmap(void) 609 619 { … … 668 678 return 0; 669 679 } 680 #endif /* _DOXYGEN_SKIP_ME */ 670 681 671 682 /* -
libcaca/trunk/src/caca.c
r309 r322 60 60 static void caca_init_terminal(void); 61 61 62 #if !defined(_DOXYGEN_SKIP_ME) 62 63 enum caca_driver _caca_driver; 64 #endif 63 65 64 66 #if defined(USE_NCURSES) … … 230 232 * 231 233 * \param feature The requested feature. 232 * \return The current value of the feature or CACA_ UNKNOWN_FEATUREif an234 * \return The current value of the feature or CACA_FEATURE_UNKNOWN if an 233 235 * error occurred.. 234 236 */ … … 245 247 246 248 default: 247 return CACA_ UNKNOWN_FEATURE;249 return CACA_FEATURE_UNKNOWN; 248 250 } 249 251 } … … 286 288 break; 287 289 288 case CACA_ UNKNOWN_FEATURE:290 case CACA_FEATURE_UNKNOWN: 289 291 break; 290 292 } -
libcaca/trunk/src/caca.h
r316 r322 155 155 #define CACA_DITHERING_MAX 0x35 /**< Last dithering feature. */ 156 156 157 CACA_ UNKNOWN_FEATURE= 0xffff /**< Unknown feature. */157 CACA_FEATURE_UNKNOWN = 0xffff /**< Unknown feature. */ 158 158 }; 159 159 … … 161 161 * Backwards compatibility macros 162 162 */ 163 #if ndef _DOXYGEN_SKIP_ME163 #if !defined(_DOXYGEN_SKIP_ME) 164 164 #define caca_dithering caca_feature 165 165 #define caca_set_dithering caca_set_feature -
libcaca/trunk/src/conic.c
r298 r322 31 31 #include "config.h" 32 32 33 #if defined(HAVE_INTTYPES_H) 33 #if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME) 34 34 # include <inttypes.h> 35 35 #else -
libcaca/trunk/src/graphics.c
r318 r322 50 50 #endif 51 51 52 #if defined(HAVE_INTTYPES_H) 52 #if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME) 53 53 # include <inttypes.h> 54 #else 55 typedef unsigned char uint8_t; 54 56 #endif 55 57 … … 68 70 * Global variables 69 71 */ 72 #if !defined(_DOXYGEN_SKIP_ME) 70 73 unsigned int _caca_width = 0; 71 74 unsigned int _caca_height = 0; 75 #endif 72 76 73 77 /* … … 142 146 #endif 143 147 144 #if defined(USE_X11) 148 #if defined(USE_X11) && !defined(_DOXYGEN_SKIP_ME) 145 149 Display *x11_dpy; 146 150 Window x11_window; … … 479 483 } 480 484 485 #if !defined(_DOXYGEN_SKIP_ME) 481 486 int _caca_init_graphics(void) 482 487 { … … 777 782 return 0; 778 783 } 784 #endif /* _DOXYGEN_SKIP_ME */ 779 785 780 786 /** \brief Set the refresh delay. … … 851 857 void caca_refresh(void) 852 858 { 859 #if !defined(_DOXYGEN_SKIP_ME) 853 860 #define IDLE_USEC 10000 861 #endif 854 862 static int lastticks = 0; 855 863 int ticks = lastticks + _caca_getticks(); -
libcaca/trunk/src/io.c
r316 r322 59 59 static unsigned int _read_key(void); 60 60 61 #if !defined(_DOXYGEN_SKIP_ME) 61 62 #define KEY_BUFLEN 10 63 #endif 62 64 static unsigned int keybuf[KEY_BUFLEN + 1]; /* zero-terminated */ 63 65 static int keys = 0; -
libcaca/trunk/src/line.c
r305 r322 31 31 #include "config.h" 32 32 33 #if defined(HAVE_INTTYPES_H) 33 #if defined(HAVE_INTTYPES_H) || defined(_DOXYGEN_SKIP_ME) 34 34 # include <inttypes.h> 35 35 #else … … 42 42 #include "caca_internals.h" 43 43 44 #if !defined(_DOXYGEN_SKIP_ME) 44 45 struct line 45 46 { … … 49 50 void (*draw) (struct line*); 50 51 }; 52 #endif 51 53 52 54 static void clip_line(struct line*); -
libcaca/trunk/src/sprite.c
r305 r322 37 37 #include "caca_internals.h" 38 38 39 #if !defined(_DOXYGEN_SKIP_ME) 39 40 struct caca_frame 40 41 { … … 50 51 struct caca_frame *frames; 51 52 }; 53 #endif 52 54 53 55 /**
Note: See TracChangeset
for help on using the changeset viewer.