Hajime Hoshi
43734dc1a2
examples/resources/fonts: Remove Arcade_n.ttf
2020-10-03 20:40:33 +09:00
Hajime Hoshi
92c0d8da7e
Revert "examples/font: Use golang.org/x/image/font/opentype"
...
This reverts commit 7b3294064d
.
Reason: #1377
2020-10-03 20:25:57 +09:00
Hajime Hoshi
990ba69d7a
Revert "examples/2048: Use golang.org/x/image/font/opentype"
...
This reverts commit aa9f7f7c19
.
Reason: #1377
2020-10-03 20:25:45 +09:00
Hajime Hoshi
041377a9a2
Revert "examples/fullscreen: Use golang.org/x/image/font/opentype"
...
This reverts commit b264a421ae
.
Reason: #1377
2020-10-03 20:25:02 +09:00
Hajime Hoshi
42fe708263
Revert "examples/text: Use golang.org/x/image/font/opentype"
...
This reverts commit 013a42ddb8
.
Reason: #1377
2020-10-03 20:24:05 +09:00
Hajime Hoshi
584916c694
examples/keyboard: Use golang.org/x/image/font/opentype
...
Updates #484
2020-10-03 15:32:10 +09:00
Hajime Hoshi
3f1d0788f5
examples: Use golang.org/x/image/font/opentype
...
Updates #484
2020-10-03 15:25:39 +09:00
Hajime Hoshi
c9af0e9bd4
examples/blocks: Use golang.org/x/image/font/opentype
...
This change also adds a new font "Press Start 2P".
Updates #484
2020-09-29 22:02:48 +09:00
Hajime Hoshi
b264a421ae
examples/fullscreen: Use golang.org/x/image/font/opentype
...
Updates #484
2020-09-28 02:26:32 +09:00
Hajime Hoshi
013a42ddb8
examples/text: Use golang.org/x/image/font/opentype
...
Updates #484
2020-09-28 02:25:01 +09:00
Hajime Hoshi
aa9f7f7c19
examples/2048: Use golang.org/x/image/font/opentype
...
Updates #484
2020-09-28 02:23:17 +09:00
Hajime Hoshi
7b3294064d
examples/font: Use golang.org/x/image/font/opentype
...
Updates #484
2020-09-28 02:20:14 +09:00
Hajime Hoshi
8cb037e902
examples/gamepad: Sort gamepad ids when showing the states
2020-09-21 17:30:28 +09:00
Hajime Hoshi
9ac7a16333
examples/camera: Add limitations to the zoom factor
2020-09-21 01:13:00 +09:00
Hajime Hoshi
8803138464
examples/airship: Bug fix: Avoid too big scaling
...
Fixes #1353
2020-09-21 00:43:13 +09:00
Hajime Hoshi
9906e4b882
go generate
2020-09-20 23:28:17 +09:00
Hajime Hoshi
e406ebb1aa
ebiten: Rename imageSrcTextureRegion -> imageSrcRegionOnTexture
...
Updates #1325
2020-09-19 19:36:53 +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
850303b770
ebiten: Change the type of Uniforms to map[string]interface{}
...
Fixes #1324
2020-09-06 21:02:30 +09:00
Hajime Hoshi
d2cfed7558
examples/shader: Remove an unused variable
...
Updates #1328
2020-09-01 23:50:19 +09:00
Hajime Hoshi
dd7b0d81ae
ebiten: Rename shader builtin functions
...
* imageSrcTextureSourceRegion -> imageSrcTextureRegion
* image[N]TextureAt -> imageSrc[N]At
* image[N]TextureBoundsAt -> imageSrc[N]BoundsAt
Updates #1325
2020-09-01 21:31:50 +09:00
Hajime Hoshi
77fa0cb9ef
ui: Add SetInitFocused
...
Fixes #769
2020-08-23 02:19:09 +09:00
Tom Lister
65d5b64d29
ebiten: Rename SetClearingScreenSkipped/IsClearingScreenSkipped functions ( #1317 )
...
Fixes #1315
2020-08-20 17:12:22 +09:00
Hajime Hoshi
3060ad96f1
examples/contextlost: Fix comments
2020-08-20 00:45:59 +09:00
Hajime Hoshi
6718cd32a6
examples/contextlost: Skip Draw when the context lost happens
...
Updates #1314
2020-08-19 21:15:49 +09:00
Hajime Hoshi
7ec63acd1d
ebiten: Bug fix: Set the state of being volatile on SetClearingScreenSkipped
...
Fixes #1309
2020-08-19 01:23:30 +09:00
Hajime Hoshi
2acb604260
examples/contextlost: Bug fix: Failed to compile with Go 1.12
2020-08-16 23:05:33 +09:00
Hajime Hoshi
05a1c2faa1
examples/shader: Always use 1 for an alpha
...
This is necessary to keep the color pre-multiplied
2020-08-16 02:34:21 +09:00
Hajime Hoshi
06ed4f5444
shader: Implement len function
...
Fixes #1279
2020-08-16 02:07:39 +09:00
Hajime Hoshi
a1d278b097
examples/shader: Add water.go
...
Updates #1284
2020-08-15 21:36:13 +09:00
Hajime Hoshi
d90edf5826
examples/windowsize: Add an option to skip clearing the screen
...
Updates #1132
2020-08-15 03:14:38 +09:00
Hajime Hoshi
d73472f4f2
Use the library style of file2byteslice
2020-08-14 00:50:09 +09:00
Hajime Hoshi
a1c7c18788
examples/shader: Regenerate files with the latest file2byteslice
2020-08-13 03:03:27 +09:00
Magnus
95022ff1a5
examples/shader: dissolve shader ( #1291 )
...
Updates #1284
2020-08-12 00:43:07 +09:00
Hajime Hoshi
08270ee729
shader: Enable to parse ... in an array type
2020-08-11 23:51:22 +09:00
Hajime Hoshi
70acb9c1f6
shader: Rename shader bultin functions
...
Renamed image0TextureSize to imageSrcTextureSize, and removed the
other texture-size functions.
As texture-coordinates are always in image0's texture texels,
calculations with texels are always done with image0's texture texels.
Then, other texture-size functions are useless. To avoid confusion,
let's remove the functions and leave the necessary funciton.
2020-08-11 05:02:22 +09:00
Hajime Hoshi
b95195ab71
examples/shader: Fix some API usages
2020-08-11 04:25:20 +09:00
Hajime Hoshi
69f87d5fd1
ebiten: Add new shader builtin functions: image[N]TextureBoundAt
...
Fixes #1287
2020-08-11 03:24:54 +09:00
Hajime Hoshi
bc930ed0ec
Revert "examples/shader: Rename ScreenSize -> ImageSize"
...
This reverts commit 3893f9cdbe
.
Reason: The screen size and the image size can be different.
2020-08-11 02:16:16 +09:00
Hajime Hoshi
68ca0c634e
ebiten: Rename builtin shader functions
...
* textureDstSize -> imageDstTextureSize
* texture[N]Size -> image[N]TextureSize
* texture[N]At -> image[N]TextureAt
Updates #1287
2020-08-11 02:07:53 +09:00
Hajime Hoshi
3893f9cdbe
examples/shader: Rename ScreenSize -> ImageSize
2020-08-11 01:52:16 +09:00
Hajime Hoshi
8bfe406470
examples/shader: Make the chromatic berration example more readable
2020-08-10 21:58:49 +09:00
Hajime Hoshi
8aa90e60d2
examples/shader: Regenerate bytes
2020-08-10 21:52:58 +09:00
Hajime Hoshi
f282a57a69
Revert "examples/shader: Merge generate.go and main.go"
...
This reverts commit fec9cae66a
.
Reason: go generate failed without the build tag
2020-08-10 21:52:18 +09:00
Hajime Hoshi
fec9cae66a
examples/shader: Merge generate.go and main.go
2020-08-10 21:12:34 +09:00
Tom Lister
6e5a9a4534
examples/shader: Add the chromatic aberration example ( #1288 )
...
Updates #1284
2020-08-10 21:08:53 +09:00
Hajime Hoshi
8dec91db43
examples/shader: Add the radial blur example
...
Updates #1284
2020-08-10 05:16:44 +09:00
Ishmeet
c352e69689
examples: Add a snake game ( #1276 )
2020-08-01 02:00:45 +09:00
Hajime Hoshi
0b3f846b47
examples/text: Update the title
2020-07-30 03:11:06 +09:00
Hajime Hoshi
481c160c2a
text: Replace MeasureString with BoundString
...
Fixes #1272
2020-07-30 00:51:10 +09:00