Sam Hocevar
f1267fbd3c
Fix copyright headers so that the testsuite passes again.
преди 6 години
Yury Gribov
726ede6491
Hide private symbols (issue #33 ).
преди 6 години
Sam Hocevar
5f0ec215f8
Remove legacy code from 10 years ago.
преди 6 години
Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
преди 12 години
Sam Hocevar
28f4d43130
build: fix the OS X and Clang builds.
преди 12 години
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 години
Sam Hocevar
55af141873
caca: allow to define the CACA_STATIC macro to deactivate dllimport
specifiers; this is required for proper static link.
преди 12 години
Sam Hocevar
b2e484ffe0
build: fix Win32 build and allow to build Win64 binaries from Linux, and
ship the static library and includes too.
преди 12 години
Sam Hocevar
d736507785
build: fix copyright information.
преди 12 години
Sam Hocevar
00a285b11e
figfont: support setting the canvas width and smushing mode from the
calling application.
преди 12 години
Sam Hocevar
c822280896
Rename figfont into charfont. We will support far more than figfonts in
the future.
преди 13 години
Sam Hocevar
a1d0435da5
Move mygetopt() directly into libcaca, for use by other programs.
преди 14 години
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 години