Commit Graph

164 Commits

Author SHA1 Message Date
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
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
8b8179518d ebitenutil: Remove importing image/gif and image/png
Fixes #519
2020-10-04 04:53:59 +09:00
Hajime Hoshi
6ac5d42206 ebitenutil: Remove RecordScreenAsGIF
Updates #1127
2020-10-04 04:53:14 +09:00
Hajime Hoshi
bf515bb594 Update version to v2.0.0-alpha 2020-10-04 04:30:40 +09:00
Hajime Hoshi
9906e4b882 go generate 2020-09-20 23:28:17 +09:00
Tom Lister
6d113e4b0d
ebitenutil: Use net/http at file_js.go (#1296)
Fixes #1154
2020-08-12 13:37:38 +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
a1ac574a60 docs: Use 'Deprecated:' annotation
Fixes #1160
2020-05-19 01:50:55 +09:00
Hajime Hoshi
7ac6b0bfa3 Update dependencies 2020-03-31 03:32:38 +09:00
Tom Lister
3eea196c09
Fix missing js build tag (#1088)
Added js to build tags as suggested by @hajimehoshi

Fixes #1087
2020-02-21 20:24:25 +09:00
Hajime Hoshi
a449045ae2 ebitenutil: Cache sub images for debug print 2019-11-24 20:30:54 +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
c52e043006 Add jsutil package for new API of Go 1.13
Audio part still cannot be compiled due to Oto.

Fixes #878
2019-06-15 00:49:57 +09:00
Hajime Hoshi
10fb5e33be Replace GopherWasm with syscall/js
Fixes #857
2019-05-01 17:28:00 +09:00
eihigh
06edbffa79 docs: Change docs about go-bindata into rakyll/statik (#840)
go-bindata is not appropriate because no longer maintained.
2019-04-11 04:39:45 -04:00
Hajime Hoshi
710f56531f graphics: Experimental: (*image.Image).SubImage
Fixes #722
2018-10-28 02:19:14 +09:00