Commit Graph

3721 Commits

Author SHA1 Message Date
Hajime Hoshi
42757b735b internal/png: Update 2018-09-02 23:09:08 +09:00
Hajime Hoshi
864eebbcd9 examples/resources: Add Ragtime_ogg 2018-09-02 23:08:02 +09:00
Hajime Hoshi
7af9e69605 graphics: Fix misspelling
Fixes #676
2018-08-30 23:08:18 +09:00
Hajime Hoshi
8827520d4a graphics: Bug fix: avoid jaggy rendering on macOS by adjusting texels (#669) 2018-08-30 00:17:03 +09:00
Hajime Hoshi
fe4f12fa6f text: Fix style 2018-08-27 23:42:17 +09:00
Hajime Hoshi
411b99efcf Update bitmapfont version 2018-08-27 23:04:45 +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
c25f5b03e0 Make TravisCI happy again 2018-08-27 03:19:24 +09:00
Hajime Hoshi
794bd1747c Update .travis.yml for GopherJS 2018-08-26 19:41:27 +09:00
Hajime Hoshi
1c088dc8b6 text: Use bitmapfont package for testing 2018-08-19 20:16:57 +09:00
Hajime Hoshi
e54da620dd Reupdate go.mod 2018-08-15 01:06:48 +09:00
Hajime Hoshi
8772d310fe Revert "Revert "graphics: Fix documentation about DrawImage""
This reverts commit f16c7cb90d.

Reason: Oops, I reverted a wrong commit
2018-08-14 12:27:18 +09:00
Hajime Hoshi
f16c7cb90d Revert "graphics: Fix documentation about DrawImage"
This reverts commit 610bf6e39f.

Reason: This caused a new black line at the bottom (macOS).
2018-08-14 12:26:28 +09:00
Hajime Hoshi
f2b4dfd061 examples/polygon: Better coloring 2018-08-14 02:14:19 +09:00
Hajime Hoshi
340a4b4dfa examples: Rename triangles -> polygons 2018-08-14 01:56:08 +09:00
Hajime Hoshi
7807488cc7 examples/triangles: Fix terms 2018-08-14 01:55:22 +09:00
Hajime Hoshi
1b8cad4e1d examples/triangles: Draw polygons 2018-08-14 01:49:45 +09:00
Hajime Hoshi
5032546238 examples: Rename triangle -> triangles 2018-08-14 01:30:42 +09:00
Hajime Hoshi
2360b2930f graphics: Add DrawTriangles
Fixes #624
2018-08-14 01:23:14 +09:00
Hajime Hoshi
08e931782a Update go.mod 2018-08-14 01:13:31 +09:00
Hajime Hoshi
a82201cfe8 graphics: Use an even number for screen height offset
Fixes #622
2018-08-12 20:12:05 +09:00
Hajime Hoshi
610bf6e39f graphics: Fix documentation about DrawImage 2018-08-11 02:14:37 +09:00
Hajime Hoshi
cc17fbc166 Revert "Revert "ebitenutil: Use ColorM""
This reverts commit 7f46b46f66.
2018-08-11 01:49:33 +09:00
Hajime Hoshi
690c3cf981 graphics: Embed 'scale' part of the color matrix
If the color matrix includes only 'scale' part, they are embedded
into vertices in order to reduce draw calls.

Fixes #662
2018-08-10 23:20:55 +09:00
Hajime Hoshi
e46f9c6305 graphics: Bug fix: compile error 2018-08-10 03:10:57 +09:00
Hajime Hoshi
a03b335c24 graphics: Add logging when 'ebitendebug' tag is specified
Fixes #563
2018-08-10 02:39:07 +09:00
Hajime Hoshi
1aabdd58f1 restorable: Fix comments 2018-08-09 01:27:38 +09:00
Hajime Hoshi
3daaef2cab restorable: Refactoring: Use ReplacePixels(nil, ...) for clearing an image 2018-08-09 01:16:46 +09:00
Hajime Hoshi
ebb1d26e67 Update go.sum 2018-08-09 00:20:24 +09:00
Hajime Hoshi
a988082be1 shareable: Bug fix: disable tests 2018-08-09 00:19:55 +09:00
Hajime Hoshi
c68c36b0b7 restoreable: Add ClearState to clear the state explicitly
Fixes #566
2018-08-09 00:12:45 +09:00
Hajime Hoshi
cdc408d2c2 shareable: Suspend re-using shared images
Fixes #661
2018-08-08 18:40:52 +09:00
Hajime Hoshi
ed99719fdb devicescale: Use app.RunOnJVM and remove internal/jni 2018-08-06 23:50:37 +09:00
Hajime Hoshi
77e905eb25 Revert "graphics: Embed color matrices values to vertices (#655)"
This reverts commit 5a9235aaf9.
2018-08-06 01:44:31 +09:00
Hajime Hoshi
bf19f902af Revert "graphics: Fix DrawImage comment"
This reverts commit 8e6314f856.
2018-08-06 01:44:31 +09:00
Hajime Hoshi
7f46b46f66 Revert "ebitenutil: Use ColorM"
This reverts commit c6153de4f5.
2018-08-06 01:44:31 +09:00
Hajime Hoshi
9af8e621bd Revert "affine: Refactoring: Unify two element slices into one"
This reverts commit da662b384c.
2018-08-06 01:44:31 +09:00
Hajime Hoshi
3ed25b6ec6 Update go.mod
Changed gomobile version due to #658
2018-08-05 23:42:15 +09:00
Hajime Hoshi
af77a17aaa devicescale: Use mainScreen instead of screens[0] to get the 'current' screen state 2018-08-05 19:18:40 +09:00
Hajime Hoshi
063edfcc4a opengl: Use the safer way to pass Go string to C 2018-08-04 05:22:59 +09:00
Hajime Hoshi
18d77d3f6e shareable: Rename variables 2018-08-03 02:50:11 +09:00
Hajime Hoshi
bac0431c9f graphics: Simplify mipmap calculation 2018-08-03 00:02:49 +09:00
Hajime Hoshi
d17a6dde9b graphics: Remove unnecessary converts 2018-08-02 01:10:06 +09:00
Hajime Hoshi
972eea89db affine: Fix some functions in GeoM test
Fixes #657
2018-08-02 01:06:54 +09:00
Hajime Hoshi
952292f94f affine: Fix some functions in GeoM test 2018-08-02 00:42:43 +09:00
Hajime Hoshi
67c8dff74d Add Nathaniel to AUTHORS 2018-08-01 14:18:18 +09:00
Nathaniel Knight
6f23029e4c affine: Add Skew function to GeoM
Fixes #654
2018-08-01 14:15:30 +09:00
Hajime Hoshi
5c201af311 graphics: Bug fix: compile error 2018-07-31 01:56:59 +09:00
Hajime Hoshi
0956ca0ea6 graphicsutil: Add MipmapLevel 2018-07-31 01:47:03 +09:00
Hajime Hoshi
b8ab1363d2 graphics: Bug fix: mipmap level calculation 2018-07-31 01:02:09 +09:00