Hajime Hoshi
0281ac7bd2
all: use bufio.NewWriter to improve writing speed
2024-07-29 16:29:57 +09:00
Hajime Hoshi
941aec5f51
ebitenutil: update documentation for DebugPrint
...
Closes #2977
2024-06-19 03:10:51 +09:00
guangwu
97a9ee9601
ebitenutil: close an HTTP response body ( #2971 )
...
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
2024-04-29 09:43:11 +09:00
Hajime Hoshi
f446288e0c
update bitmapfont to v3
2023-05-30 11:17:36 +09:00
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
faca493fbc
go generate
2023-03-15 03:18:28 +09:00
Hajime Hoshi
e53118235b
ebitenutil: remove whiteImage
2023-03-01 15:23:19 +09:00
Hajime Hoshi
f054a7634a
ebiten: deprecate (*Image).Size
...
Closes #2351
2023-01-20 01:26:37 +09:00
Artem Yadelskyi
5b53cef59e
all: remove old // +build
comments ( #2431 )
...
Closes #2325
2022-11-03 12:55:14 +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
8de4a59416
ebitenutil: add comments and imports
...
Updates #2336
2022-09-18 15:43:56 +09:00
Hajime Hoshi
acda9f2a17
ebitenutil: add tests for NewImageFromFileSystem
2022-09-17 23:30:12 +09:00
Hajime Hoshi
3cafb0f6fd
ebitenutil: use go:embed
...
Updates #1258
2022-09-15 23:25:24 +09:00
Hajime Hoshi
5404e4d68a
all: replace io/ioutil
with io
and os
...
Closes #1770
2022-09-15 02:54:25 +09:00
Hajime Hoshi
49e2254e79
.github/workflows: drop Go 1.15 support
...
Updates #2323
2022-09-13 23:35:47 +09:00
Terra Brown
a1cc44833d
add errcheck static analysis ( #2293 )
...
Closes #2287
2022-09-10 01:52:46 +09:00
Hajime Hoshi
7ca1ba2648
ebitenutil: bug fix: NewImageFromReader was not available on mobiles
...
Closes #2301
2022-09-03 20:29:09 +09:00
Hajime Hoshi
f7c44f086f
replace Ebiten with Ebitengine in comments
2022-08-29 11:17:17 +09:00
Hajime Hoshi
b858f36d54
remove the dependency on file2byteslice
...
Specify the version explicitly instead.
2022-08-23 16:34:55 +09:00
Hajime Hoshi
65654f0fc4
ebitenutil: deprecate some APIs
2022-08-04 16:23:46 +09:00
raa0121
c98501060f
ebitenutil: add NewImageFromFileSystem()
( #2230 )
...
Closes #1948
2022-08-04 00:43:31 +09:00
mattn
3cd0daac67
go generate ./... with Go 1.19 ( #2228 )
2022-08-03 20:48:02 +09:00
Hajime Hoshi
3d034610a9
ebitenutil: adjust the size of the debug print text image
2022-08-01 14:04:33 +09:00
Hajime Hoshi
074d370096
ebitenutil: improve the performance of DebugPrint
...
Updates #1880
2022-08-01 01:35:59 +09:00
Hajime Hoshi
dad72b874f
ebitenutil: use bitmapfont for the debug print
...
This removes ebitenutil/internal/assets.
2022-08-01 01:27:03 +09:00
Hajime Hoshi
caa04c45c3
ebitenutil/internal/assets: remove an unused file
2022-08-01 00:30:32 +09:00
divVerent
21207f827c
do not require installing file2byteslice to update go generate'd files. ( #2221 )
...
The tool is already referenced in go.mod, so it is trivial to just go run it -
that way, go generate can use it without the user explicitly installing it first.
2022-07-29 20:43:23 +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
4c6c31e384
all: reorder build tags in an alphabetical order
2022-02-08 15:49:15 +09:00
Hajime Hoshi
e687865c8c
ebiten: add ColorM.ScaleWithColor
...
Updates #1944
2022-01-10 17:36:46 +09:00
Hajime Hoshi
ef62f407d1
Clean up build tags
2021-10-24 15:05:36 +09:00
Johnny
52df607413
ebitenutil: added NewImageFromReader(io.Reader) ( #1735 )
2021-07-29 02:34:35 +09:00
Hajime Hoshi
b54ad73a2b
Add go:build comments with go1.17beta1 fmt
2021-06-11 01:11: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
c0e12450df
ebitenutil: Update the doc
2021-05-25 21:28: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
7a0e31a23a
Clean up the 'js' build tags
...
Updates #1129
2020-10-07 01:33:10 +09:00
Hajime Hoshi
1c13e73b06
ebitenutil: Remove the error returning value from DebugPrint
...
Fixes #1380
2020-10-06 01:05:37 +09:00
Hajime Hoshi
1b816eb249
ebiten: Remove the error returning value from NewImageFromImage
...
Updates #1380
2020-10-06 01:03:33 +09:00
Hajime Hoshi
c6053bcf14
ebiten: Remove the error returning value from NewImage
...
Updates #1380
2020-10-06 00:48:56 +09:00