Class TextureManager

java.lang.Object
com.shr4pnel.casino.util.TextureManager

public class TextureManager extends Object
Manages loading and fetching of textures
Since:
0.1.0
  • Constructor Details

    • TextureManager

      public TextureManager()
  • Method Details

    • preload

      public void preload()
      Load all files present in assets/card
      See Also:
    • getImage

      public com.badlogic.gdx.scenes.scene2d.ui.Image getImage(String path)
      Get a texture after preloading
      Parameters:
      path - The path to the texture relative to assets/
      Returns:
      The texture as an image, or null if the texture wasn't preloaded