Logo Search packages:      
Sourcecode: libcaca version File versions  Download package

caca.c File Reference


Detailed Description

Main libcaca functions.

Version:
$Id: caca.c 258 2004-01-26 10:52:30Z sam $
Author:
Sam Hocevar <sam@zoy.org> This file contains the main functions used by libcaca applications to initialise the library, get the screen properties, set the framerate and so on.

Definition in file caca.c.

#include "config.h"
#include <stdlib.h>
#include <string.h>
#include "caca.h"
#include "caca_internals.h"

Go to the source code of this file.

Functions

void caca_end (void)
 Uninitialise libcaca.
char const * caca_get_color_name (enum caca_color color)
 Translate a colour index into the colour's name.
enum caca_feature caca_get_feature (enum caca_feature feature)
 Get the current value of a feature.
char const * caca_get_feature_name (enum caca_feature feature)
 Translate a feature value into the feature's name.
unsigned int caca_get_height (void)
 Get the screen height.
unsigned int caca_get_width (void)
 Get the screen width.
int caca_init (void)
 Initialise libcaca.
static void caca_init_driver (void)
static void caca_init_features (void)
static void caca_init_terminal (void)
void caca_set_feature (enum caca_feature feature)
 Set a feature.

Variables

enum caca_driver _caca_driver


Generated by  Doxygen 1.6.0   Back to index