org.rajawali3d.materials.textures / TextureManager

TextureManager

class TextureManager : AResourceManager
class TextureManager : AResourceManager

A singleton class that keeps track of all textures used by the application. All textures will be restored when the OpenGL context is being recreated. This however needs to be indicated by setting ATexture#shouldRecycle(boolean) to true (which is the default). It will then keep a reference to the Bitmap which means the application will take up more memory.

The advantage of storing the Bitmap in memory is that it the texture can quickly be recovered when the context is restored.

Author
dennis.ippel