Commit Graph

4586 Commits

Author SHA1 Message Date
hiroebe
ad00414a2a audio: Remove duplicate check for io.Seeker (#1051) 2020-01-10 19:37:31 +09:00
Hajime Hoshi
dcad3d21c9 ui: Format comments 2020-01-09 23:05:29 +09:00
Jake Bentvelzen
c17946bb82 ui: Add GamepadGUID and GamepadName functions (#1035)
Fixes #1034
2020-01-09 22:11:32 +09:00
hiroebe
6ee587301c Fix multiple close for channel (#1047) 2020-01-08 12:50:57 +09:00
Hajime Hoshi
55bc2eaa22 Add CODE_OF_CONDUCT.md 2020-01-08 11:30:57 +09:00
Hajime Hoshi
2cbd5aa16e mipmap: Remove unused members 2020-01-08 02:32:28 +09:00
Hajime Hoshi
4c8137ccf5 mipmap: Bug fix: Use more negative mipmaps when float precision is low
Fixes #1044
2020-01-08 02:06:36 +09:00
Hajime Hoshi
c99fd1a742 mipmap: Create mipmap package and bufferd.Image uses it
Mipmap calculation must be executed after the main loop starts
because the graphics driver's HasHighPrecisionFloat is needed.
Then, operations on mipmap images must be called from images in
buffered package.

Updates #1044
2020-01-08 02:06:01 +09:00
Hajime Hoshi
7f4a82ddf0 Use Go 1.14 for Wasm
Go 1.13 has memory issue on Wasm (golang/go#35111). Use Go 1.14
instead.
2020-01-08 02:06:01 +09:00
Hajime Hoshi
90ccd4c440 Add hiroebe to AUTHORS 2020-01-06 19:44:06 +09:00
hiroebe
64e838584a Fix doc (#1046) 2020-01-06 19:43:29 +09:00
Hajime Hoshi
9e51e6796d Add dericmiller to AUTHORS 2020-01-06 13:11:04 +09:00
dericmiller
7ee8d1aa5f examples/life: Fix initial world randomization (#1045)
Because golang executes the init function after establishing
the variables in the var block, the random number seed wasn't
initializing until after the initial world state had gotten
established (leading to an identical game of Life on every run).
To fix this, we establish an empty world in the var block,
and then populate it in the init function after the random
number generator has been seeded.
2020-01-06 13:09:51 +09:00
Hajime Hoshi
9be3495077 driver: Remove Graphics.SetWindow
Fixes #1026
2020-01-03 19:04:48 +09:00
Hajime Hoshi
fa95275a02 uidriver/glfw: Bug fix: js should be excluded from compiling targets 2020-01-03 19:01:45 +09:00
Hajime Hoshi
982b7d6ddc driver: Let UI have Graphics
Now UIs own the implementation of Graphics.

Updates #1026
2020-01-03 18:32:27 +09:00
Hajime Hoshi
e66f1fb71e graphicsdriver/opengl: Use glBufferSubData instead of glTexSubImage2D on browsers
Updates #988
2020-01-02 16:27:51 +09:00
Hajime Hoshi
de48a13a6e graphicsdriver/opengl/gl: Remove unused functions 2020-01-02 00:17:39 +09:00
Hajime Hoshi
38815ba801 graphicsdriver/opengl: Use glBufferSubData instead of glMapBuffer
We have confirmed that this does not slow down ReplacePixels.

Fixes #993
Fixes #1040
2020-01-02 00:01:27 +09:00
Hajime Hoshi
d2251c42c3 Add zamadatix to AUTHORS 2020-01-02 00:00:59 +09:00
zamadatix
c4dfc69c81 Typo Corrections from https://goreportcard.com/ (#1042)
Correct typo found by https://goreportcard.com/
2020-01-01 23:59:56 +09:00
Hajime Hoshi
51f4ba1320 graphicsdriver/opengl: Refactoring 2020-01-01 01:57:12 +09:00
Hajime Hoshi
815afe6670 graphicsdriver/opengl: Reduce calls of glBindTexture 2020-01-01 01:39:45 +09:00
Hajime Hoshi
8285fbfac9 graphicsdriver/opengl: Add error checks 2019-12-31 04:22:28 +09:00
Hajime Hoshi
e725c7ee78 vector: Rename functions
Updates #844
2019-12-30 16:14:49 +09:00
Hajime Hoshi
c116481d33 vector/internal/triangulate: Add a benchmark 2019-12-29 23:56:55 +09:00
Hajime Hoshi
8c403d81fe vector: Rename math -> triangulate 2019-12-29 23:45:14 +09:00
Hajime Hoshi
faf8f6c58d vector: Reduce segments 2019-12-29 23:35:12 +09:00
Hajime Hoshi
6d51ff4a12 vector/internal/math: Optimization 2019-12-29 23:29:48 +09:00
Hajime Hoshi
662a22461d run: Bug fix: The screen can be nil in the initial state
Fixes #1039
2019-12-29 23:14:59 +09:00
Hajime Hoshi
17dc972b7a vector/internal/math: Remove Vector 2019-12-29 23:04:32 +09:00
Hajime Hoshi
17e16e5759 examples/vector: Add FPS 2019-12-29 23:02:28 +09:00
Hajime Hoshi
8a42e8d808 vector/internal/math: Reduce calls of adjacentIndices 2019-12-29 23:00:53 +09:00
Hajime Hoshi
7860df37e1 vector/internal/math: Optimization: Make InTriangle faster 2019-12-29 02:40:13 +09:00
Hajime Hoshi
08be478dfc vector: Reduce necessary vertices 2019-12-29 02:40:10 +09:00
Hajime Hoshi
cee11bd822 vector: Add BezierCurveTo
Updates #844
2019-12-29 00:06:55 +09:00
Hajime Hoshi
bb39e94e8c vector: Bug fix: Wrong rendering when there are some same points
Updates #845
2019-12-29 00:06:38 +09:00
Hajime Hoshi
6edb586f52 example/vector: Add the logo
There is a known issue in the logo rendering.
2019-12-28 18:12:27 +09:00
Hajime Hoshi
f1a788801c examples/vector: Add letters 2019-12-28 15:20:05 +09:00
Hajime Hoshi
d39dbc6a88 vector: Add QuadraticCurve
Updates #741
2019-12-28 14:58:29 +09:00
Hajime Hoshi
cb1dcc37a0 vector/internal/math: Add tests 2019-12-28 03:17:37 +09:00
Hajime Hoshi
18b267fd4f vector: Add Fill by triangulation
Updates #845
2019-12-28 02:51:09 +09:00
Hajime Hoshi
d6d1cbc01a tests: Fix .travis.yml
$TRAVIS_COMMIT represents a (special?) commit in the repository
hajimehoshi/ebiten, not a repository of the PR.

Not that go-get with the version $TRAVIS_COMMIT fails, but getting
an archive file from URL succeeds.
2019-12-28 01:09:41 +09:00
Hajime Hoshi
b5f2471a74 tests: Use wget 2019-12-28 00:43:02 +09:00
Hajime Hoshi
dc5392a73c Update Oto version to v0.5.4 2019-12-26 18:01:59 +09:00
Hajime Hoshi
90fa30378c vector: Fix comments 2019-12-26 16:35:07 +09:00
Hajime Hoshi
9ed8279fc8 driver: Add interface Window 2019-12-25 00:24:21 +09:00
Hajime Hoshi
f8d47e5c6a examples/moire: Make the window resizable 2019-12-23 04:45:49 +09:00
Hajime Hoshi
1d9c00688c ui: Panic if Layout returns non-positive numbers 2019-12-23 04:43:04 +09:00
Hajime Hoshi
049aa552d4 ui: Add SetWindowResizable
This change also fixes example/windowsize.

Fixes #320
2019-12-22 19:26:04 +09:00