Package com.shr4pnel.casino.util
Class TextureManager
java.lang.Object
com.shr4pnel.casino.util.TextureManager
Manages loading and fetching of textures
- Since:
- 0.1.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TextureManager
public TextureManager()
-
-
Method Details
-
preload
public void preload()Load all files present in assets/card- See Also:
-
getImage
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
-