/*========================================================================= Compatibility headers for Z88DK GFX - a small graphics library Copyright (C) 2004 Rafael de Oliveira Jannone Contact the author: by e-mail : rafael AT jannone DOT org homepage : http://jannone.org/gfxlib ICQ UIN : 10115284 $Id: line.h,v 1.4 2009-04-15 21:00:57 stefano Exp $ =========================================================================*/ /*! \file line.h \brief line drawing functions */ // LINE.H : line drawing functions (header) /* === WARNING == This is a work-in-progress, meaning that most of this code is unstable and it's subject to future changes. Also, most of it is very hackish, not properly cleaned up nor tested. === WARNING == */ #ifndef MSXLINE_H #define MSXLINE_H #include // set point at the given position on vram #define pset(x,y) plot(x,y) // Draw a line on a surface #define surface_line(s,x1,y1,x2,y2) surface_draw(s,x1,y1,x2,y2) // Draw a line on video #define line(x1,y1,x2,y2) draw(x1,y1,x2,y2) // Draw a line on video (was a slow and smaller version, now it is the same) #define line_slow(x1,y1,x2,y2) draw(x1,y1,x2,y2) #endif