Package ke.ric.renderer.api
Class ResolvedTexture
java.lang.Object
ke.ric.renderer.api.ResolvedTexture
Exact immutable RGBA8 texture evidence used by a resolved render target.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedTexture(int width, int height, byte[] rgba8) Creates a copied texture of positive pixel dimensions; bytes must contain exactly width*height*4 row-major RGBA values. -
Method Summary
-
Constructor Details
-
ResolvedTexture
public ResolvedTexture(int width, int height, byte[] rgba8) Creates a copied texture of positive pixel dimensions; bytes must contain exactly width*height*4 row-major RGBA values.
-
-
Method Details
-
width
public int width()Returns texture width in pixels. -
height
public int height()Returns texture height in pixels. -
rgba8
public byte[] rgba8()Returns a defensive copy of row-major bytes in red, green, blue, alpha order.
-