Commit Graph

1098 Commits

Author SHA1 Message Date
Hajime Hoshi
667d7e283e examples/video: update license.md
Updates #3116
2024-09-27 13:07:46 +09:00
Hajime Hoshi
b4f96c80d3 examples/video: remove unused video
Updates #3116
2024-09-27 02:06:57 +09:00
Hajime Hoshi
eb365c51d5 ebiten: add RequestAttention
Closes #2998
2024-09-22 00:05:00 +09:00
Hajime Hoshi
4b1ae72f59 ebiten: add Draw{Image,Triangles}Options.DisableMipmaps
Mipmaps could be unexpectedly expensive even when we don't need mipmaps.
In order to improve performance, let's add an option to disable mipmaps.

Closes #3095
2024-09-12 22:40:16 +09:00
Hajime Hoshi
4bccf9d009 all: use math/rand/v2 2024-09-12 01:17:26 +09:00
Hajime Hoshi
a4bfa6cb15 all: use Go 1.21's min/max builtin functions 2024-09-12 01:01:05 +09:00
Hajime Hoshi
faeb03373d examples: remove README 2024-09-01 12:40:34 +09:00
Hajime Hoshi
f98003bcd5 ebiten: add ColorSpace and RunGameOptions.ColorSpace
This works only for macOS Metal and WebGL so far.

Closes #2871
2024-08-28 03:03:57 +09:00
Hajime Hoshi
5f595efef0 examples/textinput: remove message
Updates #3072
2024-08-27 00:02:31 +09:00
Hajime Hoshi
df266e8acf text/v2: add Glyph.OriginOffset{X,Y}
Closes #3070
2024-08-23 03:59:16 +09:00
Hajime Hoshi
a3d084e2de text/v2: add Glyph.Origin{X,Y}
Closes #3070
2024-08-23 00:00:30 +09:00
Hajime Hoshi
35f9b1c224 ebiten: add RunGameOptions.DisableHiDPI
Closes #2987
2024-08-20 00:02:57 +09:00
Hajime Hoshi
48f79af884 shaderprecomp: retract shaderprecomp package
With #2984, we realized some considerations:

* Builtin shaders don't have to or should not be exposed.
* The shader complation processes like what the examples/shaderprecomp
  does can be provided by this package

Thus, until we decide a better API design, we'd like to retract the
package once.

Updates #2861
2024-08-18 11:09:16 +09:00
Hajime Hoshi
e8e458802d examples/vector: reduce allocations 2024-08-10 05:22:53 +09:00
Hajime Hoshi
c8aea2df16 examples/blocks: bug fix: do not ignore error 2024-07-29 17:37:30 +09:00
Hajime Hoshi
0281ac7bd2 all: use bufio.NewWriter to improve writing speed 2024-07-29 16:29:57 +09:00
Hajime Hoshi
ef5ac4175d all: use bufio.Reader to improve reading speed 2024-07-29 02:28:37 +09:00
Hajime Hoshi
268b638a15 examples/realtimepcm: use NewPlayerF32
Updates #2160
2024-07-23 01:06:44 +09:00
Hajime Hoshi
fa457f67cd examples/realtimepcm: refactoring 2024-07-23 01:01:28 +09:00
Hajime Hoshi
ce6931f81c examples/piano: use NewPlayerF32FromBytes
Updates #2160
2024-07-22 23:29:52 +09:00
Hajime Hoshi
a12e32faf9 examples/pcm: use NewPlayerF32FromBytes
Updates #2160
2024-07-22 23:29:50 +09:00
Hajime Hoshi
fd382d26ae examples/sinewave: refactoring 2024-07-22 23:29:50 +09:00
Hajime Hoshi
f717844076 examples/sinewave: use NewPlayerF32
Updates #2160
2024-07-22 23:29:48 +09:00
Hajime Hoshi
e2a93b5d30 examples/video: use NewPlayerF32
Updates #2160
2024-07-22 23:29:45 +09:00
Hajime Hoshi
f0ef1ecad0 all: add float32 version of audio APIs
This change adds these APIs

 * (*audio.Context).NewPlayerF32
 * (*audio.Context).NewPlayerF32FromBytes
 * audio.NewInfiniteLoopF32
 * audio.NewInfiniteLoopWithIntroF32
 * audio.ResampleF32
 * mp3.DecodeF32
 * vorbis.DecodeF32
 * wav.DecodeF32

Closes #2160
2024-07-21 19:12:18 +09:00
Hajime Hoshi
b749976a84 examples/resources/images: update the licenses for the Gopher images 2024-06-23 12:09:40 +09:00
Hajime Hoshi
0c3b4a2d91 examples/resources/images: update the license URLs for ebiten.png 2024-06-23 12:07:51 +09:00
Hajime Hoshi
1cd6a1f10c examples/wav: add -bits option to specify 8bits 2024-06-22 01:25:04 +09:00
Hajime Hoshi
76a170eecf examples/resources/images: update the licenses 2024-06-20 03:25:39 +09:00
Ikko Eltociear Ashimine
dc8dfae3bf
examples/windowsize: fix typo (#3022) 2024-06-16 03:42:42 +09:00
Hajime Hoshi
b121468991 ebiten: add FillRuleFillAll, FillRuleEvenOdd, and FillRuleNonZero
This change also deprecates the existing constants.

Closes #3006
2024-06-08 17:58:33 +09:00
Hajime Hoshi
4818768965 shaderprecomp: remove ShaderSourceID
`ShaderSourceID` was confusing as there was no guarantee the same ID is
used for the same source if Ebitengine versions are different.

`ShaderSource` should be kept as the built-in shader contents should not
be exposed.

Updates #2861
Closes #2999
2024-05-27 00:01:05 +09:00
Hajime Hoshi
83ae577c80 Revert "shaderprecomp: remove ShaderSource and ShaderSourceID"
This reverts commit 8be3bb41d5.

Reason: removing `ShaderSource` unexpected exposes the source.

Updates #2999
2024-05-26 22:45:12 +09:00
Hajime Hoshi
8be3bb41d5 shaderprecomp: remove ShaderSource and ShaderSourceID
This change simplifies the APIs to avoid some confusions around IDs.

Updates #2861
Closes #2999
2024-05-26 22:42:52 +09:00
Hajime Hoshi
3279688dd6 Revert "shaderprecomp: accept an ID instead of source to register"
This reverts commit ecc3f29af1.

Reason: we are considering to remove ShaderSourceID

Updates #2861
Updates #2999
2024-05-26 21:29:44 +09:00
Hajime Hoshi
ecc3f29af1 shaderprecomp: accept an ID instead of source to register
Updates #2861
2024-05-26 19:39:30 +09:00
Hajime Hoshi
1c438cb5c8 examples/shaderprecomp/fxc, examples/shaderprecomp/metallib: add go:build 2024-05-26 16:05:58 +09:00
Hajime Hoshi
002e375d64 examples/audio: remove unneeded resampling 2024-05-18 22:15:24 +09:00
Hajime Hoshi
a391da6c77 examples/shaderprecomp/metallib: stop using errgroup 2024-05-06 17:25:21 +09:00
Hajime Hoshi
10d9660125 shaderprecomp: implement for Windows
Closes #2861
2024-05-06 16:03:57 +09:00
Hajime Hoshi
42eef43136 examples/shaderprecomp: add . 2024-05-05 04:53:14 +09:00
Hajime Hoshi
c46f62e184 all: add a new package shaderprecomp
The current implementation is only for macOS so far.

Updates #2861
2024-05-05 03:51:04 +09:00
Hajime Hoshi
2bd9472d2c examples/video: performance optimization by encouraging BCE 2024-04-12 21:45:54 +09:00
Hajime Hoshi
c105224705 examples/video: show FPS 2024-04-12 15:16:26 +09:00
Hajime Hoshi
3c1d74b2d5 examples/texti18n: update comments 2024-04-12 12:28:15 +09:00
Hajime Hoshi
8467cafe74 examples/video: fix the title 2024-04-12 00:54:20 +09:00
Hajime Hoshi
4a87339a0a examples/video: use a shader to convert YCbCr to RGB 2024-04-12 00:47:10 +09:00
Hajime Hoshi
68cc017189 Revert "examples/video: reduce video FPS"
This reverts commit 6f3f58cb32.

Reason: decoding the video already follows the framerate of the MPEG
data and skips rendering when necessary, so there is no need to adjust
FPS from Update.
2024-04-11 22:43:48 +09:00
Hajime Hoshi
6f3f58cb32 examples/video: reduce video FPS 2024-04-11 22:06:20 +09:00
Hajime Hoshi
d3befbf89b examples: add an example to play a video
Closes #110
Updates #1768
Updates ebitengine/oto#235
2024-04-11 20:31:55 +09:00