Ignore:
Timestamp:
Oct 26, 2008, 3:14:58 PM (12 years ago)
Author:
nico
Message:
  • Centralize caca's error managment (in macro RETURN_SUCCESS)
  • Add binding for 2 new functions
  • Fix a bug in examples/example1.php
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/demo.php

    r3109 r3110  
    11#!/usr/bin/php5
    22<?
     3/*
     4 *  demo.php      demo for libcaca php binding
     5 *  Copyright (c) 2008 Nicolas Vion <nico@yojik.eu>
     6 *
     7 *  This file is a Php port of the official libcaca's sample program "demo.c"
     8 *  which is:
     9 *  Copyright (c) 2003 Sam Hocevar <sam@zoy.org>
     10 *
     11 *  This program is free software. It comes without any warranty, to
     12 *  the extent permitted by applicable law. You can redistribute it
     13 *  and/or modify it under the terms of the Do What The Fuck You Want
     14 *  To Public License, Version 2, as published by Sam Hocevar. See
     15 *  http://sam.zoy.org/wtfpl/COPYING for more details.
     16 */
    317
    418function main() {
     
    1327        }
    1428
    15 
    1629        caca_set_display_time($dp, 40000);
    1730
     
    2235        display_menu($cv, $dp, $bounds, $outline);
    2336        caca_refresh_display($dp);
    24 
    2537
    2638        /* Go ! */
Note: See TracChangeset for help on using the changeset viewer.