Commit Graph

69 Commits

Author SHA1 Message Date
Hajime Hoshi
62978ea270 vector: expose (*Path).Reset
Closes #3123
2024-10-06 03:34:43 +09:00
Hajime Hoshi
fbf40a4455 vector: bug fix: isPointCloseToSegment didn't work when two p0 and p1 are the same
Closes #3061
2024-08-10 17:13:09 +09:00
Hajime Hoshi
fc37cdedeb vector: reuse previous allocated subpaths
Closes #3060
2024-08-10 15:13:23 +09:00
Hajime Hoshi
309c886c2e vector: use value type for subpath
Updates #3060
2024-08-10 15:04:13 +09:00
Hajime Hoshi
68380e506e vector: reduce memory allocations by reusing the same Path objects 2024-08-10 14:02:49 +09:00
Hajime Hoshi
cdb430b2a5 vector: reduce allocations 2024-08-10 05:35:29 +09:00
Hajime Hoshi
38b8ba5677 vector: lazy point calculation
This is a preparation for #2884.

Updates #2884
2024-08-10 04:09:39 +09:00
Hajime Hoshi
b121468991 ebiten: add FillRuleFillAll, FillRuleEvenOdd, and FillRuleNonZero
This change also deprecates the existing constants.

Closes #3006
2024-06-08 17:58:33 +09:00
Hajime Hoshi
230619a036 vector: allow NonZero for AppendVerticesAndIndicesForStroke
Closes #2833
2024-03-23 18:51:25 +09:00
Şeta Narut
87c1766451
vector: typo (segument -> segment) (#2860) 2023-12-12 23:38:43 +09:00
Hajime Hoshi
3ca6184294 ebiten: add a new FillRule: NonZero
Closes #2782
2023-11-06 12:11:38 +09:00
Pierre Curto
4de807cc44
all: fix typos (#2558)
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 19:06:38 +09:00
Pierre Curto
abd293fae6
text, vector: fix typos and redundant casts (#2537) 2023-01-13 03:28:41 +09:00
Hajime Hoshi
c34c072efa vector: change the specificatino of Path.ArcTo
Closes #2401
2022-10-22 02:03:27 +09:00
Hajime Hoshi
fa942c824f vector: avoid adding too close points
Rendering a very thick arc caused some glitches. This change should
mitigate this issue.
2022-10-22 01:16:47 +09:00
Hajime Hoshi
6f7b1a81d7 vector: add StrokeLine, FillRect, and StrokeRect
Updates #2387
2022-10-21 22:35:01 +09:00
Hajime Hoshi
dbfacb243a vector: bug fix: Arc added unexpected lines from (0, 0)
This change removes Path.cur.
2022-10-21 22:12:48 +09:00
Hajime Hoshi
436bfdb06b vector: update comments 2022-10-21 20:42:13 +09:00
Hajime Hoshi
9e6a1d7ad1 vector: update comments 2022-10-21 20:38:41 +09:00
Hajime Hoshi
6113afae46 vector: bug fix: LineTo should consider the current cursor 2022-10-21 19:25:20 +09:00
Hajime Hoshi
a75472b524 vector: add (*Path).Close
Updates #2387
2022-10-21 18:16:48 +09:00
Hajime Hoshi
9a82e5cf86 vector: add a comment about blend
Updates #2396
2022-10-18 23:50:56 +09:00
Hajime Hoshi
d2f6d8593b vector: add LineCap
Closes #1843
2022-10-15 00:40:28 +09:00
Hajime Hoshi
225bf1bbb4 vector: add StrokeOptions.MiterLimit 2022-10-14 23:25:59 +09:00
Hajime Hoshi
04680ff761 vector: refactoring 2022-10-14 22:56:15 +09:00
Hajime Hoshi
a1a598471b vector: add LineJoin
Updates #1843
2022-10-14 22:11:00 +09:00
Hajime Hoshi
f5ae18d6f6 vector: add comments 2022-10-14 19:06:33 +09:00
Hajime Hoshi
1ff55bc745 vector: remove redundant MoveTo 2022-10-11 01:18:18 +09:00
Hajime Hoshi
84452b0bf8 vector: remove redundant LineTo calls before Arc 2022-10-11 01:17:13 +09:00
Hajime Hoshi
2322acbd9c Revert "vector: improve quality of lines by removing holes"
This reverts commit ccfedeea1d.

Reason: This affects the result of the line ends
2022-10-11 00:28:24 +09:00
Hajime Hoshi
ccfedeea1d vector: improve quality of lines by removing holes 2022-10-11 00:12:35 +09:00
Hajime Hoshi
69c8fd745b vector: add AppendVerticesAndIndicesForStroke
Updates #1843
2022-10-10 23:19:29 +09:00
Hajime Hoshi
a57042ebef vector: bug fix: wrong base index
Closes #2379
2022-10-10 18:07:13 +09:00
Vivek Murali
084ba6bbd1
vector: fix spelling error in vector/path.go (#2078) 2022-04-24 12:14:18 +09:00
Hajime Hoshi
b2e38894e0 vector: Fix comments 2021-09-26 01:13:00 +09:00
Hajime Hoshi
a9241a45c6 vector: Add Dir
Updates #844
2021-07-17 16:42:14 +09:00
Hajime Hoshi
70ef5e7d5b vector: Add Arc
Updates #844
2021-07-17 01:34:06 +09:00
Hajime Hoshi
873bb35587 vector: Add ArcTo
Updates #844
2021-07-16 22:52:32 +09:00
Hajime Hoshi
cea0aa72cb vector: Rename AppendVerticesAndIndices to AppendVerticesAndIndicesForFilling
Updates #844
2021-07-16 17:20:09 +09:00
Hajime Hoshi
e24eecd4a6 vector: Improve the quality of QuadTo and CubicTo
Updates #844
2021-07-16 17:11:38 +09:00
Hajime Hoshi
9e024dc337 vector: Rename arguments 2021-07-14 23:25:59 +09:00
Hajime Hoshi
315f87896b vector: Better interpolation of Bézier curves
Updates #844
2021-07-06 03:30:33 +09:00
Hajime Hoshi
035759703b Revert "vector: Improve the number of segments for a Bézier curve"
This reverts commit ad2999fa04.

Reason: Added *2 as a mistake. And without this multiplying, the quarity was not good.
2021-07-06 01:17:06 +09:00
Hajime Hoshi
ad2999fa04 vector: Improve the number of segments for a Bézier curve
Updates #844
2021-07-06 01:12:55 +09:00
Hajime Hoshi
b466a0cbd7 ebiten: Add EvenOdd to DrawTrianglesOptions and DrawShaderTrianglesOptions
Updates #844
Closes #1684
2021-07-05 03:35:55 +09:00
Hajime Hoshi
569964d7e4 Cache SubImage for the empty images 2021-01-25 01:31:18 +09:00
Hajime Hoshi
fa53160e18 mipmap: Stop using negative mipmaps
Negative mipmaps tend to allocate extremely big images.

Instead, encourage to use images with explicit padding when enlarging
the image.

Fixes #1400
2020-10-31 02:52:40 +09:00
Hajime Hoshi
c6053bcf14 ebiten: Remove the error returning value from NewImage
Updates #1380
2020-10-06 00:48:56 +09:00
Hajime Hoshi
fe97e7b0a5 ebiten: Remove the filter argument from NewImage and NewImageFromImage
Updates #503
2020-10-05 01:40:44 +09:00
Hajime Hoshi
bf515bb594 Update version to v2.0.0-alpha 2020-10-04 04:30:40 +09:00