Hello. I've just saw latest commits with same getTexImage wrapper method (copyToBufferedImage),
but it has narrow usage and has some internal logic to pack data to make buffered image. I'm suggesting move out all such things out of LoadedTexture to clients and remain only write to TextureData data, as buffer-with-format passed to cross-platform method. Clients could easily manipulate TextureData.buffer, or just make BufferedImage( TextureData ).
Hello. I've just saw latest commits with same
getTexImage
wrapper method (copyToBufferedImage
), but it has narrow usage and has some internal logic to pack data to make buffered image. I'm suggesting move out all such things out ofLoadedTexture
to clients and remain only write to TextureData data, as buffer-with-format passed to cross-platform method. Clients could easily manipulate TextureData.buffer, or just makeBufferedImage( TextureData )
.What do you think? Thanks