Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
il y a 15 ans
Sam Hocevar
e0113ce8b7
Update logo in the PHP bindings.
il y a 15 ans
Sam Hocevar
1362d8e24f
Update my e-mail address everywhere.
il y a 15 ans
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.
il y a 15 ans
Sam Hocevar
644ee4a78a
Coding style: remove tabs and trailing spaces.
il y a 15 ans
Sam Hocevar
06ca07d381
Fix import/export related stuff I forgot to update in the Ruby and PHP bindings.
il y a 15 ans
Nicolas Vion
42fc449127
* Remove 'copy' attribute of RETURN_STRINGL in php binding of functions: caca_file_gets, caca_file_read
* Use RETVAL_STRINGL instead of RETURN_STRINGL in function caca_export_string
il y a 16 ans
Ben Wiley Sittler
1498e63f72
add a reset button, move usage to "stdout", and stop hyperlinking the
logo filename in the example
il y a 16 ans
Ben Wiley Sittler
ff6e92dfc8
allow a filename exactly matching the uploaded filename; give a better
error message when this does not work
il y a 16 ans
Ben Wiley Sittler
5e49dcc864
more copyright info
il y a 16 ans
Ben Wiley Sittler
dc821b8826
add more copyright info
il y a 16 ans
Ben Wiley Sittler
96a393f391
https should work too
il y a 16 ans
Ben Wiley Sittler
7e823f8ba8
obscure email addresses somewhat
il y a 16 ans
Ben Wiley Sittler
f02befd915
better argument handling, and allow logo-caca.png as a special file argument
il y a 16 ans
Ben Wiley Sittler
3a86d53fb2
fix case in example
il y a 16 ans
Ben Wiley Sittler
bea03b1b1b
now works as HTML
il y a 16 ans
Ben Wiley Sittler
8e859c7c0d
handle argument-parsing exceptions
il y a 16 ans
Ben Wiley Sittler
4c5f2a9098
more accurate error message
il y a 16 ans
Ben Wiley Sittler
872dd08617
clarify that this is a PHP port, not the original C program; return -1
when export fails, too
il y a 16 ans
Ben Wiley Sittler
8fa649ff3e
copy img2txt.php to www in preparation for htmlizing
il y a 16 ans
Ben Wiley Sittler
fc3775ca2a
remove workarounds since alpha works now (merged from ..)
il y a 16 ans
Ben Wiley Sittler
32e5ad4d05
hacked around the lack of a reasonable php getopt_long by writing a
new version in PHP. it seems to work, and is more flexible than the
getopt() found in PHP 5.3+.
il y a 16 ans
Ben Wiley Sittler
04e8348ea5
fix yet another bug i wrote :( -- be endian-neutral.
il y a 16 ans
Ben Wiley Sittler
d71ddf0f51
no more horrible hacks needed, since fixing the alpha mismatch in the C binding
il y a 16 ans
Ben Wiley Sittler
d0a08f2be2
do not bother with an extraneous fill, and don't create out.png
il y a 16 ans
Ben Wiley Sittler
79864c5541
fix endianness problem
il y a 16 ans
Ben Wiley Sittler
010c3b20bf
oops! fix problem i introduced in the previous commit
il y a 16 ans
Ben Wiley Sittler
f75f27aec8
fix impedence mismatch between libgd alpha (0 = opaque, 127 = transparent) and libcaca alpha (0 = transparent, 255 = opaque)
il y a 16 ans
Ben Wiley Sittler
309bf77215
copy img2txt.c to img2txt.php in preparation for phpizing
il y a 16 ans
Ben Wiley Sittler
bf59034786
convert to use PHP object layer similar to the C++ one used in its C++ predecessor, cxx/cxxtest.cpp; also change behavior and appearance to more closely match that version (perhaps, though, the changes should have been ported in the other direction instead...)
il y a 16 ans
Ben Wiley Sittler
d9d23767d4
default to $timeout = 0 in Display::getEvent()
il y a 16 ans
Ben Wiley Sittler
5626959bbc
fix some bugs and inconsistencies in the PHP object layer
il y a 16 ans
Ben Wiley Sittler
0b32c1d6eb
add a Libcaca class to the PHP class interface, parallel to the Libcaca class in the .NET interface; fix a bunch of whitespace inconsistencies
il y a 16 ans
Ben Wiley Sittler
8e65594567
add AnsiColor, EventType and EventKey constants parallel to the .NET ones
il y a 16 ans
Ben Wiley Sittler
d258b7e2a4
added missing constant CACA_KEY_UNKNOWN
il y a 16 ans
Ben Wiley Sittler
96b250cd2f
preliminary port of jylam and sam's test.cs to PHP using an early version of nico's caca.php; right now it looks in dirname($argv[0]) . "/.." for caca.php, which will need to be fixed once caca.php is installed in a php standard include directory
il y a 16 ans
Ben Wiley Sittler
41b52e7e94
copy test.cs to test.php in preparation for phpizing
il y a 16 ans
Ben Wiley Sittler
24ca7502e6
merge alpha fix from svn://svn.zoy.org/libcaca/libcaca/trunk/caca-php/examples/export.php@3287 into examples/www/export.php
il y a 16 ans
Ben Wiley Sittler
839457cc5d
use alpha in PNG export, since it is now required to get a correct PNG output image
il y a 16 ans
Ben Wiley Sittler
eb7b2bdda7
fix type in Canvas::drawLine; add a minimal class Event providing a
subset of the functionality of the .NET version; added Display::getEvent
similar to the .NET version; change Dither::bitmap to take a Canvas
object rather than a caca canvas resource as its first parameter; add
Font::Render and Font::getList methods parallel to the .NET version
il y a 16 ans
Ben Wiley Sittler
c1e1760ee4
use alpha channel in gd truecolor images -- note that the scale for
this is [0, 127], rather than [0, 255]; always free the temporary
pixels copy allocated in PHP_FUNCTION(caca_dither_bitmap); fix a typo
which caused PHP_FUNCTION(caca_set_display_title) to crash due to a
failed run-time binding to "caca_set_display" (the "_title" was
missing).
il y a 16 ans
Ben Wiley Sittler
14c4a66190
no border in old browsers, either.
il y a 16 ans
Ben Wiley Sittler
fe9bc1e97a
htmlification
il y a 16 ans
Ben Wiley Sittler
7ee83ef1cb
copy unicode.php to www in preparation for htmlizing
il y a 16 ans
Ben Wiley Sittler
912c12b68e
cli-only
il y a 16 ans
Ben Wiley Sittler
cefb7fb871
phpized
il y a 16 ans
Ben Wiley Sittler
f89341d18f
copy unicode.c to unicode.php in preparation for phpizing
il y a 16 ans
Ben Wiley Sittler
c503541dcb
htmlize
il y a 16 ans
Ben Wiley Sittler
b5701199d7
copy transform.php to www in preparation for htmlizing
il y a 16 ans
Ben Wiley Sittler
dd9fff4d60
PHPified
il y a 16 ans