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