Package dev.prozilla.pine.common.asset
Interface Asset
- All Superinterfaces:
Destructible
- All Known Subinterfaces:
TextureBase
- All Known Implementing Classes:
AudioSource
,Font
,Image
,Shader
,StyleSheet
,Texture
,TextureArrayLayer
Represents a type of asset, like images, audio or text.
-
Method Summary
-
Method Details
-
getPath
String getPath()Returns the path to the file this asset was loaded from.- Returns:
- The path of this asset.
-
destroy
void destroy()Removes this asset from the asset pool and deletes it.- Specified by:
destroy
in interfaceDestructible
-