Package games.pixscape.runtime.service
Class TextureRegistry
java.lang.Object
games.pixscape.runtime.service.TextureRegistry
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()static com.badlogic.gdx.graphics.TexturegetByHandle(int handle) static inthandleOf(com.badlogic.gdx.graphics.Texture t) static voidreserveHandle(int handle, com.badlogic.gdx.graphics.Texture t) Assigns (or reassigns) a reserved handle to a given texture.
-
Field Details
-
INVALID_HANDLE
public static final int INVALID_HANDLE- See Also:
-
WHITE_HANDLE
public static final int WHITE_HANDLE- See Also:
-
-
Method Details
-
reserveHandle
public static void reserveHandle(int handle, com.badlogic.gdx.graphics.Texture t) Assigns (or reassigns) a reserved handle to a given texture. -
handleOf
public static int handleOf(com.badlogic.gdx.graphics.Texture t) -
getByHandle
public static com.badlogic.gdx.graphics.Texture getByHandle(int handle) -
clear
public static void clear()
-