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
16 years ago
Ben Wiley Sittler
04e8348ea5
fix yet another bug i wrote :( -- be endian-neutral.
16 years ago
Ben Wiley Sittler
79864c5541
fix endianness problem
16 years ago
Ben Wiley Sittler
010c3b20bf
oops! fix problem i introduced in the previous commit
16 years ago
Ben Wiley Sittler
f75f27aec8
fix impedence mismatch between libgd alpha (0 = opaque, 127 = transparent) and libcaca alpha (0 = transparent, 255 = opaque)
16 years ago
Ben Wiley Sittler
d258b7e2a4
added missing constant CACA_KEY_UNKNOWN
16 years ago
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).
16 years ago
Ben Wiley Sittler
e7305d8b68
fix typo in PHP binding of caca_set_Attr that caused segfault on linux; also remove workaround for spurious extra-argument requirement from two of the PHP examples
16 years ago
Nicolas Vion
5d98ca2e08
* Use proper Zend macro RETURN_STRINGL in caca_file_read, caca_files_gets,
caca_export_string
16 years ago
Nicolas Vion
4d358a3ee7
* Initializate variable "len" in caca_export_string
16 years ago
Nicolas Vion
c405f3505d
* Change message for phpinfo()
16 years ago
Nicolas Vion
a048effc03
* Add information about gd resources support in caca-php for phpinfo()
16 years ago
Nicolas Vion
bf40754bdd
* Check parameters number for functions that doesn't expect any parameter
16 years ago
Nicolas Vion
b166507cd7
* Available the compilation of caca-php without gd development files
16 years ago
Nicolas Vion
63a44b0b7a
* Add destructor for "caca_file" resources
16 years ago
Nicolas Vion
abbf2dd05b
* Improve php binding of caca_render_canvas
* Destroy php resource in caca_file_close
* Improve sample program render.php
16 years ago
Nicolas Vion
ca53d8f03c
* Add new php specific function caca_load_builtin_font(string name)
* Add php bindings for caca_get_dither_antialias_list, caca_render_canvas
* Add a new sample program examples/render.php
16 years ago
Nicolas Vion
0d8c061895
* Remove "_gd" suffix from dithering functions
* caca_dithering_bitmap can load palette from gd resource
* Remove caca_set_dither_palette_gd function
* Adapt sample program "dithering.php"
16 years ago
Nicolas Vion
6e13303e4d
* Add check after emalloc in caca_draw_thin_polyline
16 years ago
Nicolas Vion
a234a5971e
* Remove php function caca_create_event
* caca_get_event return false if type == CACA_EVENT_NONE otherwise return a new
php resource
* Adapt sample program demo.php
16 years ago
Nicolas Vion
d80c5b66b3
* Add indexed colors image support for dither with gd resources
16 years ago
Nicolas Vion
6462d00d2f
* Add php binding for 3 caca charset conversion functions
* Change php header for sample program "text.php"
16 years ago
Nicolas Vion
e08de251f8
* Add php binding for function "caca_set_dither_palette"
16 years ago
Nicolas Vion
cb9f4d661c
* Change type of the last argument of drawing function (from string to long)
* Adapt sample programs
16 years ago
Nicolas Vion
988c4912aa
* Add php binding for caca_draw_polyline and caca_draw_thin_polyline
* Add a sample program examples/polyline.php
16 years ago
Nicolas Vion
7f6e6d3fd8
* Add php binding for caca_load_font, caca_get_font_blocks, caca_put_figchar
* Add a working sample file examples/figfont.php
* Rename sample programs:
examples1.php > cacapig.php
drivers.php > cacainfo.php
16 years ago
Nicolas Vion
9a0b684557
* Add checks after emalloc()
* Add php binding for caca_file_gets
16 years ago
Nicolas Vion
77ff19864f
* Add php binding for functions: caca_file_write, caca_file_read
16 years ago
Nicolas Vion
f3cf74d37f
* Add php bindings for 9 functions
* Modify php bloc headers in samples programs
* Add list of import/export formats in examples/drivers.php
16 years ago
Nicolas Vion
e2fc23d7da
* Add a "caca_create_dither_gd" function that create the proper dither for a
given gd resource.
16 years ago
Nicolas Vion
468304b265
* Add working sample program dithering.php (open logo-caca.png with Gd and
render it with caca caca_dither_bitmap_gd)
* Add a function to fetch a buffer of gd pixels in php_caca.c
16 years ago
Nicolas Vion
905959d37e
* Fix a bug in caca_export_string
16 years ago
Nicolas Vion
ff2c8fddc9
* Improve function "caca_dither_bitmap_gd"
* Add php binding for "caca_create_dither"
* Add new sample program "dithering.php"
16 years ago
Nicolas Vion
a8e0322720
* Add a function "fetch_external_resource" that allows to fetch external php
resources such as gd resouces
* Add test for presence of gd development files in config.m4
* Rename php function caca_dither_bitmap in caca_dither_bitmap_gd
16 years ago
Nicolas Vion
b4337a6765
* Add php binding for 12 new fonctions
16 years ago
Nicolas Vion
2438781ee6
* Add php binding for functions: caca_get_dither_color, caca_set_dither_charset
caca_get_dither_algorithm
16 years ago
Nicolas Vion
e52449b14f
* Add binding for 7 new functions
* Add just_for_fun() function in sample program drivers.php
16 years ago
Nicolas Vion
400175be4f
* Add php binding for 15 new functions
* Add new sample program "examples/drivers.php"
16 years ago
Nicolas Vion
498970de64
* Improve function caca_export_string
16 years ago
Nicolas Vion
54e1e8b262
* Centralize caca's error managment (in macro RETURN_SUCCESS)
* Add binding for 2 new functions
* Fix a bug in examples/example1.php
16 years ago
Nicolas Vion
2bba9c4267
* Add php binding for 4 new functions
* Add "full" demo to "examples/demo.php"
16 years ago
Nicolas Vion
0a20917152
* Add php binding for 9 new functions
* Improve examples/demo.php
16 years ago
Nicolas Vion
24df44d186
* Add php bindings for functions: caca_draw_line & caca_draw_thin_line
* Create a new sample file demo.php (php port of demo.c)
16 years ago
Nicolas Vion
728d89c673
* Add Php binding for caca's functions: caca_get_event, caca_set_display_time
* Animate pink pig & add event managment in sample program "example1.php"
16 years ago
Nicolas Vion
f86a3d0c9b
* Add binding for 6 new caca's functions
* Add a nice php sample file examples/example1.php that shows a smart pink ping
16 years ago
Nicolas Vion
4172dc244f
* Add php binding for 8 new caca's functions
16 years ago
Nicolas Vion
2f251ec827
* Add php bindings for 13 new functions
16 years ago
Nicolas Vion
afdc455d8c
* Add php binding for 7 new caca's functions
16 years ago
Nicolas Vion
dd82fcd087
* Add flac support and some other nice features...
16 years ago
Nicolas Vion
5cf320ae24
* Add caca's php constants definition
* Add php binding for 13 new functions
16 years ago