Sam Hocevar
7754db5ccf
* Changed cucul_putchar's prototype so that it accepts a 32-bit unsigned
int which shall be used as an UTF-32 character. We do not have any casting
problems due to the signedness of chars because all characters were
ASCII (ie. <= 0x7f) beforehands.
18 years ago
Sam Hocevar
fdc8b45b72
* Added font2tga, a test program that exports our font in a known format.
18 years ago
Sam Hocevar
552974ffd9
* If the export test target is ANSI or UTF-8, dither image with special
shaded glyphs.
18 years ago
Sam Hocevar
0cbd5fd983
* Cosmetic fix in test/font.c.
* Use UTF-8 output in test/text.c instead of ANSI.
19 years ago
Sam Hocevar
29da35e1f4
* Make the export test 80 columns wide, so that the ANSI we generate can
be read by other programs.
19 years ago
Sam Hocevar
72ba9c3585
* Allow an optional input filename in the export test for cheap conversions.
19 years ago
Sam Hocevar
b97751b9bc
* Added cacadraw. It only shows files and lets you scroll for now, but
it will eventually evolve into something better.
19 years ago
Sam Hocevar
cb823dd55b
* Minor typo.
19 years ago
Sam Hocevar
38c4a8b608
* Implemented cucul_load_file() and cucul_load_memory() to load respectively
a file and a memory area into a libcucul buffer.
* Changed the cucul_import_canvas() prototype so that it uses libcucul
buffers instead of simple memory areas.
19 years ago
Jean-Yves Lamoureux
b15241efbd
* Updated C++ bindings, should be coding-style-correction-proof, or at least a bit better than before. Not tested at all.
19 years ago
Sam Hocevar
1f094662d8
* Jylam is too modest.
19 years ago
Jean-Yves Lamoureux
73b9c0af14
* Added importers test
19 years ago
Jean-Yves Lamoureux
2e167ab614
* Added preliminary ANSI importer, added import formats autodection
19 years ago
Sam Hocevar
5cb4d4dedf
* Removed duplicate uint*_t defines from *_internal.h and included common.h
in all .c files that needed it.
19 years ago
Sam Hocevar
370fb06990
* Added "common.h", a placeholder for simple features and functions missing
from some systems.
19 years ago
Sam Hocevar
d0b0d90e2a
* Got rid of CUCUL_LIBS. It's unused.
19 years ago
Sam Hocevar
6c0e8da858
* Allow the caca_event_t *ev argument for caca_get_event() to be NULL.
19 years ago
Sam Hocevar
634c8266cc
* Added a test for multiple frames support.
* Added a test for textfile loading.
19 years ago
Sam Hocevar
8534299c9e
* Disabled sprite stuff from the tests.
19 years ago
Sam Hocevar
bde0e5ca7e
* Changed cucul_clear_canvas() again. It now uses the current foreground
and background colours to clear the screen.
19 years ago
Sam Hocevar
2401f2c732
* Moved cucul_load_canvas() into cucul/import.c and renamed it into
cucul_import_canvas().
* Renamed cucul_create_export() into cucul_export_canvas() for consistency.
19 years ago
Sam Hocevar
1ec6544305
* More function mass-renaming: caca_attach -> caca_create_display, etc.
19 years ago
Sam Hocevar
0deb4abc25
* Changed the cucul_dither_bitmap behaviour so that the 4 coordinates are
now x/y/width/height instead of x1/y1/x2/y2. Avoids unnecessary +1/-1
computations.
19 years ago
Sam Hocevar
e3f0d6c57d
* Changed the cucul_rand() behaviour. Now cucul_rand(0, 10) returns random
values between 0 and 9 (used to be 0 and 10). Updated documentation
accordingly.
19 years ago
Sam Hocevar
a4ac581b6f
* Renamed cucul_clear() to cucul_clear_canvas() and added an argument to
choose the background colour.
19 years ago
Sam Hocevar
18f6532dbc
* Renamed main canvas-related functions so that they have "canvas" in
their name, eg. cucul_create() -> cucul_create_canvas() etc.
* Moved buffer-related functions to cucul/buffer.c.
19 years ago
Sam Hocevar
687a2c43f6
* Renamed caca_t into caca_display_t.
* Renamed canvas handle variables from "c" to "cv". Eh ouais mon gros.
19 years ago
Sam Hocevar
246c5b4d67
* Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
19 years ago
Sam Hocevar
2df91e7617
* Handle CACA_EVENT_QUIT in the event test program.
19 years ago
Sam Hocevar
b01cccf54b
* Minor cosmetic changes in the test programs.
19 years ago
Sam Hocevar
b30948f044
* Use cucul_get_export_list() in the export test instead of hardcoding the
list of available formats. Also added a few truecolor blocks to the test.
19 years ago
Sam Hocevar
960aceabac
* Added test/truecolor.c to test non-ANSI colour pairs.
19 years ago
Sam Hocevar
17c065a49e
* Replaced "struct cucul_*" and "struct caca_*" types with opaque typedefs
such as cucul_dither_t instead of struct cucul_dither.
* Made cucul_buffer_t an opaque structure and implemented the two getters
cucul_get_buffer_data() and cucul_get_buffer_size().
* Documented all missing functions and function parameters.
19 years ago
Jean-Yves Lamoureux
a4de38b97e
* Fixed sprite functions (it compiles now) (Y'a des connards qui font ce qu'ils veulent, mais qui finissent pas)
19 years ago
Sam Hocevar
4095b65df3
* Redisplay the output bitmap using libcaca. Eh ouais mon gars.
19 years ago
Sam Hocevar
9feb826120
* Fixed caca_get_event() call in test/hsv.c.
19 years ago
Sam Hocevar
ea780d5321
* Implemented cucul_get_font_list() to retrieve the list of builtin fonts.
* Fixed font selection through cucul_font_load().
* Added a bigger 10x19 bold font.
19 years ago
Sam Hocevar
ebfb2b388b
* Internal font support through cucul_load_font(). Documented that.
* Removed ugly hooks from test/font.c.
19 years ago
Sam Hocevar
a273b3d7ec
* Implemented cucul_get_font_width() and cucul_get_font_height().
* Documented most font functions.
* Cleaned up cucul_render_canvas() and made it actually usable by external
programs. Removed ugly printf() debug calls.
19 years ago
Sam Hocevar
41d475589c
* Renamed cucul_export into cucul_buffer. We'll use it for other things.
19 years ago
Jean-Yves Lamoureux
61586b966e
* Added silly play with interframe delay. Need to rework sprite format.
19 years ago
Sam Hocevar
e18b717e38
* Added a test program for the font renderer.
19 years ago
Sam Hocevar
7588db8cc9
* Code simplification.
19 years ago
Sam Hocevar
6fb44a69f9
* Moved test/optipal.c to tools/optipal.c. The tools subdirectory will
contain development tools that are only useful to libcaca developers.
19 years ago
Sam Hocevar
bc29d9f28b
* Fixed test/export that was not printing the last character of the file.
19 years ago
Sam Hocevar
58ff9ea1f5
* Renamed *bitmap to *dither. Ben ouais connard, je fais ce que je veux.
19 years ago
Sam Hocevar
988f2f4e92
* Replaced enum cucul_color with unsigned int. The size of an enum is not
really portable, and Visual Studio complains when they are not explicitely
cast.
19 years ago
Sam Hocevar
cfadd8b64d
* Removed CUCUL_BACKGROUND, CUCUL_ANTIALIASING and CUCUL_DITHERING
environment variables handling. Replaced that with three per-bitmap
functions: cucul_set_bitmap_antialias(), cucul_set_bitmap_color() and
cucul_set_bitmap_dithering().
* Added cucul_set_bitmap_brightness() and cucul_set_bitmap_contrast()
prototypes (but did not implement them yet).
* Added cucul_set_bitmap_charset() to choose what characters are going
to be used for the bitmap rendering.
* Removed the now useless cucul_get_feature(), cucul_set_feature() etc.
19 years ago
Sam Hocevar
87604b8e1d
* Merged caca_wait_event() into caca_get_event() and added a timeout
parameter to do what both functions did before, and even more.
19 years ago
Sam Hocevar
bca049e6d7
* Changed the 2nd argument of cucul_create_export to a string. This way we
can add new exporters without changing the API.
19 years ago