Class SpritesheetTexture

java.lang.Object
com.xebisco.yield.FileInput
com.xebisco.yield.texture.SpritesheetTexture
All Implemented Interfaces:
Closeable, AutoCloseable

public class SpritesheetTexture extends FileInput implements Closeable
A SpritesheetTexture represents a texture loaded from a spritesheet. It extends FileInput and implements Closeable.
  • Constructor Details

  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • imageRef

      public Object imageRef()
      Returns the reference to the image object associated with this texture.
      Returns:
      The reference to the image object.
    • setImageRef

      public SpritesheetTexture setImageRef(Object imageRef)
      Sets the image reference for this texture.
      Parameters:
      imageRef - The reference to the image object.
      Returns:
      This instance of SpritesheetTexture for method chaining.
    • size

      public ImmutableVector2D size()
      Returns the size of the spritesheet texture.
      Returns:
      The size of the spritesheet texture.
    • textureManager

      public TextureManager textureManager()
      Returns the TextureManager responsible for loading and unloading textures.
      Returns:
      The TextureManager.
    • getIoManager

      public FileIOManager getIoManager()
      Returns the FileIOManager responsible for reading and writing files.
      Returns:
      The FileIOManager.