|
LMMS
|
#include "lice.h"#include "lice_combine.h"#include "lice_extended.h"#include <math.h>#include <stdio.h>#include "lice_bezier.h"Classes | |
| class | __LICE_LineClassSimple< COMBFUNC > |
| class | __LICE_LineClass< COMBFUNC > |
| class | _LICE_Fill< COMBFUNC > |
| class | _LICE_FillFast< COMBFUNC > |
Macros | |
| #define | WDL_NO_DEFINE_MINMAX |
| #define | IGNORE_SCALING(mode) |
| #define | DO_AA_GAMMA_CORRECT 0 |
| #define | DOPIX(pout, r, g, b, a, ia) |
| #define | __LICE__ACTION(COMBFUNC) |
| #define | __LICE__ACTION(COMBFUNC) |
| #define | __LICE__ACTION(COMBFUNC) |
| #define | __LICE__ACTION(COMBFUNC) |
| #define | __LICE__ACTION(COMBFUNC) |
| #define | __LICE__ACTION(COMBFUNC) |
| #define | __LICE__ACTION(COMBFUNC) |
| #define | __LICE_SC_BEZ |
| #define | DOPIX(pout, r, g, b, a, ia) |
| #define | __LICE__ACTION(COMBFUNC) |
| #define | _X(i) |
| #define | _Y(i) |
| #define | __LICE__ACTION(COMBFUNC) |
Enumerations | |
| enum | { eOK = 0 , eXLo = 1 , eXHi = 2 , eYLo = 4 , eYHi = 8 } |
Functions | |
| template<class T> | |
| void | SWAP (T &a, T &b) |
| static int | OffscreenTest (int x, int y, int nX, int nY) |
| static bool | ClipLine (int *pX1, int *pY1, int *pX2, int *pY2, int nX, int nY) |
| template<class T> | |
| static int | OffscreenFTest (T x, T y, T w, T h) |
| template<class T> | |
| static bool | ClipFLine (T *x1, T *y1, T *x2, T *y2, int w, int h) |
| static void | LICE_DiagLineFAST (LICE_pixel *px, int span, int n, int xstep, int ystep, LICE_pixel color, bool aa) |
| static void | LICE_DottedVertLineFAST (LICE_IBitmap *dest, int x, int y1, int y2, LICE_pixel color) |
| static void | GetAAPxWeight (int err, int alpha, int *wt, int *iwt) |
| static void | GetAAPxWeightFAST (int err, int *wt, int *iwt) |
| void | LICE_Line (LICE_IBitmap *dest, int x1, int y1, int x2, int y2, LICE_pixel color, float alpha, int mode, bool aa) |
| void | LICE_FLine (LICE_IBitmap *dest, float x1, float y1, float x2, float y2, LICE_pixel color, float alpha, int mode, bool aa) |
| void | LICE_DashedLine (LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int pxon, int pxoff, LICE_pixel color, float alpha, int mode, bool aa) |
| bool | LICE_ClipLine (int *pX1, int *pY1, int *pX2, int *pY2, int xLo, int yLo, int xHi, int yHi) |
| bool | LICE_ClipFLine (float *px1, float *py1, float *px2, float *py2, float xlo, float ylo, float xhi, float yhi) |
| static void | DoBezierFillSegment (LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int yfill, LICE_pixel color, float alpha, int mode) |
| static void | DoBezierFillSegmentX (LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int xfill, LICE_pixel color, float alpha, int mode) |
| void | LICE_DrawQBezier (LICE_IBitmap *dest, double xstart, double ystart, double xctl, double yctl, double xend, double yend, LICE_pixel color, float alpha, int mode, bool aa, double tol) |
| int | LICE_CBezPrep (int dest_w, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, double tol, bool xbasis, double *ax, double *bx, double *cx, double *dx, double *ay, double *by, double *cy, double *dy, double *xlo, double *xhi, double *ylo, double *yhi, double *tlo, double *thi) |
| void | LICE_DrawCBezier (LICE_IBitmap *dest, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, LICE_pixel color, float alpha, int mode, bool aa, double tol) |
| void | LICE_DrawThickCBezier (LICE_IBitmap *dest, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, LICE_pixel color, float alpha, int mode, int wid, double tol) |
| void | LICE_FillCBezier (LICE_IBitmap *dest, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, int yfill, LICE_pixel color, float alpha, int mode, double tol) |
| void | LICE_FillCBezierX (LICE_IBitmap *dest, double xstart, double ystart, double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend, int xfill, LICE_pixel color, float alpha, int mode, double tol) |
| void | LICE_DrawRect (LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel color, float alpha, int mode) |
| void | LICE_BorderedRect (LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel bgcolor, LICE_pixel fgcolor, float alpha, int mode) |
| static double | FindXOnSegment (int x1, int y1, int x2, int y2, int ty) |
| void | LICE_FillTrapezoidF (LICE_IBitmap *dest, double fx1a, double fx1b, int y1, double fx2a, double fx2b, int y2, LICE_pixel color, float alpha, int mode) |
| void | LICE_FillTrapezoid (LICE_IBitmap *dest, int x1a, int x1b, int y1, int x2a, int x2b, int y2, LICE_pixel color, float alpha, int mode) |
| static int | _ysort (const void *a, const void *b) |
| static int | FindNextEdgeVertex (int *xy, int a, int n, int dir) |
| void | LICE_FillConvexPolygon (LICE_IBitmap *dest, const int *x, const int *y, int npoints, LICE_pixel color, float alpha, int mode) |
| void | LICE_FillTriangle (LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int x3, int y3, LICE_pixel color, float alpha, int mode) |
| void | LICE_ThickFLine (LICE_IBitmap *dest, double x1, double y1, double x2, double y2, LICE_pixel color, float alpha, int mode, int wid) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE__ACTION | ( | COMBFUNC | ) |
| #define __LICE_SC_BEZ |
| #define DO_AA_GAMMA_CORRECT 0 |
| #define IGNORE_SCALING | ( | mode | ) |
| #define WDL_NO_DEFINE_MINMAX |
|
static |
|
static |
| void LICE_BorderedRect | ( | LICE_IBitmap * | dest, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| LICE_pixel | bgcolor, | ||
| LICE_pixel | fgcolor, | ||
| float | alpha, | ||
| int | mode ) |
| int LICE_CBezPrep | ( | int | dest_w, |
| double | xstart, | ||
| double | ystart, | ||
| double | xctl1, | ||
| double | yctl1, | ||
| double | xctl2, | ||
| double | yctl2, | ||
| double | xend, | ||
| double | yend, | ||
| double | tol, | ||
| bool | xbasis, | ||
| double * | ax, | ||
| double * | bx, | ||
| double * | cx, | ||
| double * | dx, | ||
| double * | ay, | ||
| double * | by, | ||
| double * | cy, | ||
| double * | dy, | ||
| double * | xlo, | ||
| double * | xhi, | ||
| double * | ylo, | ||
| double * | yhi, | ||
| double * | tlo, | ||
| double * | thi ) |
| bool LICE_ClipFLine | ( | float * | px1, |
| float * | py1, | ||
| float * | px2, | ||
| float * | py2, | ||
| float | xlo, | ||
| float | ylo, | ||
| float | xhi, | ||
| float | yhi ) |
| bool LICE_ClipLine | ( | int * | pX1, |
| int * | pY1, | ||
| int * | pX2, | ||
| int * | pY2, | ||
| int | xLo, | ||
| int | yLo, | ||
| int | xHi, | ||
| int | yHi ) |
| void LICE_DashedLine | ( | LICE_IBitmap * | dest, |
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | pxon, | ||
| int | pxoff, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| bool | aa ) |
|
inlinestatic |
|
inlinestatic |
| void LICE_DrawCBezier | ( | LICE_IBitmap * | dest, |
| double | xstart, | ||
| double | ystart, | ||
| double | xctl1, | ||
| double | yctl1, | ||
| double | xctl2, | ||
| double | yctl2, | ||
| double | xend, | ||
| double | yend, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| bool | aa, | ||
| double | tol ) |
| void LICE_DrawQBezier | ( | LICE_IBitmap * | dest, |
| double | xstart, | ||
| double | ystart, | ||
| double | xctl, | ||
| double | yctl, | ||
| double | xend, | ||
| double | yend, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| bool | aa, | ||
| double | tol ) |
| void LICE_DrawRect | ( | LICE_IBitmap * | dest, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode ) |
| void LICE_DrawThickCBezier | ( | LICE_IBitmap * | dest, |
| double | xstart, | ||
| double | ystart, | ||
| double | xctl1, | ||
| double | yctl1, | ||
| double | xctl2, | ||
| double | yctl2, | ||
| double | xend, | ||
| double | yend, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| int | wid, | ||
| double | tol ) |
| void LICE_FillCBezier | ( | LICE_IBitmap * | dest, |
| double | xstart, | ||
| double | ystart, | ||
| double | xctl1, | ||
| double | yctl1, | ||
| double | xctl2, | ||
| double | yctl2, | ||
| double | xend, | ||
| double | yend, | ||
| int | yfill, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| double | tol ) |
| void LICE_FillCBezierX | ( | LICE_IBitmap * | dest, |
| double | xstart, | ||
| double | ystart, | ||
| double | xctl1, | ||
| double | yctl1, | ||
| double | xctl2, | ||
| double | yctl2, | ||
| double | xend, | ||
| double | yend, | ||
| int | xfill, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| double | tol ) |
| void LICE_FillConvexPolygon | ( | LICE_IBitmap * | dest, |
| const int * | x, | ||
| const int * | y, | ||
| int | npoints, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode ) |
| void LICE_FillTrapezoid | ( | LICE_IBitmap * | dest, |
| int | x1a, | ||
| int | x1b, | ||
| int | y1, | ||
| int | x2a, | ||
| int | x2b, | ||
| int | y2, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode ) |
| void LICE_FillTrapezoidF | ( | LICE_IBitmap * | dest, |
| double | fx1a, | ||
| double | fx1b, | ||
| int | y1, | ||
| double | fx2a, | ||
| double | fx2b, | ||
| int | y2, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode ) |
| void LICE_FillTriangle | ( | LICE_IBitmap * | dest, |
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | x3, | ||
| int | y3, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode ) |
| void LICE_FLine | ( | LICE_IBitmap * | dest, |
| float | x1, | ||
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| bool | aa ) |
| void LICE_Line | ( | LICE_IBitmap * | dest, |
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| bool | aa ) |
| void LICE_ThickFLine | ( | LICE_IBitmap * | dest, |
| double | x1, | ||
| double | y1, | ||
| double | x2, | ||
| double | y2, | ||
| LICE_pixel | color, | ||
| float | alpha, | ||
| int | mode, | ||
| int | wid ) |
|
static |
|
inline |