java.lang.Object
com.marginallyclever.ro3.factories.Factory
- Direct Known Subclasses:
MeshFactory,ShaderFactory,ShaderProgramFactory,TextureFactory
Base class for factories that manage resources with different lifetimes.
Factories extending this class should implement the
removeSceneResources() method to clear resources
that are not meant to persist for the lifetime of the application.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemListener(ListListener<?> listener) voidremoveItemListener(ListListener<?> listener) abstract voidClears any cached resources that are not meant to persist for the lifetime of the application.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
removeSceneResources
public abstract void removeSceneResources()Clears any cached resources that are not meant to persist for the lifetime of the application. Typically, this would clear resources with a lifetime of SCENE, while retaining those with a lifetime of APPLICATION. -
addItemListener
-
removeItemListener
-