Sam Hocevar
f1267fbd3c
Fix copyright headers so that the testsuite passes again.
6 years ago
Yury Gribov
726ede6491
Hide private symbols (issue #33 ).
6 years ago
Sam Hocevar
5f0ec215f8
Remove legacy code from 10 years ago.
6 years ago
Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
12 years ago
Sam Hocevar
28f4d43130
build: fix the OS X and Clang builds.
12 years ago
Sam Hocevar
02bb261647
win32: define a custom sprintf_s() weak symbol. The VS2010 runtime does not
provide the deprecated snprintf(). The mingw32 runtime does not provide the
MS-specific sprintf_s(). Mingw-w64 copes with both. So we switch to sprintf_s
but also provide it as a weak symbol so that mingw32 does not complain.
12 years ago
Sam Hocevar
55af141873
caca: allow to define the CACA_STATIC macro to deactivate dllimport
specifiers; this is required for proper static link.
12 years ago
Sam Hocevar
b2e484ffe0
build: fix Win32 build and allow to build Win64 binaries from Linux, and
ship the static library and includes too.
12 years ago
Sam Hocevar
d736507785
build: fix copyright information.
12 years ago
Sam Hocevar
00a285b11e
figfont: support setting the canvas width and smushing mode from the
calling application.
12 years ago
Sam Hocevar
c822280896
Rename figfont into charfont. We will support far more than figfonts in
the future.
13 years ago
Sam Hocevar
a1d0435da5
Move mygetopt() directly into libcaca, for use by other programs.
14 years ago
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
15 years ago
Sam Hocevar
51cf438fb0
Fix dllexport usage, courtesy of Carlo Bramini in #48 .
15 years ago
Sam Hocevar
6841aca387
Only define CACA_ALIAS with gcc > 3 (instead of >= 3). Patch courtesy of
Carlo Bramini. Addresses #48 .
15 years ago
Sam Hocevar
81f9abd203
Document file functions and fix a few issues here and there.
15 years ago
Sam Hocevar
231c33acce
Fix an alignment issue in caca_get_canvas_chars() and caca_get_canvas_attrs().
Fixes #41 .
15 years ago
Sam Hocevar
6d526ea629
Implement caca_unset_attr() and caca_toggle_attr(). Fixes #7 .
15 years ago
Jean-Yves Lamoureux
2adebb531b
* Make caca_fill_triangle_textured use less arguments, examples/trifiller modified accordingly
15 years ago
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 years ago
Sam Hocevar
bef81f8ea7
Mark dithered bitmap array as const.
15 years ago
Sam Hocevar
fde9caa727
Include <stdio.h> in caca_conio.h to avoid errors when this header is
included after us.
15 years ago
Sam Hocevar
48ecccd284
Make the libcaca color values an enum again.
15 years ago
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 years ago
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 years ago
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 years ago
Sam Hocevar
4648ab11aa
Implement caca_vprintf() to allow third-party variadic functions to call us.
15 years ago
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 years ago
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 years ago
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 years ago
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 years ago
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 years ago
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 years ago
Ben Wiley Sittler
e24cd204b0
add missing CUCUL_* compatiblity constants
16 years ago
Sam Hocevar
319cc69db3
Continue the libcaca/libcucul merge. Source and binary compatibility
are almost there.
16 years ago
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 years ago
Sam Hocevar
4ea785f818
* Remove all unsigned ints from exported functions. Signed arithmetic is
far better for error checking.
16 years ago
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 years ago
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 years ago
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 years ago
Sam Hocevar
b7a785ff38
* Implemented caca_set_display_driver() to change driver at runtime.
17 years ago
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 years ago
Sam Hocevar
5b2b3e27db
* Implemented caca_get_display_driver_list(), unused yet.
17 years ago
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 years ago
Sam Hocevar
024a3713ca
* Minor documentation fix.
17 years ago
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 years ago
Sam Hocevar
cdebb09b64
* Added MSVC project files for the C++ bindings and the C++ test.
17 years ago
Sam Hocevar
5321386e24
* Damn, under Visual Studio it's _WIN32, not __WIN32__.
17 years ago
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 years ago
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 years ago