Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
преди 12 години
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
644ee4a78a
Coding style: remove tabs and trailing spaces.
преди 15 години
Sam Hocevar
06ca07d381
Fix import/export related stuff I forgot to update in the Ruby and PHP bindings.
преди 15 години
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 години
Ben Wiley Sittler
04e8348ea5
fix yet another bug i wrote :( -- be endian-neutral.
преди 16 години
Ben Wiley Sittler
79864c5541
fix endianness problem
преди 16 години
Ben Wiley Sittler
010c3b20bf
oops! fix problem i introduced in the previous commit
преди 16 години
Ben Wiley Sittler
f75f27aec8
fix impedence mismatch between libgd alpha (0 = opaque, 127 = transparent) and libcaca alpha (0 = transparent, 255 = opaque)
преди 16 години
Ben Wiley Sittler
d258b7e2a4
added missing constant CACA_KEY_UNKNOWN
преди 16 години
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 години
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 години
Nicolas Vion
5d98ca2e08
* Use proper Zend macro RETURN_STRINGL in caca_file_read, caca_files_gets,
caca_export_string
преди 16 години
Nicolas Vion
4d358a3ee7
* Initializate variable "len" in caca_export_string
преди 16 години
Nicolas Vion
c405f3505d
* Change message for phpinfo()
преди 16 години
Nicolas Vion
a048effc03
* Add information about gd resources support in caca-php for phpinfo()
преди 16 години
Nicolas Vion
bf40754bdd
* Check parameters number for functions that doesn't expect any parameter
преди 16 години
Nicolas Vion
b166507cd7
* Available the compilation of caca-php without gd development files
преди 16 години
Nicolas Vion
63a44b0b7a
* Add destructor for "caca_file" resources
преди 16 години
Nicolas Vion
abbf2dd05b
* Improve php binding of caca_render_canvas
* Destroy php resource in caca_file_close
* Improve sample program render.php
преди 16 години
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 години
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 години
Nicolas Vion
6e13303e4d
* Add check after emalloc in caca_draw_thin_polyline
преди 16 години
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 години
Nicolas Vion
d80c5b66b3
* Add indexed colors image support for dither with gd resources
преди 16 години
Nicolas Vion
6462d00d2f
* Add php binding for 3 caca charset conversion functions
* Change php header for sample program "text.php"
преди 16 години
Nicolas Vion
e08de251f8
* Add php binding for function "caca_set_dither_palette"
преди 16 години
Nicolas Vion
cb9f4d661c
* Change type of the last argument of drawing function (from string to long)
* Adapt sample programs
преди 16 години
Nicolas Vion
988c4912aa
* Add php binding for caca_draw_polyline and caca_draw_thin_polyline
* Add a sample program examples/polyline.php
преди 16 години
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 години
Nicolas Vion
9a0b684557
* Add checks after emalloc()
* Add php binding for caca_file_gets
преди 16 години
Nicolas Vion
77ff19864f
* Add php binding for functions: caca_file_write, caca_file_read
преди 16 години
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 години
Nicolas Vion
e2fc23d7da
* Add a "caca_create_dither_gd" function that create the proper dither for a
given gd resource.
преди 16 години
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 години
Nicolas Vion
905959d37e
* Fix a bug in caca_export_string
преди 16 години
Nicolas Vion
ff2c8fddc9
* Improve function "caca_dither_bitmap_gd"
* Add php binding for "caca_create_dither"
* Add new sample program "dithering.php"
преди 16 години
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 години
Nicolas Vion
b4337a6765
* Add php binding for 12 new fonctions
преди 16 години
Nicolas Vion
2438781ee6
* Add php binding for functions: caca_get_dither_color, caca_set_dither_charset
caca_get_dither_algorithm
преди 16 години
Nicolas Vion
e52449b14f
* Add binding for 7 new functions
* Add just_for_fun() function in sample program drivers.php
преди 16 години
Nicolas Vion
400175be4f
* Add php binding for 15 new functions
* Add new sample program "examples/drivers.php"
преди 16 години
Nicolas Vion
498970de64
* Improve function caca_export_string
преди 16 години
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 години
Nicolas Vion
2bba9c4267
* Add php binding for 4 new functions
* Add "full" demo to "examples/demo.php"
преди 16 години
Nicolas Vion
0a20917152
* Add php binding for 9 new functions
* Improve examples/demo.php
преди 16 години
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 години
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 години
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 години
Nicolas Vion
4172dc244f
* Add php binding for 8 new caca's functions
преди 16 години