Class TextureLoader

java.lang.Object
dev.kyzel.utils.TextureLoader

public class TextureLoader extends Object
A class to handle loading texture.
  • Constructor Details

    • TextureLoader

      public TextureLoader()
  • Method Details

    • loadImage

      public static BufferedImage loadImage(String path)
      Attempts to load an image from the given path.
      Parameters:
      path - the path of the image
      Returns:
      the loaded image if loaded successfully, null otherwise