Started the API conversion for Direct2D.
This commit is contained in:
parent
1ffb2abe1d
commit
8b80a1772b
|
@ -39,6 +39,7 @@ struct uiAreaDrawParams {
|
||||||
// TODO proper sources
|
// TODO proper sources
|
||||||
// TODO dotting/dashing
|
// TODO dotting/dashing
|
||||||
|
|
||||||
|
typedef struct uiDrawPath uiDrawPath;
|
||||||
typedef struct uiDrawStrokeParams uiDrawStrokeParams;
|
typedef struct uiDrawStrokeParams uiDrawStrokeParams;
|
||||||
typedef enum uiDrawLineCap uiDrawLineCap;
|
typedef enum uiDrawLineCap uiDrawLineCap;
|
||||||
typedef enum uiDrawLineJoin uiDrawLineJoin;
|
typedef enum uiDrawLineJoin uiDrawLineJoin;
|
||||||
|
@ -73,21 +74,21 @@ struct uiDrawStrokeParams {
|
||||||
double MiterLimit;
|
double MiterLimit;
|
||||||
};
|
};
|
||||||
|
|
||||||
void uiDrawBeginPathRGB(uiDrawContext *, uint8_t, uint8_t, uint8_t);
|
uiDrawPath *uiDrawNewPath(uiDrawFillMode);
|
||||||
// TODO verify these aren't alpha premultiplied anywhere
|
|
||||||
void uiDrawBeginPathRGBA(uiDrawContext *, uint8_t, uint8_t, uint8_t, uint8_t);
|
|
||||||
|
|
||||||
void uiDrawMoveTo(uiDrawContext *, intmax_t, intmax_t);
|
void uiDrawPathNewFigure(uiDrawPath *, double, double);
|
||||||
void uiDrawLineTo(uiDrawContext *, intmax_t, intmax_t);
|
void uiDrawPathLineTo(uiDrawPath *, double, double);
|
||||||
void uiDrawRectangle(uiDrawContext *, intmax_t, intmax_t, intmax_t, intmax_t);
|
|
||||||
// notes: angles are both relative to 0 and go counterclockwise
|
// notes: angles are both relative to 0 and go counterclockwise
|
||||||
void uiDrawArcTo(uiDrawContext *, intmax_t, intmax_t, intmax_t, double, double, int);
|
void uiDrawPathArcTo(uiDrawPath *, double, double, double, double, double);
|
||||||
// TODO behavior when there is no initial point on Windows and OS X
|
void uiDrawPathBezierTo(uiDrawPath *, double, double, double, double, double, double);
|
||||||
void uiDrawBezierTo(uiDrawContext *, intmax_t, intmax_t, intmax_t, intmax_t, intmax_t, intmax_t);
|
void uiDrawPathCloseFigure(uiDrawPath *);
|
||||||
void uiDrawCloseFigure(uiDrawContext *);
|
|
||||||
|
|
||||||
void uiDrawStroke(uiDrawContext *, uiDrawStrokeParams *);
|
void uiDrawPathAddRectangle(uiDrawPath *, double, double, double, double);
|
||||||
void uiDrawFill(uiDrawContext *, uiDrawFillMode);
|
|
||||||
|
void uiDrawPathEnd(uiDrawPath *);
|
||||||
|
|
||||||
|
void uiDrawStroke(uiDrawContext *, uiDrawPath *, uiDrawStrokeParams *);
|
||||||
|
void uiDrawFill(uiDrawContext *, uiDrawPath *);
|
||||||
|
|
||||||
// TODO primitives:
|
// TODO primitives:
|
||||||
// - rounded rectangles
|
// - rounded rectangles
|
||||||
|
|
Loading…
Reference in New Issue