Sam Hocevar
3624787754
* Updated libcaca and cacaview after the API changes.
před 18 roky
Sam Hocevar
b6edafcb11
* Fixed cacaview’s dithering selection.
před 18 roky
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
před 19 roky
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
před 19 roky
Sam Hocevar
3243101ff0
* Rename cucul_put*() into cucul_put_*(). Updated all code to reflect that.
před 19 roky
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.
před 19 roky
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().
před 19 roky
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_*.
před 19 roky
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.
před 19 roky
Sam Hocevar
d1f55fbe8f
* Fix broken Imlib2 support in cacaview.
před 19 roky
Sam Hocevar
c58db87df1
* A few coding style fixes.
před 19 roky
Jean-Yves Lamoureux
1b821e2588
* Updated kernel 'driver', still not working, but most of the work is done
před 19 roky
Sam Hocevar
5cb4d4dedf
* Removed duplicate uint*_t defines from *_internal.h and included common.h
in all .c files that needed it.
před 19 roky
Sam Hocevar
bde0e5ca7e
* Changed cucul_clear_canvas() again. It now uses the current foreground
and background colours to clear the screen.
před 19 roky
Sam Hocevar
1ec6544305
* More function mass-renaming: caca_attach -> caca_create_display, etc.
před 19 roky
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.
před 19 roky
Sam Hocevar
a4ac581b6f
* Renamed cucul_clear() to cucul_clear_canvas() and added an argument to
choose the background colour.
před 19 roky
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.
před 19 roky
Sam Hocevar
687a2c43f6
* Renamed caca_t into caca_display_t.
* Renamed canvas handle variables from "c" to "cv". Eh ouais mon gros.
před 19 roky
Sam Hocevar
246c5b4d67
* Renamed cucul_t into cucul_canvas_t. Eh ouais mon con.
před 19 roky
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.
před 19 roky
Sam Hocevar
018fda76e8
* Removed \file directives from all files except caca.h and cucul.h, to
remove redundencies in the Doxygen documentation.
před 19 roky
Sam Hocevar
52d877a405
* cacaview works again. Somewhat. Image loading is now handled by the
factored common-image.c file. Feature selection such as antialiasing or
dithering mode are still disabled.
před 19 roky
Sam Hocevar
58ff9ea1f5
* Renamed *bitmap to *dither. Ben ouais connard, je fais ce que je veux.
před 19 roky
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.
před 20 roky
Sam Hocevar
f149dc3ac4
* Massive rework of the event handling code, as per the TODO list.
před 20 roky
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.
před 20 roky
Sam Hocevar
571de1af04
* Renamed cucul_init()/cucul_end() into cucul_create()/cucul_free().
před 20 roky
Sam Hocevar
36886a339e
* Removed the cucul_t * argument from cucul_create_bitmap(). It's not needed.
před 20 roky
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).
před 20 roky
Sam Hocevar
57d897a7bf
* Gamma support in cacaview (through the g/G key).
před 20 roky
Sam Hocevar
dcaccc744c
* Got rid of useless parameters in cucul_*_bitmap and cucul_*_sprite.
před 20 roky
Sam Hocevar
70d96c811b
* Polished the driver split a bit (still no events, except resize events),
properly credited authors and documented a few things.
před 20 roky
Sam Hocevar
201ad26639
* Moved stuff again.
před 20 roky
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.
před 20 roky
Sam Hocevar
4c72df99aa
A new low-level text management library (canvas for ultrafast compositing
of unicode letters) is now separated from the higher level rendering and I/O
(that is, libcaca). This commit totally breaks the API, but once everything
is polished I will think about source-level backward compatibility. Most
drivers are broken, but X11 still sorta works.
The new design is much more object-oriented and allows having several
active renderers at the same time, changing renderers on the fly, and more
important, having no renderer at all (useful for converters, or when you
want to do your own renderer).
And in case you are still wondering, the libcucul acronym has "Unicode"
because I want to support at least a subset of Unicode. There are awesome
glyphs in it, including the ones inherited from Codepage 437 such as
"gray 25%" that are used in DOS and Win32 ANSI art.
před 20 roky
Sam Hocevar
707f10de81
* Changed the licensing to WTFPL, as per all copyright holders' permission.
před 20 roky
Sam Hocevar
d8589b3a00
* examples/cacaview.c:
+ Moved statusbar and help menu handling in separate functions.
před 22 roky
Sam Hocevar
d2d39b2c51
* examples/cacaview.c:
+ Proper aspect ratio support.
+ Finer zoom support.
+ Handle mouse clicks as next/prev picture command.
+ Removed useless iterations in draw_checkers().
před 22 roky
Sam Hocevar
8b7bd031a7
* src/graphics.c:
+ When resizing under X11, copy the old pixmap to the new one.
* examples/cacaview.c:
+ Resizing support.
před 22 roky
Sam Hocevar
e4a5408689
* src/graphics.c:
+ Renamed caca_set_title() to caca_set_window_title().
+ Implemented caca_get_window_width() and caca_get_window_height().
* examples/cacaview.c:
+ Set the window title to cacaview.
před 22 roky
Sam Hocevar
1257f58fbb
* configure.ac:
+ Check for sys/times.h and unistd.h.
+ Added calls to AC_C_CONST and AC_C_INLINE.
* src/time.c src/graphics.c:
+ Fixes for MSVC compilation warnings.
+ Additional sanity checks in the Win32 driver.
* src/caca.c:
+ Use raw()/noraw() in the curses driver instead of cbreak().
* msvc/libcaca.sln:
+ Added an MSVC solution.
* examples/aafire.c:
+ Slightly reduced the maximum cacafire framerate.
před 22 roky
Sam Hocevar
a51d8843b2
* src/graphics.c:
+ Implemented caca_set_title() for X11 and Win32.
* examples/cacaview.c:
+ Use caca_set_title() to set the window title to "cacaview".
před 22 roky
Sam Hocevar
e8e85d268b
* configure.ac src/time.c:
+ Look for Sleep in -lkernel32.
* examples/cacaview.c:
+ Use caca_wait_event() instead of usleep()/caca_get_event().
před 22 roky
Sam Hocevar
85511793bf
* src/caca.c src/graphics.c src/io.c src/time.c:
+ Native win32 port.
před 22 roky
Sam Hocevar
17f9a58aa6
* src/io.c:
+ caca_get_event() and caca_wait_event() now accept a mask as an argument
in order to select events.
před 22 roky
Sam Hocevar
731bffa99e
* src/io.c:
+ Fixed a bug that caused ButtonRelease events to be forgotten under X11.
* examples/cacaview.c:
+ Use <stdlib.h> instead of <malloc.h>.
před 22 roky
Sam Hocevar
4041eba52e
* src/ examples/ test/:
+ Changed <const type> constructs into <type const>.
před 22 roky
Sam Hocevar
fd2a676cd2
* examples/cacaview.c:
+ If Imlib2 was not activated, warn the user that only BMP is supported.
před 22 roky
Sam Hocevar
e7b9d4bef4
* examples/cacaview.c:
+ Use sprintf() instead of snprintf() so that cacaview builds with DJGPP.
* examples/aafire.c:
+ bzero the pixel buffer in the initialisation routine.
před 22 roky