Skip to content

Commit

Permalink
Implement Arcs using D2D (#1384)
Browse files Browse the repository at this point in the history
* Implement arcs and curves in CGPath using D2D

* Implement transformations in terms of D2D simplify.

* Update curves, test app with Transformation options.

* Fixing UI and other things.

* Adding comments on arc math and updating cpputils

* Use CGAffineTransform equality function instead of defining our own.

* Fix const getter functions, reorder out pointer arguments

* Fix failing coordinate tests due to stomped equality operator.
  • Loading branch information
MSFTFox authored and DHowett committed Dec 2, 2016
1 parent e79d9b1 commit b094b17
Show file tree
Hide file tree
Showing 42 changed files with 952 additions and 346 deletions.
10 changes: 0 additions & 10 deletions Frameworks/CoreGraphics/CGContext.mm
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,6 @@

using namespace Microsoft::WRL;

static inline D2D_RECT_F __CGRectToD2D_F(CGRect rect) {
return {
rect.origin.x, rect.origin.y, rect.origin.x + rect.size.width, rect.origin.y + rect.size.height,
};
}

static inline D2D1_MATRIX_3X2_F __CGAffineTransformToD2D_F(CGAffineTransform transform) {
return { transform.a, transform.b, transform.c, transform.d, transform.tx, transform.ty };
}

enum _CGCoordinateMode : unsigned int { _kCGCoordinateModeDeviceSpace = 0, _kCGCoordinateModeUserSpace };

struct __CGContextDrawingState {
Expand Down
Loading

0 comments on commit b094b17

Please sign in to comment.