Ignore:
Timestamp:
Mar 27, 2006, 11:37:52 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Removed the network driver and replaced it with a cacaserver executable that has all the functionality, except it does not work yet (the stdin reading routine is missing).
Location:
libcaca/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src

    • Property svn:ignore
      •  

        old new  
        99cacaplas
        1010cacaplay
         11cacaserver
        1112*.exe
  • libcaca/trunk/src/cacaplas.c

    r681 r703  
    1616
    1717#if !defined(__KERNEL__)
     18#   include <stdio.h>
    1819#   include <math.h>
    1920#   ifndef M_PI
     
    4041int main (int argc, char **argv)
    4142{
    42     cucul_t *qq; caca_t *kk;
     43    cucul_t *qq, *qq2, *mask; caca_t *kk;
    4344    unsigned int red[256], green[256], blue[256], alpha[256];
    4445    double r[3], R[6];
     
    5455
    5556    caca_set_delay(kk, 20000);
     57
     58    qq2 = cucul_create(cucul_get_width(qq), cucul_get_height(qq));
     59    mask = cucul_create(cucul_get_width(qq), cucul_get_height(qq));
    5660
    5761    /* Fill various tables */
     
    119123                          cucul_get_width(qq) - 1, cucul_get_height(qq) - 1,
    120124                          bitmap, screen);
     125
     126        cucul_blit(qq2, 0, 0, qq, NULL);
     127        cucul_invert(qq2);
     128
     129        cucul_clear(mask);
     130        cucul_set_color(mask, CUCUL_COLOR_WHITE, CUCUL_COLOR_WHITE);
     131        cucul_fill_ellipse(mask, (1.0 + 0.7 * sin(0.05 * (float)frame))
     132                                   * 0.5 * cucul_get_width(mask),
     133                                 (1.0 + 0.7 * cos(0.05 * (float)frame))
     134                                   * 0.5 * cucul_get_height(mask),
     135                                 cucul_get_width(mask) / 3,
     136                                 cucul_get_height(mask) / 3, "#");
     137
     138        cucul_blit(qq, 0, 0, qq2, mask);
     139
    121140        cucul_set_color(qq, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLUE);
    122141        cucul_putstr(qq, cucul_get_width(qq) - 30, cucul_get_height(qq) - 2,
Note: See TracChangeset for help on using the changeset viewer.