Class TextureAllocator

java.lang.Object
dev.pfaff.altargui.texture.TextureAllocator
All Implemented Interfaces:
AutoCloseable

public final class TextureAllocator extends Object implements AutoCloseable
  • Field Details

    • MAX_TEXTURE_SIZE

      public static final int MAX_TEXTURE_SIZE
    • UNIT

      public static final int UNIT
      The minimum allocation size in pixels. Herein we often measure in "units" rather than pixels for efficiency.
  • Constructor Details

    • TextureAllocator

      public TextureAllocator(int size, int initialLayers)
      Parameters:
      size - the width and height of each layer.
  • Method Details