Class GaiaTexture

All Implemented Interfaces:
Serializable

public class GaiaTexture extends TextureStructure implements Serializable
A class that represents a texture of a Gaia object. It contains the texture name, path, type, width, height, format, byteLength, and byteBuffer. The byteBuffer is used to create a texture. The byteBuffer is created by reading the texture file.
See Also:
  • Constructor Details

    • GaiaTexture

      public GaiaTexture()
  • Method Details

    • loadImage

      public void loadImage()
    • saveImage

      public void saveImage(String savePath)
    • flipImageY

      public void flipImageY()
    • getFullPath

      public String getFullPath()
    • createImage

      public void createImage(int width, int height, int imageType)
    • fillImage

      public void fillImage(Color color)
    • loadImage

      public void loadImage(float scaleFactor)
    • resizeImage

      public void resizeImage(int width, int height)
    • getBufferedImage

      public BufferedImage getBufferedImage()
    • getBufferedImageWithCache

      public BufferedImage getBufferedImageWithCache()
    • getBufferedImage

      public BufferedImage getBufferedImage(float scaleFactor)
    • deleteObjects

      public void deleteObjects()
    • isEqualTexture

      public boolean isEqualTexture(GaiaTexture compareTexture)
      It's a slow comparison of two textures, but it's accurate.
    • isEqualTexture

      public boolean isEqualTexture(GaiaTexture compareTexture, float scaleFactor)
    • clear

      public void clear()
    • clone

      public GaiaTexture clone()