Sam Hocevar
57acf9a2e6
* Initialize random seed to getpid()+time(NULL) so that the user does not
have to do it.
18 years ago
Sam Hocevar
6d904c57f8
* Fixed cucul_create_canvas()'s documentation.
18 years ago
Sam Hocevar
235504d81a
* More error checking in libcucul.
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
9a65579cf6
* Support for multiple frames in canvases.
19 years ago
Sam Hocevar
046c004862
* Got rid of cv->scratch_line. It's unused, too.
19 years ago
Sam Hocevar
beda391b6b
* Got rid of cv->empty_line, it's now unused.
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
ea3bde92a4
* Added a new "caca" exporter.
* Removed most code from the raw driver and replaced it with a call to the
caca exporter.
* Slightly changed the caca export format and updated code accordingly.
* Improved cacaserver error reporting.
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
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
66e06a687c
* Merged again all export functions into cucul/export.c. They're all the
same and they're very short (50-100 lines).
19 years ago
Sam Hocevar
c778d5301c
* Removed math.c from cucul, it's beyond uselessness. Kept cucul_rand in
cucul.c just in case.
19 years ago
Sam Hocevar
b5f00c459c
* Implemented TGA image export.
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
Sam Hocevar
2c5ccb65e6
* Improved documentation in many places.
19 years ago
Sam Hocevar
018fda76e8
* Removed \file directives from all files except caca.h and cucul.h, to
remove redundencies in the Doxygen documentation.
19 years ago
Sam Hocevar
41d475589c
* Renamed cucul_export into cucul_buffer. We'll use it for other things.
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
af4b95f8e6
* Store colour information on 32 bits, for future 12-bit colour support.
19 years ago
Sam Hocevar
fcfbcd4000
* Check the magic bytes at the end of the buffer when cucul_load()ing it.
19 years ago
Sam Hocevar
3b410fdc89
* Fixed old typo that caused qq->height to be uninitialised.
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
e625e11d52
* Added cucul_get_export_list(). Returns a list of known export formats.
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
Sam Hocevar
41db7b066a
* Implemented cucul_load() to reload a file that was saved with the
raw driver. I know it is inconsistent to have the loader in libcucul
and the exporter in libcaca but I'll find a way to harmonise that.
19 years ago
Sam Hocevar
571de1af04
* Renamed cucul_init()/cucul_end() into cucul_create()/cucul_free().
19 years ago
Sam Hocevar
77f995023d
* Slightly changed header comments.
19 years ago
Sam Hocevar
f3698cd490
* Fixed an uninitialised structure member.
19 years ago
Sam Hocevar
2c80bf875b
* Renamed cucul_get_export() to cucul_create_export().
19 years ago
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).
19 years ago
Sam Hocevar
a20393e0b2
* Removed code that did not need to be duplicated.
19 years ago
Sam Hocevar
bb1cedf858
* Renamed cucul_buffer to cucul_export. Vanilla rum rules.
19 years ago
Sam Hocevar
67ee65c720
* Comment clarification.
19 years ago
Jean-Yves Lamoureux
d1f6bb6759
* Added preliminary (but working) SVG exporter
19 years ago
Sam Hocevar
9e698966f2
* Replaced all cucul_get_* exporters with a generic cucul_export() function.
* Got rid of static buffers; we now use cucul_free() to free exported
buffers.
* Fixed light background in the ANSI exporter by adding escape sequences for
most terminal emulators.
19 years ago
Jean-Yves Lamoureux
9071a26bb9
* Added preliminary Postscript (tm) (r) (c) exporter.
19 years ago
Jean-Yves Lamoureux
5a09b684fe
* Updated README for network driver, fixed remaining exporters
19 years ago
Sam Hocevar
15ac34a918
* Added glue code to compile libcaca without a libc and build applications
as multiboot kernels.
19 years ago
Jean-Yves Lamoureux
a676487863
* Changed way temporary buffer of ansi export was handled. Need to do that for other exporters as well.
19 years ago
Sam Hocevar
da30961a0e
* Fixed async issues between the driver and libcaca when resizing windows,
and simplified the handle_resize() API. Still can be polished.
19 years ago
Sam Hocevar
05e98f2254
* cucul_set_size() does nothing if a graphical backend is attached. Added
documentation to explain this behaviour.
19 years ago
Sam Hocevar
70d96c811b
* Polished the driver split a bit (still no events, except resize events),
properly credited authors and documented a few things.
19 years ago
Sam Hocevar
4f59010b4c
* Moved stuff around to differenciate between libcucul and libcaca.
19 years ago
Sam Hocevar
6c6beb3541
* Use 32 bit integers for the character array. No visible difference for
now because we only do ASCII, but that will let us do Unicode later.
19 years ago
Sam Hocevar
6d99c79d26
* All output plugins should now work again.
* Renamed caca_refresh() into caca_display() which makes more sense.
* Optimised gl_bgpal by directly storing floats instead of doing the
conversion at runtime.
* Handle resizing in cucul_set_size() and try to keep as much information
as possible from the previous canvas.
* Moved most global variables into cucul_t or caca_t contexts.
* Moved time.c into libcaca.
19 years ago