Package textures
Class TextureMap
java.lang.Object
textures.TextureMap
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextureMap
com.badlogic.gdx.graphics.Texture
getTexture
(String path) Searches the HashMap for the matching texture and returns it.
-
Method Details
-
getInstance
-
getTexture
Searches the HashMap for the matching texture and returns it. If the texture is not stored in the HashMap, it is created and saved in.- Parameters:
path
- to texture- Returns:
- the Texture
-