Class ResolvedTexture

java.lang.Object
ke.ric.renderer.api.ResolvedTexture

public final class ResolvedTexture extends Object
Exact immutable RGBA8 texture evidence used by a resolved render target.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    int
    Returns texture height in pixels.
    byte[]
    Returns a defensive copy of row-major bytes in red, green, blue, alpha order.
    int
    Returns texture width in pixels.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.