Use one ImageData instance in sampler builders

Issue #59 new
Michael Ludwig
repo owner created an issue

After the first ImageData selection in a sampler builder (i.e. calling rgba()), repeated called to the same image selector should return that same instance and not wipe out previously specified image data. This way it is not necessary to have a variable for the ImageData, but you can just call rgba().mipmap(0).from(galah) repeatedly.

Selecting a different image type should either wipe it out, or throw an exception.

Comments (0)

  1. Log in to comment