java.lang.Object
dev.prozilla.pine.common.system.resource.Image
All Implemented Interfaces:
Lifecycle

public class Image extends Object implements Lifecycle
Represents an STB image with a width and a height.
  • Constructor Details

    • Image

      public Image(ByteBuffer image, int width, int height, int channels)
  • Method Details

    • getFlippedImage

      public ByteBuffer getFlippedImage()
    • getImage

      public ByteBuffer getImage()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getChannels

      public int getChannels()
    • destroy

      public void destroy()
      Description copied from interface: Lifecycle
      Destroys the object at the end of the game loop.
      Specified by:
      destroy in interface Lifecycle
    • flipImageVertically

      public static ByteBuffer flipImageVertically(ByteBuffer image, int width, int height, int channels)