Class TGALoader

java.lang.Object
com.jme3.texture.plugins.TGALoader
All Implemented Interfaces:
AssetLoader

public final class TGALoader extends Object implements AssetLoader
TextureManager provides static methods for building a Texture object. Typically, the information supplied is the filename and the texture properties.
  • Field Details

  • Constructor Details

    • TGALoader

      public TGALoader()
  • Method Details

    • load

      public Object load(AssetInfo info) throws IOException
      Description copied from interface: AssetLoader
      Loads asset from the given input stream, parsing it into an application-usable object.
      Specified by:
      load in interface AssetLoader
      Parameters:
      info - the located asset
      Returns:
      An object representing the resource.
      Throws:
      IOException - If an I/O error occurs while loading
    • load

      public static Image load(InputStream in, boolean flip) throws IOException
      loadImage is a manual image loader which is entirely independent of AWT. OUT: RGB888 or RGBA8888 Image object
      Parameters:
      in - InputStream of an uncompressed 24b RGB or 32b RGBA TGA
      flip - Flip the image vertically
      Returns:
      Image object that contains the image, either as a RGB888 or RGBA8888
      Throws:
      IOException - if an I/O error occurs