libcaca  0.99.beta19
About: libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals (something like an advanced AAlib library).
  Fossies Dox: libcaca-0.99.beta19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

cacadraw.c File Reference
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "caca.h"
Include dependency graph for cacadraw.c:

Go to the source code of this file.

Functions

static int refresh_screen (void)
 
int main (int argc, char **argv)
 

Variables

static caca_canvas_tcv
 
static caca_canvas_timage
 
static caca_display_tdp
 
static int x = 0
 
static int y = 0
 

Function Documentation

◆ main()

◆ refresh_screen()

static int refresh_screen ( void  )
static

Definition at line 140 of file cacadraw.c.

References caca_blit(), caca_clear_canvas(), CACA_DEFAULT, caca_refresh_display(), caca_set_color_ansi(), cv, dp, x, and y.

Referenced by main().

Variable Documentation

◆ cv

caca_canvas_t* cv
static

Definition at line 25 of file cacadraw.c.

Referenced by main(), and refresh_screen().

◆ dp

caca_display_t* dp
static

Definition at line 26 of file cacadraw.c.

Referenced by main(), and refresh_screen().

◆ image

caca_canvas_t * image
static

Definition at line 25 of file cacadraw.c.

Referenced by load_image().

◆ x

int x = 0
static

Definition at line 27 of file cacadraw.c.

Referenced by __caca0_sqrt(), _import_ansi(), _import_bin(), _import_text(), add_dirty_rect(), Dither::Bitmap(), Canvas::Blit(), org.zoy.caca.Canvas::blit(), blit(), Caca.Canvas::Blit(), caca_add_dirty_rect(), caca_blit(), caca_conio_gotoxy(), caca_dither_bitmap(), caca_draw_box(), caca_draw_circle(), caca_draw_cp437_box(), caca_draw_ellipse(), caca_draw_polyline(), caca_draw_thin_box(), caca_draw_thin_ellipse(), caca_draw_thin_polyline(), caca_export_area_to_memory(), caca_fill_box(), caca_fill_ellipse(), caca_fill_triangle(), caca_fill_triangle_textured_l(), caca_flop(), caca_flush_figlet(), caca_get_attr(), caca_get_char(), caca_get_dirty_rect(), caca_getchar(), caca_gotoxy(), caca_import_area_from_file(), caca_import_area_from_memory(), caca_printf(), caca_put_attr(), caca_put_char(), caca_put_figchar(), caca_put_str(), caca_putchar(), caca_remove_dirty_rect(), caca_render_canvas(), caca_resize(), caca_rotate_left(), caca_rotate_right(), caca_set_canvas_boundaries(), caca_set_canvas_handle(), caca_stretch_left(), caca_stretch_right(), caca_vprintf(), clip_bits(), cprintf(), create_ball(), cucul_putstr(), dirty_rect(), distance(), dither_bitmap(), org.zoy.caca.Canvas::ditherBitmap(), Caca.Canvas::ditherBitmap(), do_plasma(), DemoCanvas::Draw(), draw_box(), draw_checkers(), draw_circle(), draw_cp437_box(), draw_ellipse(), draw_line(), draw_polyline(), draw_thin_box(), draw_thin_ellipse(), draw_thin_polyline(), Canvas::drawBox(), org.zoy.caca.Canvas::drawBox(), Caca.Canvas::drawBox(), Canvas::drawCircle(), org.zoy.caca.Canvas::drawCircle(), Caca.Canvas::drawCircle(), Canvas::drawCP437Box(), org.zoy.caca.Canvas::drawCp437Box(), Caca.Canvas::drawCp437Box(), Canvas::drawEllipse(), org.zoy.caca.Canvas::drawEllipse(), Caca.Canvas::drawEllipse(), Canvas::drawPolyline(), org.zoy.caca.Canvas::drawPolyline(), Canvas::drawThinBox(), org.zoy.caca.Canvas::drawThinBox(), Caca.Canvas::drawThinBox(), Canvas::drawThinEllipse(), org.zoy.caca.Canvas::drawThinEllipse(), Caca.Canvas::drawThinEllipse(), Canvas::drawThinPolyline(), org.zoy.caca.Canvas::drawThinPolyline(), ellipsepoints(), export_area_to_memory(), export_bbfr(), export_html(), export_html3(), export_ps(), export_svg(), export_troff(), fill_box(), fill_ellipse(), Canvas::fillBox(), org.zoy.caca.Canvas::fillBox(), Caca.Canvas::fillBox(), Canvas::fillEllipse(), org.zoy.caca.Canvas::fillEllipse(), Caca.Canvas::fillEllipse(), fix_glyph(), gammapow(), get_attr(), get_char(), get_rgba_default(), Canvas::getAttr(), Caca.Canvas::getAttr(), org.zoy.caca.Canvas::getAttribute(), Canvas::getChar(), org.zoy.caca.Canvas::getChar(), Caca.Canvas::getChar(), gotoxy(), hton16(), hton32(), import_area_from_file(), import_area_from_memory(), import_caca(), Java_org_zoy_caca_Canvas_blitCanvas(), Java_org_zoy_caca_Canvas_canvasDitherBitmap(), Java_org_zoy_caca_Canvas_canvasDrawBox(), Java_org_zoy_caca_Canvas_canvasDrawCircle(), Java_org_zoy_caca_Canvas_canvasDrawCp437Box(), Java_org_zoy_caca_Canvas_canvasDrawEllipse(), Java_org_zoy_caca_Canvas_canvasDrawThinBox(), Java_org_zoy_caca_Canvas_canvasDrawThinEllipse(), Java_org_zoy_caca_Canvas_canvasFillBox(), Java_org_zoy_caca_Canvas_canvasFillEllipse(), Java_org_zoy_caca_Canvas_getCanvasAttribute(), Java_org_zoy_caca_Canvas_getCanvasChar(), Java_org_zoy_caca_Canvas_putCanvasAttribute(), Java_org_zoy_caca_Canvas_putCanvasChar(), Java_org_zoy_caca_Canvas_putCanvasString(), Java_org_zoy_caca_Canvas_setCanvasBoundaries(), Java_org_zoy_caca_Canvas_setCursorXY(), Java_org_zoy_caca_Canvas_setHandleXY(), langton(), main(), matrix(), metaballs(), moire(), plasma(), print_help(), Canvas::Printf(), org.zoy.caca.Canvas::put(), put_attr(), put_char(), put_disc(), put_str(), Caca.Canvas::putAttr(), org.zoy.caca.Canvas::putAttribute(), Canvas::putChar(), Caca.Canvas::putChar(), Canvas::putStr(), Caca.Canvas::putStr(), refresh_screen(), remove_dirty_rect(), Font::renderCanvas(), rotozoom(), set_canvas_boundaries(), set_canvas_handle(), Canvas::setBoundaries(), org.zoy.caca.Canvas::setBoundaries(), Caca.Canvas::setBoundaries(), org.zoy.caca.Canvas.Cursor::setXY(), org.zoy.caca.Canvas.Handle::setXY(), sprintu16(), sprintu32(), sq(), sscanu16(), sscanu32(), testcircle(), and transition().

◆ y

int y = 0
static

Definition at line 27 of file cacadraw.c.

Referenced by _import_ansi(), _import_bin(), _import_text(), add_dirty_rect(), Dither::Bitmap(), Canvas::Blit(), org.zoy.caca.Canvas::blit(), blit(), Caca.Canvas::Blit(), caca_add_dirty_rect(), caca_blit(), caca_conio_gotoxy(), caca_dither_bitmap(), caca_draw_box(), caca_draw_circle(), caca_draw_cp437_box(), caca_draw_ellipse(), caca_draw_polyline(), caca_draw_thin_box(), caca_draw_thin_ellipse(), caca_draw_thin_polyline(), caca_export_area_to_memory(), caca_fill_box(), caca_fill_ellipse(), caca_fill_triangle(), caca_fill_triangle_textured_l(), caca_flip(), caca_flush_figlet(), caca_get_attr(), caca_get_char(), caca_get_dirty_rect(), caca_getchar(), caca_gotoxy(), caca_import_area_from_file(), caca_import_area_from_memory(), caca_printf(), caca_put_attr(), caca_put_char(), caca_put_figchar(), caca_put_str(), caca_putchar(), caca_remove_dirty_rect(), caca_render_canvas(), caca_resize(), caca_rotate_180(), caca_rotate_left(), caca_rotate_right(), caca_set_canvas_boundaries(), caca_set_canvas_handle(), caca_stretch_left(), caca_stretch_right(), caca_vprintf(), clip_bits(), cprintf(), create_ball(), cucul_putstr(), dirty_rect(), dither_bitmap(), org.zoy.caca.Canvas::ditherBitmap(), Caca.Canvas::ditherBitmap(), do_plasma(), DemoCanvas::Draw(), draw_box(), draw_checkers(), draw_circle(), draw_cp437_box(), draw_ellipse(), draw_line(), draw_polyline(), draw_thin_box(), draw_thin_ellipse(), draw_thin_polyline(), Canvas::drawBox(), org.zoy.caca.Canvas::drawBox(), Caca.Canvas::drawBox(), Canvas::drawCircle(), org.zoy.caca.Canvas::drawCircle(), Caca.Canvas::drawCircle(), Canvas::drawCP437Box(), org.zoy.caca.Canvas::drawCp437Box(), Caca.Canvas::drawCp437Box(), Canvas::drawEllipse(), org.zoy.caca.Canvas::drawEllipse(), Caca.Canvas::drawEllipse(), Canvas::drawPolyline(), org.zoy.caca.Canvas::drawPolyline(), Canvas::drawThinBox(), org.zoy.caca.Canvas::drawThinBox(), Caca.Canvas::drawThinBox(), Canvas::drawThinEllipse(), org.zoy.caca.Canvas::drawThinEllipse(), Caca.Canvas::drawThinEllipse(), Canvas::drawThinPolyline(), org.zoy.caca.Canvas::drawThinPolyline(), ellipsepoints(), export_area_to_memory(), export_bbfr(), export_html(), export_html3(), export_ps(), export_svg(), export_troff(), fill_box(), fill_ellipse(), Canvas::fillBox(), org.zoy.caca.Canvas::fillBox(), Caca.Canvas::fillBox(), Canvas::fillEllipse(), org.zoy.caca.Canvas::fillEllipse(), Caca.Canvas::fillEllipse(), fix_glyph(), gammapow(), get_attr(), get_char(), get_rgba_default(), Canvas::getAttr(), Caca.Canvas::getAttr(), org.zoy.caca.Canvas::getAttribute(), Canvas::getChar(), org.zoy.caca.Canvas::getChar(), Caca.Canvas::getChar(), gotoxy(), import_area_from_file(), import_area_from_memory(), import_caca(), Java_org_zoy_caca_Canvas_blitCanvas(), Java_org_zoy_caca_Canvas_canvasDitherBitmap(), Java_org_zoy_caca_Canvas_canvasDrawBox(), Java_org_zoy_caca_Canvas_canvasDrawCircle(), Java_org_zoy_caca_Canvas_canvasDrawCp437Box(), Java_org_zoy_caca_Canvas_canvasDrawEllipse(), Java_org_zoy_caca_Canvas_canvasDrawThinBox(), Java_org_zoy_caca_Canvas_canvasDrawThinEllipse(), Java_org_zoy_caca_Canvas_canvasFillBox(), Java_org_zoy_caca_Canvas_canvasFillEllipse(), Java_org_zoy_caca_Canvas_getCanvasAttribute(), Java_org_zoy_caca_Canvas_getCanvasChar(), Java_org_zoy_caca_Canvas_putCanvasAttribute(), Java_org_zoy_caca_Canvas_putCanvasChar(), Java_org_zoy_caca_Canvas_putCanvasString(), Java_org_zoy_caca_Canvas_setCanvasBoundaries(), Java_org_zoy_caca_Canvas_setCursorXY(), Java_org_zoy_caca_Canvas_setHandleXY(), langton(), main(), matrix(), metaballs(), moire(), plasma(), print_help(), Canvas::Printf(), org.zoy.caca.Canvas::put(), put_attr(), put_char(), put_disc(), put_str(), Caca.Canvas::putAttr(), org.zoy.caca.Canvas::putAttribute(), Canvas::putChar(), Caca.Canvas::putChar(), Canvas::putStr(), Caca.Canvas::putStr(), refresh_screen(), remove_dirty_rect(), Font::renderCanvas(), rotozoom(), set_canvas_boundaries(), set_canvas_handle(), Canvas::setBoundaries(), org.zoy.caca.Canvas::setBoundaries(), Caca.Canvas::setBoundaries(), org.zoy.caca.Canvas.Cursor::setXY(), org.zoy.caca.Canvas.Handle::setXY(), testcircle(), and transition().