Commit Graph

5644 Commits

Author SHA1 Message Date
Hajime Hoshi
14e324ceff Update bitmapfont 2020-09-21 00:13:58 +09:00
Hajime Hoshi
9906e4b882 go generate 2020-09-20 23:28:17 +09:00
Hajime Hoshi
bd3d2b3394 Update dependencies (gopkg.in/check.v1) 2020-09-20 22:23:42 +09:00
Hajime Hoshi
5685952664 Update dependencies 2020-09-20 22:11:27 +09:00
Hajime Hoshi
b2f6cc5791 ebiten: Revive DrawTrianglesShader
Updates #1325
2020-09-20 18:55:24 +09:00
Hajime Hoshi
938d78122f ebiten: Remove shaders from DrawImage
Updates #1325
2020-09-20 18:14:01 +09:00
Hajime Hoshi
0db7dc22b2 ebiten: Allow SubImage at DrawTriangles 2020-09-20 05:10:08 +09:00
Hajime Hoshi
41564533f9 ebiten: Allow SubImage at DrawRectShader 2020-09-20 04:48:10 +09:00
Hajime Hoshi
f287fada13 ebiten: Update comments 2020-09-20 01:05:16 +09:00
Hajime Hoshi
7bd8fad738 ebiten: Add TestShaderFillWithDrawTriangles 2020-09-20 00:49:57 +09:00
Hajime Hoshi
85a6ef2ea6 ebiten: Add comments 2020-09-19 21:07:23 +09:00
Hajime Hoshi
e406ebb1aa ebiten: Rename imageSrcTextureRegion -> imageSrcRegionOnTexture
Updates #1325
2020-09-19 19:36:53 +09:00
Hajime Hoshi
1d51be7f68 ebiten: Merge DrawTriangles and DrawTrianglesShader
Updates #1325
2020-09-19 19:18:02 +09:00
Hajime Hoshi
9f7d6962ff ebiten: Rename shader functions to get colors from textures
Updates #1325
2020-09-19 19:01:05 +09:00
Hajime Hoshi
b52de27d49 ebiten: Refactoring shader.go 2020-09-19 17:35:43 +09:00
Hajime Hoshi
28ce1fc3fb uidriver/glfw: Bug fix: Compile failure 2020-09-19 01:32:33 +09:00
Hajime Hoshi
51f06139a6 uidriver/glfw: Bug fix: Treat X scale (HiDPI) correctly
Fixes #1350
2020-09-19 01:24:18 +09:00
Hajime Hoshi
40e35fa047 uidriver/glfw: Bug fix: Unscale the size for framebuffers on Linux/UNIX
Fixes #1307
2020-09-19 01:04:18 +09:00
Hajime Hoshi
97607f5779 graphicsdriver/glfw: Bug fix: Convert window size unit correctly on Linux/UNIX
Updates #1307
2020-09-19 00:31:34 +09:00
Hajime Hoshi
5278a7c6d6 uidriver/glfw: Bug fix: Use the correct scale for GLFW APIs on Linux/UNIX
Updates #1307
2020-09-19 00:21:10 +09:00
Hajime Hoshi
7941be5f7d Update Go versions on CI 2020-09-18 05:02:34 +09:00
Hajime Hoshi
f09e9ef8ee Update Oto
Updates hajimehoshi/oto#93
2020-09-18 04:35:34 +09:00
Hajime Hoshi
632b985448 devicescale: Ignore the base scale
The window might be too bit when the base scale is 2.

Updates #1307
Updates #1350
2020-09-18 03:48:42 +09:00
Hajime Hoshi
5f3d6dbc19 devicescale: Choose the correct Cinnamon monitor configuration
Updates #1307
2020-09-18 01:07:48 +09:00
Hajime Hoshi
da94f3c2cb devicescale: Bug fix: Base-scale should be multiplied on Cinnamon
Updates #1307
2020-09-18 00:19:16 +09:00
Hajime Hoshi
65759f33a3 devicescale: Refactoring 2020-09-18 00:11:18 +09:00
Hajime Hoshi
9adb01a52c ebiten: Add shader matrix test
Fixes #1345
2020-09-17 21:53:07 +09:00
Hajime Hoshi
806e30926c ebiten: Remove unreachable code 2020-09-17 20:57:13 +09:00
Hajime Hoshi
abbb929148 ebiten: Bug fix: Wrong uniform type was used
This change also includes PanicOnErrorAtImageAt, which panics when
an error is detected at (*Image).At. This function is only for testing.

Fixes #1349
2020-09-17 20:52:32 +09:00
Hajime Hoshi
3dab49fc39 graphicsdriver/opengl: Better error message 2020-09-17 20:35:57 +09:00
Hajime Hoshi
ab004031d0 shader: Reland: Bug fix: Checking unused variables defined with var 2020-09-17 17:46:35 +09:00
Hajime Hoshi
ac971f77c5 Revert "shader: Bug fix: Checking unused variables defined with var"
This reverts commit 4d3d3134d5.

Reason: Test failures
2020-09-17 17:32:07 +09:00
Hajime Hoshi
4d3d3134d5 shader: Bug fix: Checking unused variables defined with var 2020-09-17 17:29:37 +09:00
Hajime Hoshi
e764b3a425 Update Oto version (again)
Updates hajimehoshi/oto#93
2020-09-16 03:21:15 +09:00
Hajime Hoshi
5491a486c7 Update Oto
Updates hajimehoshi/oto#93
2020-09-16 01:11:01 +09:00
Hajime Hoshi
f0b804df8b Add raa0121 to AUTHORS 2020-09-15 19:30:21 +09:00
raa0121
e3e8b49047
ebiten: Add inpututil guide comments for Is{Key,MouseButton,Gamepad}Pressed and TouchIDs (#1346)
Fixes #1344
2020-09-15 19:29:07 +09:00
Hajime Hoshi
3d333d5be7 Update Oto
Updates hajimehoshi/oto#93
2020-09-15 13:50:53 +09:00
Hajime Hoshi
ded223ead0 shader: Bug fix: selector is not available on a blank identifier 2020-09-14 03:41:25 +09:00
Hajime Hoshi
e1d8629189 shader: Bug fix: a blank identifier lhs and += cannot work 2020-09-14 00:51:27 +09:00
Hajime Hoshi
fd51abfb0d shader: Bug fix ++/-- must not be applied to a blank identifier 2020-09-14 00:32:47 +09:00
Hajime Hoshi
3421598e64 ebiten: Add shader tests 2020-09-14 00:21:40 +09:00
Hajime Hoshi
7666987b09 shader: Bug fix: a blank identifier cannot be used as values 2020-09-13 23:55:25 +09:00
Hajime Hoshi
6114c2b49d ebiten: Add more tests of unused variables in shaders 2020-09-13 22:47:00 +09:00
Hajime Hoshi
154f86e6c1 shader: Check unused local variables
Fixes #1328
2020-09-13 22:36:41 +09:00
Hajime Hoshi
e543d4f107 shader: Bug fix: true/false should be available as a local variable 2020-09-13 20:38:51 +09:00
Hajime Hoshi
a5af597594 shader: Forbid assigning to special variables 2020-09-13 05:19:20 +09:00
Hajime Hoshi
5e15ebf580 ebiten: Set zero values for lacking uniform variables
Fixes #1338
2020-09-13 04:29:32 +09:00
Hajime Hoshi
7a06ae4530 ebiten: Add shader tests 2020-09-12 20:16:03 +09:00
Hajime Hoshi
ed4a7e1856 shader: Forbid init functions
Fixes #1331
2020-09-12 19:50:23 +09:00