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
231c33acce
Fix an alignment issue in caca_get_canvas_chars() and caca_get_canvas_attrs().
Fixes #41 .
15 роки тому
Sam Hocevar
4bbf44af21
Don't enter glutCheckLoop() from gl_get_event() if there is already an
event available. This increases the framerate when using OpenGL.
15 роки тому
Sam Hocevar
644ee4a78a
Coding style: remove tabs and trailing spaces.
15 роки тому
Sam Hocevar
e1562a8d46
libcaca: move codecs and import/export functions into subdirectories.
16 роки тому
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
4ea785f818
* Remove all unsigned ints from exported functions. Signed arithmetic is
far better for error checking.
16 роки тому
Sam Hocevar
6a3f5c21f0
* Changed most of the long ints in the API into C99 types. WARNING: this
completely breaks compatibility with previous versions of libcaca on
64-bit systems.
16 роки тому
Sam Hocevar
f44b5e11fa
* Changed most "unsigned char" variables into "uint8_t", including in
prototypes. As they are equivalent, this does not break the ABI.
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
db1a77f0d0
* Only call glutInit() once through the program's lifetime.
* Free the internal font when closing the GL driver.
* Hide the window when closing the GL driver, because freeglut's
glutDestroyWindow() does not really closes the window.
17 роки тому
Sam Hocevar
e15e962928
* Implement caca_create_display_with_driver() to specify an output driver
without using environment variables..
* Implement caca_get_display_driver() to return the current display's
output driver.
* Add a simple example program to test caca_create_display_with_driver().
17 роки тому
Sam Hocevar
b519d05bce
* Export cucul_attr_to_rgb12_bg(), cucul_attr_to_rgb12_fg() and
cucul_attr_to_argb64() (previously _cucul_attr_to_rgb12bg,
_cucul_attr_to_rgb12fg and _cucul_attr_to_argb4) in the official
libcucul API.
* Cleanup complete: libcaca no longer depends on "cucul_internals.h".
17 роки тому
Sam Hocevar
07b9891afa
* Introduce cucul_get_canvas_chars() and cucul_get_canvas_attrs() to avoid
direct cv->chars and cv->attrs access by display drivers.
17 роки тому
Sam Hocevar
7362a612c4
* Add cucul_manage_canvas() and cucul_unmanage_canvas(). Display
drivers no longer need to access the cv->refcount private member
and __cucul_set_canvas_size() is no longer needed.
17 роки тому
Sam Hocevar
9da4d7b000
* Made the caca_event_t structure opaque and created a whole bunch of
functions to access its real data. This is a big API change that will
break your software, sorry :(
17 роки тому
Sam Hocevar
2149829bdf
* Added as many "const" qualifiers as possible to the public API.
17 роки тому
Sam Hocevar
31cbfb5bea
* Rename _cucul_set_canvas_size into __cucul_set_canvas_size to prevent
collisions due to symbol mangling.
17 роки тому
Sam Hocevar
c9f6de3cb2
* Fixed OpenGL fullwidth support, courtesy of Ben Wiley Sittler.
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
e1a42d9b42
* Added caca_set_cursor(). Not yet functional.
18 роки тому
Sam Hocevar
3243101ff0
* Rename cucul_put*() into cucul_put_*(). Updated all code to reflect that.
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
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
86301dd48c
* Use the LSB of alpha and blue components to encode additional flags such
as bold or underline. No higher level support for these yet, but at
least everything is consistent.
* Created cucul_set_attr_ansi() and cucul_set_attr_argb() which are bound
to replace cucul_set_color() and cucul_set_truecolor().
18 роки тому
Sam Hocevar
e03e1d62da
* Allow to create the initial canvas with a zero size. Either the application
resizes it later, or the driver changes it to fit the display.
18 роки тому
Sam Hocevar
4711611e3f
* Support for fullwidth glyphs in the libcaca output drivers.
18 роки тому
Sam Hocevar
79d8786aec
* Ahahaha mais vieux porc ! Tiens, mange-toi ce fix.
18 роки тому
Jean-Yves Lamoureux
53a72a2d72
* Oops \o/
18 роки тому
Jean-Yves Lamoureux
1c3760ac41
* REAL fix
18 роки тому
Sam Hocevar
ec9e57983a
* More long int -> int32 casts to fix the GL driver on 64-bit arches.
18 роки тому
Sam Hocevar
2b00f62d2e
* Hopefully fix 64-bit bug.
18 роки тому
Jean-Yves Lamoureux
8448ac75ab
* Ugly workaround in OpenGL driver for IA64 platform, unicode still does not work, thought.
18 роки тому
Sam Hocevar
50fb37ca2d
* Optimised memory usage in the GL driver and added a few comments.
18 роки тому
Jean-Yves Lamoureux
44cb9be2b5
* Fixed compilation warning, and ....
AHAHAHAHAHAHAHA GL DRIVER IS B0RKEN YOU SMELLY GOATS ! (no time to fix it, thought)
18 роки тому
Sam Hocevar
d1d4aeca10
* Use cucul_render_canvas() instead of cucul_render_glyph() in the GL driver.
18 роки тому
Sam Hocevar
eb70b77fde
* Full Unicode support in the GL driver.
18 роки тому
Jean-Yves Lamoureux
e3e2ac588f
* Updated README, just to say my coding style is just perfect, sam is too pedantic.
18 роки тому
Jean-Yves Lamoureux
a87130bade
* Updated documentation, removed warning in cucul_render_glyph(), minor optimisation in driver_gl
18 роки тому
Sam Hocevar
d63cdbf39e
* Coding style (ahaha vieux porc).
18 роки тому
Sam Hocevar
7165793ff9
* Fixed cucul_render_glyph(). There is no way this could have ever possibly
worked properly.
18 роки тому
Jean-Yves Lamoureux
921016181f
* Fixed truecolor bug in OpenGL driver.
18 роки тому
Jean-Yves Lamoureux
280132493f
* OpenGL builtin font support
18 роки тому
Sam Hocevar
cfe6fd6ffa
* Factored some of the GL code.
18 роки тому
Sam Hocevar
e9b2ea68cb
* More coding style fixes in the GL driver.
18 роки тому
Sam Hocevar
fe74d9ac77
* Fixed awful indenting of the GL plugin.
18 роки тому
Sam Hocevar
0c1746c626
* Renamed the event data member "ucs4" to "utf32" for consistency
with "utf8".
18 роки тому