Commit Graph

136 Commits

Author SHA1 Message Date
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
Hajime Hoshi
17a47f80ef ebitenutil: Fix comments 2018-09-22 05:23:26 +09:00
ryosama
f0d6853631 ebitenutil: Add the DebugPrintAt function (#684)
Fixes #683
2018-09-22 05:21:13 +09:00
Jake Bentvelzen
2938afd82a ebitenutil: Fix OpenFile() so it works with wasm (#674)
Fixes #673 

* Change to use `js.NewCallback`
* Use `uint8contentWrapper := js.Global().Get("Uint8Array").New(content)`, without this all the bytes in `data` stays zeroed. (TypedArray cannot use `set` on an ArrayBuffer)
2018-08-27 03:46:15 +09:00
Hajime Hoshi
cc17fbc166 Revert "Revert "ebitenutil: Use ColorM""
This reverts commit 7f46b46f66.
2018-08-11 01:49:33 +09:00
Hajime Hoshi
7f46b46f66 Revert "ebitenutil: Use ColorM"
This reverts commit c6153de4f5.
2018-08-06 01:44:31 +09:00
Hajime Hoshi
c6153de4f5 ebitenutil: Use ColorM 2018-07-26 12:47:39 +09:00
Hajime Hoshi
e99f2f9f69 ui: Rename TPS -> MaxTPS 2018-07-17 22:41:27 +09:00
Hajime Hoshi
16c6ab4d07 ui: Introduce DefaultTPS and deprecate FPS 2018-07-17 02:07:03 +09:00
Hajime Hoshi
d752408da3 Fix comments not to use the term 'this function' 2018-07-15 01:04:46 +09:00
Hajime Hoshi
8f12dfc496 Use js.TypedArray
This is still WIP. There is a rendering issue on Wasm.
2018-07-06 02:48:51 +09:00
Hajime Hoshi
6e51d31524
Use new GopherWasm API (#634)
I plan to merge this right after
https://github.com/gopherjs/gopherwasm/pull/3 is merged.
2018-06-30 00:02:15 +09:00
Hajime Hoshi
a9359e4ef8 Use GopherJS/GopherWasm 2018-06-24 16:10:24 +09:00
Hajime Hoshi
9b7f5f7273 ebitenutil: Use gopherwasm 2018-05-25 01:23:09 +09:00
Hajime Hoshi
3fa2beb502 Fix the do-not-edit comment https://golang.org/s/generatedcode 2018-04-20 00:54:33 -07:00
Hajime Hoshi
dbe990a060 Use the latest file2byteslice 2018-04-14 04:19:11 +09:00
Hajime Hoshi
a3bf8ebf83 ebitenutil: Add NewImageFromURL 2018-03-22 01:19:57 +09:00
Hajime Hoshi
c925b9de55 Use the latest file2byteslice 2018-03-14 01:57:52 +09:00
Hajime Hoshi
063153e41d ebitenutil: Speed up to avoid copying by image.Rect 2018-03-11 21:39:22 +09:00
Hajime Hoshi
ef5de62780 Follow the standard comment rule
See https://golang.org/s/generatedcode
2018-03-08 02:47:59 +09:00
Hajime Hoshi
50be07355f Revert "ebitenutil: Remove RecordScreenAsGIF implementation (#500)"
This reverts commit e3b99dd081.

This is for backward compatibility
2018-03-05 12:07:18 +09:00
Hajime Hoshi
64abc79dc2 ebitenutil: Improve DebugPrint speed by not using color matrices 2018-03-05 02:08:44 +09:00
Hajime Hoshi
cdfee9fd74 ebitenutil: Refactoring 2018-03-04 22:52:56 +09:00
Hajime Hoshi
d9571c7e32 ebitenutil: Use the default filter 2018-03-04 22:45:47 +09:00
Hajime Hoshi
deed56f971 ebitenutil: Refactoring: Remove debugPrintRenderTarget 2018-02-27 03:13:58 +09:00
Hajime Hoshi
479bf18be6 ebitenutil: Fix comment (#516) 2018-02-26 23:03:33 +09:00
Hajime Hoshi
31ca968a14 ebitenutil: Add import image/png for backward compatibility
Fixes #518
2018-02-26 22:15:29 +09:00
Hajime Hoshi
e8d5c59e65 ebitenutil: Update doc 2018-02-20 02:02:30 +09:00
Hajime Hoshi
f5a283effd ebitenutil: Add comments 2018-02-12 23:54:31 +09:00