00001 // aaLine.h 00002 00003 /*************************************************************/ 00004 // 00005 // aaLine 00006 // 00007 // Draw antialiased lines 00008 // 00009 //------------------------------------------------------------- 00010 // 00011 // v 1.3 - 2007/08/16 - Colour interpolated AA stroked lines 00012 // v 1.2 - 2007/01/15 - Coloured AA stroked lines on unsigned char data instead 00013 // v 1.1 - 2007/01/06 - Coloured AA stroked lines 00014 // v 1.0 - 2006/04/19 - Initial release 00015 // 00016 // See LICENSE.txt for distribution and usage restrictions 00017 // Copyright (c) 2005-2007 Simon Chorley 00018 // www.mylaboratory.co.uk - greylab@mylaboratory.co.uk 00019 // 00020 /*************************************************************/ 00021 00022 ///Draws antialiased lines (Definitions) 00023 /** 00024 * Draws antialiased lines of various styles. 00025 * @file aaLine.h 00026 * @version 1.3 - 2007/08/16 00027 */ 00028 00029 00030 #ifndef _AALINE_H_ 00031 #define _AALINE_H_ 00032 00033 #include <fx.h> 00034 00035 // Antialiased line bewteen x1,y1 & x2,y2 in array data (data has x dimension: stride) 00036 void aaline(unsigned char *data, int stride, int x1, int x2, float y1, float y2); 00037 00038 00039 // Coloured antialiased line bewteen x1,y1 & x2,y2 in array data (data has x dimension: stride), colour r, g, b 00040 void aacolline(unsigned char *data, int stride, int x1, int x2, float y1, float y2, unsigned char r, unsigned char g, unsigned char b); 00041 00042 00043 // Coloured antialiased stroked line bewteen x1,y1 & x2,y2 in array data (data has x dimension: stride, width: w, height: h), colour: c 00044 void aacolstrokeline(unsigned char *data, int stride, int x1, int x2, float y1, float y2, FXColor c, int stroke, int w, int h); 00045 00046 00047 // Coloured antialiased stroked line bewteen x1,y1 & x2,y2 in array data (data has x dimension: stride, width: w, height: h), colour interpolated between sc and ec 00048 void aarampcolstrokeline(unsigned char *data, int stride, int x1, int x2, float y1, float y2, FXColor sc, FXColor ec, int stroke, int w, int h); 00049 00050 00051 #endif
1.5.3