Commit Graph

120 Commits

Author SHA1 Message Date
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
Hajime Hoshi
fb7dc53031 ebitenutil: More agressive compression 2018-02-11 04:25:31 +09:00
Hajime Hoshi
0fefd59b24 ebitenutil: Use png2compressedrgba 2018-02-11 04:13:17 +09:00
Hajime Hoshi
e3b99dd081 ebitenutil: Remove RecordScreenAsGIF implementation (#500) 2018-02-11 03:36:45 +09:00
Hajime Hoshi
a8148b968c ebitenutil: Remove importing image/png (#500) 2018-02-11 03:25:43 +09:00
Hajime Hoshi
ae04c2d680 ebitenutil: Refactoring 2018-02-11 01:56:13 +09:00
Hajime Hoshi
eb2f3cf4f9 ebitenutil: Remove go-bindata usage and use file2byteslice
Fixes #499
2018-02-09 02:46:33 +09:00
Hajime Hoshi
80e4ee0998 ebitenutil: Remove JoinStringsIntoPath; Always use slash for ebitenutil.OpenFile
#428
2018-01-29 23:38:11 +09:00
Hajime Hoshi
d1f9312242 ebitentutil: Fix wrong comments 2017-12-16 23:30:47 +09:00
Hajime Hoshi
10080d83e6 ebitentutil: Add JoinStringsIntoFilePath
Fixes #428
2017-12-16 23:29:35 +09:00
Hajime Hoshi
2eac4a3b88 ebitenutil: Rename file.go -> file_notjs.go 2017-12-16 22:33:58 +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
d1333e92a5 doc: Improve comments 2017-10-01 20:48:28 +09:00
Hajime Hoshi
93173506f5 ebitenutil: English 2017-08-14 00:45:10 +09:00