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
b9c24f786a
ebiten: add BenchmarkDrawTriangles
2024-08-11 16:41:19 +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
6cdabf09d1
ebiten: guarantee invalid color values are not clamped
...
Closes #2798
2024-03-13 12:03:44 +09:00
Hajime Hoshi
2f894cb311
internal/buffered: move tests to internal/beforemaintest
...
Also, this change moves TestUnsyncedPixels to buffered_test.
2024-01-16 13:07:10 +09:00
Hajime Hoshi
7b3eae3dcb
internal/ui: reland: move dotsBuffer from internal/ui.Image to internal/buffered.Image
...
This is a reland of fb426cd0dd
.
This is a refactoring as 'caching' things should be in internal/buffered,
but also this is a performance optimization to make pixels and dotsBuffer
work well together.
2024-01-16 12:45:43 +09:00
bsski
b8df1217c3
all: fix typos ( #2864 )
2023-12-17 22:42:34 +09:00
Hajime Hoshi
3ca6184294
ebiten: add a new FillRule: NonZero
...
Closes #2782
2023-11-06 12:11:38 +09:00
Hajime Hoshi
1f95c98969
internal/graphics: reland: change the definition of MaxVerticesCount
...
Updates #2612
2023-11-04 16:02:22 +09:00
Hajime Hoshi
3a632be0c7
Revert "internal/graphics: change the definition of MaxVerticesCount"
...
This reverts commit 3047ad202a
.
Reason: Failed to build for 32bit architectures
Updates #2612
2023-11-04 15:10:31 +09:00
Hajime Hoshi
3047ad202a
internal/graphics: change the definition of MaxVerticesCount
...
Updates #2612
2023-11-04 14:38:34 +09:00
Hajime Hoshi
f2544a1bd9
internal/graphicsdriver: use []uint32 instead of []uint16 for indices
...
Updates #2612
2023-11-04 04:39:17 +09:00
Hajime Hoshi
c01ceeaa6a
ebiten: replace (*Image).Dispose with Deallocate
...
Closes #2808
2023-11-03 17:45:39 +09:00
Hajime Hoshi
567e2fa04c
ebiten: add BlendOperationMin
and BlendOperationMax
...
Closes #2395
2023-10-13 01:56:33 +09:00
Hajime Hoshi
9ed3c89594
internal/graphicscommand: remove an image from imageWithBuffers whenever possible
2023-10-08 19:43:58 +09:00
Hajime Hoshi
b95228a8a6
all: rename arguments in Kage
...
Closes #2767
2023-09-24 16:46:36 +09:00
Hajime Hoshi
3678b20c5d
ebiten: bug fix: DrawImage/DrawRectShader unexpectedly modified the given options
...
Closes #2733
2023-08-27 01:40:37 +09:00
Hajime Hoshi
e1386e2032
ebiten: add restrictions for values in indices at DrawTriangles*
...
Closes #2611
2023-03-23 21:09:37 +09:00
Hajime Hoshi
31273c875f
internal/graphics: rename constants
2023-03-23 20:48:39 +09:00
Hajime Hoshi
ce9274a29d
ebiten: remove the restriction for len(indices) at Draw*
...
Closes #2460
2023-03-23 20:01:15 +09:00
Hajime Hoshi
ae625255f2
ebiten: add TestImageTooManyDrawImage2
2023-03-20 02:03:57 +09:00
Hajime Hoshi
264f0bad42
internal/graphicsdriver/directx: reduce memory usages when reading pixels
...
Updates #2294
Updates #2582
2023-02-28 22:55:21 +09:00
Hajime Hoshi
f6b48cb57c
ebiten: reland: improve anti-alias test
2023-02-19 23:48:22 +09:00
Hajime Hoshi
da33f39259
Revert "ebiten: improve anti-alias test"
...
This reverts commit ebb687562f
.
Reason: test failures: https://github.com/hajimehoshi/ebiten/actions/runs/4216421788/jobs/7318236488x
2023-02-19 22:57:47 +09:00
Hajime Hoshi
ebb687562f
ebiten: improve anti-alias test
2023-02-19 21:59:41 +09:00
Hajime Hoshi
961c34efb5
internal/ui: use a small buffer image for anti-alias
...
Closes #2399
2023-02-19 17:35:43 +09:00
Hajime Hoshi
5df69f6dcc
ebiten: update tests
2023-02-19 16:19:54 +09:00
Pierre Curto
4de807cc44
all: fix typos ( #2558 )
...
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 19:06:38 +09:00
Hajime Hoshi
f054a7634a
ebiten: deprecate (*Image).Size
...
Closes #2351
2023-01-20 01:26:37 +09:00
Hajime Hoshi
156c34a316
ebiten: separate a package for ColorM: colorm
...
Closes #2171
2022-11-08 23:50:04 +09:00
Hajime Hoshi
4c5f019db3
ebiten: add TestImageSetAndSubImage
...
Updates #2428
2022-11-02 12:35:21 +09:00
Hajime Hoshi
8d854cbb82
ebiten: rename ColorSclaeFormat -> ColorScaleMode
2022-11-01 13:09:52 +09:00
Hajime Hoshi
3eff8bcfa3
ebiten: add TestImageColorMScale
2022-10-31 14:35:26 +09:00
Hajime Hoshi
f04e391cb4
all: rename emptyImage -> whiteImage
2022-10-21 15:26:56 +09:00
Hajime Hoshi
9ec23ddeb4
ebiten: add DrawTrianglesOptions.AntiAlias
and DrawTrianglesShaderOptions.AntiAlias
...
Closes #2385
2022-10-21 02:07:41 +09:00
Hajime Hoshi
6e9e57b3bd
ebiten: skip slow tests on 32bit Windows
...
Updates #2332
Updates #2382
2022-10-18 01:02:44 +09:00
Hajime Hoshi
da5f5ea327
ebiten: add blend factors
...
Updates #2382
2022-10-18 00:21:13 +09:00
Hajime Hoshi
15ae074c43
ebiten: clean up tests
2022-10-17 11:45:31 +09:00
Hajime Hoshi
180e456a8e
ebiten: rename members of Blend
...
Updates #2382
2022-10-17 00:51:55 +09:00
Hajime Hoshi
e03825bf08
ebiten: add BlendOperationSubtract and BlendOperationReverseSubtract
...
Updates #2382
2022-10-17 00:30:24 +09:00
Hajime Hoshi
b79495761e
ebiten: add Blend and deprecate CompositeMode
...
Updates #2382
2022-10-16 22:47:00 +09:00
Hajime Hoshi
058b8d5635
ebiten: add ColorScaleFormat to DrawTrianglesOptions
...
Closes #2365
2022-10-02 14:14:11 +09:00
Hajime Hoshi
f6c4b29a3d
ebiten: add TestImageColorMAndScale
2022-10-02 01:02:29 +09:00
Hajime Hoshi
0217ed0544
ebiten: add WritePixels replacing ReplacePixels
...
Closes #2236
2022-08-08 03:50:27 +09:00
Hajime Hoshi
ea04e2a9de
ebiten: remove returning error from ReadPixels
...
- As ReadPixels should often be used at Draw, error handling would be hard.
- Make the API consistent with ReplacePixels.
Updates #1995
2022-08-08 02:48:25 +09:00
Hajime Hoshi
c382cb2b05
ebiten: use %v for consistency
2022-08-08 01:43:11 +09:00
Hajime Hoshi
81bd5b488c
ebiten: add (*Image).ReadPixels
...
Closes #1995
2022-08-08 01:42:26 +09:00
mattn
2bacecca24
fix typos ( #2227 )
2022-08-03 22:40:39 +09:00
Hajime Hoshi
b48c2aa103
internal/graphicsdriver/directx: bug fix: too many constant buffers could be allocated
...
Closes #2204
2022-07-15 03:40:24 +09:00