Commit Graph

1104 Commits

Author SHA1 Message Date
Hajime Hoshi
db04c37f26 vector: add (*Path).ApplyGeoM
Closes #3150
Closes #3159
2024-11-09 19:06:39 +09:00
Hajime Hoshi
e860747f4c examples/lines: refactoring 2024-11-09 18:37:48 +09:00
Hajime Hoshi
1a4237213c vector: add DrawFilledPath, StrokePath, and FillRule
Updates #3150
2024-11-09 18:18:05 +09:00
Hajime Hoshi
d0db7e1b60 examples/video: put a video file in a separate server
This change also fixes an issue where a file could be closed before
the video play ends.

Closes #3116
2024-10-27 18:07:52 +09:00
Hajime Hoshi
2f5ca1af83 all: update jakecoffman/cp to v2.1.0 2024-10-17 02:07:34 +09:00
Hajime Hoshi
82b8521a6c examples/scroll: normalize the offset Y later
This change is effective when the number of items is small.
2024-10-12 20:46:42 +09:00
Hajime Hoshi
55308e2d75 examples/video: update license.md
Updates #3116
2024-09-27 13:07:22 +09:00
Hajime Hoshi
21b0e13c38 examples/video: remove unused video
Updates #3116
2024-09-27 02:06:31 +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