Hajime Hoshi
34b8c5483a
ebitenutil: use vector's functions again but with anti-alias false
...
This is basically a revert for bf63d2310d
.
As anti-alias options are added to the vector package's functions, we
should be able to emulate the same thing without performance penalty.
Updates #2605
Updates #2606
2023-03-18 11:09:37 +09:00
Hajime Hoshi
f66ed646bd
ebitenutil: add comments and use ColorScale
...
Updates #2605
2023-03-18 10:42:44 +09:00
Hajime Hoshi
bf63d2310d
ebitenutil: revert the implementation of Draw* functions
...
Using vector functions caused unexpected increase of draw calls.
Revert the Draw* functions to use regular DrawImage/DrawTriangles.
Closes #2605
2023-03-18 10:27:26 +09:00
Hajime Hoshi
e53118235b
ebitenutil: remove whiteImage
2023-03-01 15:23:19 +09:00
Hajime Hoshi
6ba14fdb00
vector: rename functions
...
Fill* was confusing especially when the color is a transparent color.
Closes #2403
2022-10-22 20:29:31 +09:00
Hajime Hoshi
5e15bafde8
vector: add FillCircle
and StrokeCircle
...
Updates #2387
2022-10-22 01:24:51 +09:00
Hajime Hoshi
6f7b1a81d7
vector: add StrokeLine
, FillRect
, and StrokeRect
...
Updates #2387
2022-10-21 22:35:01 +09:00
Hajime Hoshi
f04e391cb4
all: rename emptyImage -> whiteImage
2022-10-21 15:26:56 +09:00
Hajime Hoshi
0c19b8d7ae
ebitenutil: typo
2022-09-24 13:53:10 +09:00
Hajime Hoshi
96e3b06a0c
ebitenutil: fix typo
...
Closes #2194
2022-07-11 12:22:56 +09:00
Filip Piwowarczyk
a249296723
ebitenutil: add DrawCircle ( #2175 )
...
Closes #2163
2022-07-03 18:31:57 +09:00
Hajime Hoshi
e687865c8c
ebiten: add ColorM.ScaleWithColor
...
Updates #1944
2022-01-10 17:36:46 +09:00
Hajime Hoshi
040fcd930f
Revert "Revert 2 commits using ColorM cache"
...
This reverts commit dd7a8bc497
.
Reason: DrawTriangles worked fine for the reporter's purpose.
Updates #1655
2021-05-30 15:17:11 +09:00
Hajime Hoshi
dd7a8bc497
Revert 2 commits using ColorM cache
...
This reverts commit 87c8625692
.
This reverts commit a6dd6196b4
.
Reason: Performance regression (#1655 )
Closes #1655
2021-05-30 03:10:00 +09:00
Hajime Hoshi
87c8625692
Remove internal/colormcache
2021-01-28 03:28:29 +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
54da0d9763
ebiten: Remove the returning value from (*Image).DrawImage
...
Updates #1380
2020-10-06 00:21:17 +09:00
Hajime Hoshi
c2ee8e8d59
ebiten: Remove returning values from (*Image).Clear and Fill
...
Updates #1380
2020-10-06 00:08:55 +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
Hajime Hoshi
780465b702
ebitenutil: Cache ColorM and reuse them at DrawRect
...
Fixes #1221
2020-06-29 22:35:28 +09:00
Hajime Hoshi
fc42af208d
graphics: Use 1x1 image for empty images
...
This change leaves some empty images for DrawTriangles.
2019-07-30 23:11:06 +09:00
Hajime Hoshi
d9571c7e32
ebitenutil: Use the default filter
2018-03-04 22:45:47 +09:00
Hajime Hoshi
6bbf6c53ce
ebitenutil: Give up using linear filter for lines
...
The edges of a source texture would be unexpectable with linear filterling
2017-12-03 23:41:05 +09:00
Hajime Hoshi
95906e9630
ebitenutil: Bug fix: line should use linear filter
2017-12-03 23:12:02 +09:00
Hajime Hoshi
d832f1e3cb
ebitenutil: emptyImage should use nearest filter
2017-12-03 23:08:58 +09:00
Hajime Hoshi
3cf5ca4df3
doc: Improve comments
2017-10-08 03:14:33 +09:00
Hajime Hoshi
93173506f5
ebitenutil: English
2017-08-14 00:45:10 +09:00
Hajime Hoshi
abd8cb7759
ebitenutil: Add DrawLine and DrawRect
...
Add new APIs DrawLine and DrawRect mainly for debugging or prototyping purpose. Also add examples/shapes.
2017-08-14 00:16:32 +09:00