Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
15 роки тому
Sam Hocevar
51cf438fb0
Fix dllexport usage, courtesy of Carlo Bramini in #48 .
15 роки тому
Sam Hocevar
6841aca387
Only define CACA_ALIAS with gcc > 3 (instead of >= 3). Patch courtesy of
Carlo Bramini. Addresses #48 .
15 роки тому
Sam Hocevar
81f9abd203
Document file functions and fix a few issues here and there.
15 роки тому
Sam Hocevar
231c33acce
Fix an alignment issue in caca_get_canvas_chars() and caca_get_canvas_attrs().
Fixes #41 .
15 роки тому
Sam Hocevar
6d526ea629
Implement caca_unset_attr() and caca_toggle_attr(). Fixes #7 .
15 роки тому
Jean-Yves Lamoureux
2adebb531b
* Make caca_fill_triangle_textured use less arguments, examples/trifiller modified accordingly
15 роки тому
Jean-Yves Lamoureux
67679dc55d
* Added texture mapped triangle routine, float based, arbitrary texture size, to be optimized
* Made compilation under MacOSX 10.6 (Snow Leopard) possible, but breaks 10.4 (Tiger), to be fixed
15 роки тому
Sam Hocevar
bef81f8ea7
Mark dithered bitmap array as const.
15 роки тому
Sam Hocevar
fde9caa727
Include <stdio.h> in caca_conio.h to avoid errors when this header is
included after us.
15 роки тому
Sam Hocevar
48ecccd284
Make the libcaca color values an enum again.
15 роки тому
Sam Hocevar
e3faf62787
Since caca.h now exports variables, we need __declspec(dllimport), otherwise
they won't be seen by the linker when linking dynamically. Fix caca0.h
accordingly.
15 роки тому
Sam Hocevar
f145782381
Move conio functions to the main caca.h header, with their caca_conio_
prefix. The #defines remain in caca_conio.h.
15 роки тому
Sam Hocevar
1f5518f842
Rename caca_get_cursor_x() and caca_get_cursor_y() to caca_wherex() and
caca_wherey(), in order to match the old <conio.h> naming scheme.
15 роки тому
Sam Hocevar
4648ab11aa
Implement caca_vprintf() to allow third-party variadic functions to call us.
15 роки тому
Sam Hocevar
5269cad56c
Allow to temporarily disable dirty rectangle handling. This allows for huge
speedups when the calling application knows the dirty rectangle covered by
a complex operation.
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
ea99175a2f
Change the dirty rectangle API once again so that calling applications get
a more natural (x,y,w,h) 4-tuple to handle.
15 роки тому
Sam Hocevar
a6b98c2518
Change the dirty rectangle API so that it can handle several rectangles. The
inner implementation still only handles one dirty rectangle, but this way
we can prepare supporting applictions for the future.
15 роки тому
Sam Hocevar
a94a7e912c
Set up the architecture for dirty rectangles.
Dirty rectangles are an upcoming optimisation that will tell the output
drivers which portion of the canvas has been really modified since the
last blit.
15 роки тому
Ben Wiley Sittler
0b3b3e6d30
switch to weak aliases so it at least compiles on Mac OS X; note that the aliases do not actually work, so there is no cucul binary compatiblity in fact
16 роки тому
Ben Wiley Sittler
e24cd204b0
add missing CUCUL_* compatiblity constants
16 роки тому
Sam Hocevar
319cc69db3
Continue the libcaca/libcucul merge. Source and binary compatibility
are almost there.
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
725f29ee8e
* Put back all the shit in struct caca_event to avoid breaking existing
applications. I'll think of a migration path later.
17 роки тому
Sam Hocevar
b7a785ff38
* Implemented caca_set_display_driver() to change driver at runtime.
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
5b2b3e27db
* Implemented caca_get_display_driver_list(), unused yet.
17 роки тому
Sam Hocevar
9c72677ccf
* Add cucul_get_version() and caca_get_version() and updated C++ bindings
accordingly.
* The C++ test example no longer needs "config.h".
17 роки тому
Sam Hocevar
024a3713ca
* Minor documentation fix.
17 роки тому
Sam Hocevar
069f4775f0
* Tell doxygen to expand __class and __extern before parsing anything, so
we don’t end with those ugly identifiers in the documentation.
17 роки тому
Sam Hocevar
cdebb09b64
* Added MSVC project files for the C++ bindings and the C++ test.
17 роки тому
Sam Hocevar
5321386e24
* Damn, under Visual Studio it's _WIN32, not __WIN32__.
17 роки тому
Sam Hocevar
03ad8a42fd
* Allow caca_create_display()'s argument to be NULL. It will automatically
create a canvas when so.
* Add caca_get_canvas() to retrieve the cucul canvas.
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
52e9f2b13a
* Add proper __declspec(dllexport) tags for Win32 compilation.
* Manually export private libcaca symbols.
17 роки тому
Pascal Terjan
a6ac1d6255
* Slightly improved documentation
17 роки тому
Sam Hocevar
9c155f042d
* Renamed doxygen sections here and there to avoid embarassing side-effects
such as "man tutorial" showing the libcaca tutorial on Debian systems.
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
35ad2eda5a
* Added CACA_KEY_* values for Ctrl-C, Ctrl-V, etc.
18 роки тому
Sam Hocevar
17db9e489b
* Documented caca_event_t members.
18 роки тому
Sam Hocevar
23afd54c7c
* Fix enumeration layout in the manpage documentation.
18 роки тому
Sam Hocevar
bc5415d6a4
* Fixed libcaca prototypes so that all functions use the errno mechanism
and return a value.
18 роки тому
Sam Hocevar
0c1746c626
* Renamed the event data member "ucs4" to "utf32" for consistency
with "utf8".
18 роки тому