/* Drawline, support for rendering antialiased lines LCARS 24 */

/* This program is free software. You may redistribute and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License or
 * (at your option) any later version.
 *
 * Refer to the file C:\LCARS24\DATA\COPYING.TXT for details.
 */


#define sgn(x) ((x<0)?-1:((x>0)?1:0)) /* to return the sign of a number */

#ifndef DRAWLINE_H
#define DRAWLINE_H

#include "lcars24.h"
#include "lccolor.h"

int PutGhostPixel(int x, int y, int color, int range, int step);
int UpRight(BITMAP *bmp, float x1, float y1, float x2, float y2, int color, int width);
int DownRight(BITMAP *bmp, float x1, float y1, float x2, float y2, int color, int width);
int DrawLine(BITMAP *bmp, int x1, int y1, int x2, int y2, int color, int width);


#endif

