Rev 292 | Rev 296 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*******************************************************************************
* draw.h - include file for libggi-based drawing on the GNU/Linux framebuffer.
*
* Copyright (c) 2006, Ira W. Snyder (devel@irasnyder.com)
******************************************************************************/
#ifndef DRAW_H
#define DRAW_H
#include <ggi/ggi.h>
/* Colors */
#define BLACK 0
#define RED 1
#define GREEN 2
#define BLUE 3
#define WHITE 4
static ggi_visual_t vis;
static ggi_color palette[5];
/* Setup functions */
extern void draw_init ();
extern void draw_close ();
/* Drawing functions */
extern void draw_clearscreen ();
extern void draw_putpixel (int x, int y, int color);
extern void draw_box (int x, int y, int width, int height, int color);
extern void draw_line (int x1, int y1, int x2, int y2, int color);
extern void draw_putc (int x, int y, char c, int color);
extern void draw_puts (int x, int y, const char *str, int color);
#endif