Commit Graph

4570 Commits

Author SHA1 Message Date
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
Hajime Hoshi
4aa80de34d examples/windowsize: Bug fix: screenScale can be 0 on browsers 2019-12-22 19:20:31 +09:00
Hajime Hoshi
812a29bf07 ui: Refactoring: theUIContext is always non-nil 2019-12-22 18:53:23 +09:00
Hajime Hoshi
4c6006343e ui: Refactoring 2019-12-22 17:22:54 +09:00
Hajime Hoshi
1566bb1cd3 ui: Update comments of RunGame 2019-12-22 13:21:15 +09:00
Hajime Hoshi
807f91e6ca docs: Update comments 2019-12-22 12:59:28 +09:00
Hajime Hoshi
62bbb8818e ui: Update comments at WindowSize and SetWindowSize
Fixes #1030
2019-12-22 12:52:52 +09:00
Hajime Hoshi
c9863284cf uidriver/glfw: Set a default window size
Now RunGame can be called without SetWindowSize.
2019-12-22 12:51:36 +09:00
Hajime Hoshi
0e63241bcb Update comments 2019-12-22 03:50:30 +09:00
Hajime Hoshi
7d56e4335e ui: Add RunGame, WindowSize and SetWindowSize
This change introduces the new APIs RunGame, WindowSize and
SetWindowSize. These new APIs hides the notion of 'scale', and is
more flexible with the outside size change. This means that we can
introduce a resizable window.

This change also adds -legacy flag to examples/windowsize. If the
flag is off, the new APIs are used.

This change deprecates these functions since the notion of 'scale'
is deprecated:

  * ScreenScale
  * ScreenSizeInFullscreen
  * SetScreenScale
  * SetScreenSize

Fixes #943, #571
Updates #320
2019-12-22 03:35:31 +09:00
Hajime Hoshi
57d527bea2 driver: Remove 'title' argument from UI.Run 2019-12-22 01:41:51 +09:00
Hajime Hoshi
8b995b086b driver: Remove some arguments from UI.Run 2019-12-21 22:52:23 +09:00
Hajime Hoshi
8013fef9ea uidriver: Bug fix: Needed to implement MonitorPosition 2019-12-21 21:15:58 +09:00
Hajime Hoshi
dabaf66b81 uidriver: Remove width/height/scale arguments from run
The initial window position is determined on ebiten package side.

Updates #943
2019-12-21 20:10:58 +09:00
Hajime Hoshi
d07028735f uidriver/glfw: Refactoring 2019-12-21 19:52:07 +09:00
Hajime Hoshi
987f333d95 uidriver/glfw: Rename variables 2019-12-21 17:34:58 +09:00
Hajime Hoshi
aad5db8939 examples/windowsize: Change the delta of moving the window 2019-12-21 17:08:04 +09:00