tinne26

Results 36 comments of tinne26

While this is a *terrible* idea right now, just for the sake of completeness I'll say that it would be possible to use generics to separate images into `SourceImage` and...

That's the generics part, where you would have to define a `type Image interface { DestinationImage | SourceImage }` type or something like that. It's unclear that generics are mature...

I think we have to discuss the differences between this approach and the direct use of `DrawImage` with `image.Image` instead of `ebiten.Image` to determine what's the plan in the long...

https://github.com/hajimehoshi/ebiten/issues/2053 also hinted at this being an issue (and shows how it can become an issue in practice by inverting the expected order in which characters are read when combined...

Fair point. Maybe I can benchmark after the game jam is over and see whether the performance implications are actually non-trivial with a synthetic asset loading test. If the impact...

Ughh... I wanted to benchmark, but this is really tricky. I understand we would have to add methods for direct buffer initialization through all the image chain, which is... `ebiten.Image`...

Hmm, I'd like to understand the differences / jobs of `Pixels` vs `graphicscommand.Image` and `graphicsdriver.Graphics` vs `graphicsdriver.framebuffer`.

Oh, `basePixels Pixels` is from `restorable.Image`, so from what you said I understand that this is where the underlying `[]byte` data for the image is stored. And for `graphicsdriver.Graphics` and...

Minor point, I mentioned this on discord, but to keep it here: using `uint32` directly and [`math.Float32bits`](https://pkg.go.dev/math#Float32bits) and [`math.Float32frombits`](https://pkg.go.dev/math#Float32frombits) seems more appropriate that using `[4]byte`. As far as I can...

I recently came across the same problem and luckily found this discussion. There are a couple parts that puzzle me: - OSes do this properly for cursors, but I assume...