Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
преди 12 години
Sam Hocevar
a09f027727
Add the copyright unit test and update copyright information everywhere.
преди 15 години
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
преди 15 години
Sam Hocevar
d3ef2bbecd
Add caca_export_area_to_memory() to export only a selected part of the
current canvas. This is useful to export dirty rectangles. Accordingly,
add caca_import_area_from_memory() and caca_import_area_from_file().
преди 15 години
Sam Hocevar
f61816ceb7
Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.
преди 16 години
Sam Hocevar
8f832a3b47
* Switch a few unsigned int variables to size_t where appropriate.
* Synchronise parameter types in the C++ bindings with the C API.
преди 16 години
Sam Hocevar
99b5396e8e
* Remove #include <stdint.h> etc. from "common.h". Instead, make sure that
<cucul.h> will provide the C99 types, even if libcaca has been installed.
* Rename what's left of "common.h" to "stubs.h".
* Remove all references to erroneous <inttypes.h> from source files.
преди 16 години
Sam Hocevar
10bf9f48a7
* Rename "test" to "examples". The former will become a real testsuite.
* Autodetect zzuf in the configure step. It might become handy.
преди 17 години
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
преди 18 години
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
преди 18 години
Sam Hocevar
55765045c8
* Support for CUCUL_DEFAULT and CUCUL_TRANSPARENT in the HTML exporters.
* Updated export test accordingly.
преди 18 години
Sam Hocevar
3243101ff0
* Rename cucul_put*() into cucul_put_*(). Updated all code to reflect that.
преди 18 години
Sam Hocevar
88facd894c
* Switch back to UTF-32 arguments for drawing primitives, now that we
properly export cucul_utf8_to_utf32(). Evil API breakage, but no one
uses these functions anyway.
преди 18 години
Sam Hocevar
9621f21c5a
* Convert all programs and tests to the new import/export API.
преди 18 години
Sam Hocevar
42c9518d2a
* Got rid of cucul_ansi_to_attr() and cucul_argb_to_attr() and restored
cucul_set_color() and cucul_set_truecolor() under the new names
cucul_set_color_ansi() and cucul_set_color_argb().
* Renamed cucul_get_color_name() into cucul_ansi_to_str().
преди 18 години
Sam Hocevar
019938c9ae
* Changed cucul_set_attr() so that only setting the style does not change
the colour.
преди 18 години
Sam Hocevar
e9f3bc9321
* Add Bold/Blink/Italics/Underline to the export and color tests.
преди 18 години
Sam Hocevar
0b37a307dd
* Get rid of cucul_set_attr_ansi() and cucul_set_attr_argb and merge the
functionality into cucul_set_attr().
* Add cucul_ansi_to_attr() and cucul_argb_to_attr().
* Rename CUCUL_COLOR_* to CUCUL_*.
преди 18 години
Sam Hocevar
aa93ad25f6
* Remove cucul_set_color() from the exported API and replaced all calls
with cucul_set_attr_ansi(). Old application will still compile (but issue
a warning) and run, though.
преди 18 години
Sam Hocevar
2051ddea46
* Add a test for fullwidth characters to the exporter test.
преди 18 години
Jean-Yves Lamoureux
1b821e2588
* Updated kernel 'driver', still not working, but most of the work is done
преди 18 години
Sam Hocevar
514bbb3859
* Fix a crash in export.c with unknown file formats.
преди 18 години
Sam Hocevar
552974ffd9
* If the export test target is ANSI or UTF-8, dither image with special
shaded glyphs.
преди 18 години
Sam Hocevar
29da35e1f4
* Make the export test 80 columns wide, so that the ANSI we generate can
be read by other programs.
преди 18 години
Sam Hocevar
72ba9c3585
* Allow an optional input filename in the export test for cheap conversions.
преди 18 години
Sam Hocevar
370fb06990
* Added "common.h", a placeholder for simple features and functions missing
from some systems.
преди 18 години
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.
преди 18 години
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.
преди 18 години
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.
преди 18 години
Sam Hocevar
687a2c43f6
* Renamed caca_t into caca_display_t.
* Renamed canvas handle variables from "c" to "cv". Eh ouais mon gros.
преди 18 години
Sam Hocevar
246c5b4d67
* Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
преди 18 години
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.
преди 18 години
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.
преди 18 години
Sam Hocevar
41d475589c
* Renamed cucul_export into cucul_buffer. We'll use it for other things.
преди 18 години
Sam Hocevar
7588db8cc9
* Code simplification.
преди 18 години
Sam Hocevar
bc29d9f28b
* Fixed test/export that was not printing the last character of the file.
преди 18 години
Sam Hocevar
58ff9ea1f5
* Renamed *bitmap to *dither. Ben ouais connard, je fais ce que je veux.
преди 18 години
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.
преди 18 години
Sam Hocevar
6db26f7487
* Made cucul_putchar32() an internal-only function.
* Changed the line, box, ellipsis etc. prototypes so that they use an UTF-8
string instead of a single character as their last argument.
преди 18 години
Sam Hocevar
571de1af04
* Renamed cucul_init()/cucul_end() into cucul_create()/cucul_free().
преди 18 години
Sam Hocevar
2c80bf875b
* Renamed cucul_get_export() to cucul_create_export().
преди 18 години
Sam Hocevar
36886a339e
* Removed the cucul_t * argument from cucul_create_bitmap(). It's not needed.
преди 18 години
Sam Hocevar
c979bc6eae
* Changed the cucul_init parameter so that it now directly accepts a
canvas size (use cucul_init(0, 0) for the old behaviour).
преди 18 години
Sam Hocevar
dcaccc744c
* Got rid of useless parameters in cucul_*_bitmap and cucul_*_sprite.
преди 19 години
Sam Hocevar
bb1cedf858
* Renamed cucul_buffer to cucul_export. Vanilla rum rules.
преди 19 години
Sam Hocevar
aaa61f9a81
* Added a few commonly escaped characters to the export test: ( ) " < > &
преди 19 години
Sam Hocevar
c1ed04f470
* Do not write the trailing \0 when exporting data.
преди 19 години
Sam Hocevar
a870a7ef97
* Added a few more Unicode characters to the export and unicode tests.
преди 19 години
Sam Hocevar
2f7c869bcc
* Small test program for exporters. Usage: "export html", "export irc" etc.
преди 19 години