public class

TextureManager

extends Object
java.lang.Object
   ↳ org.andengine.opengl.texture.TextureManager

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Public Constructors
TextureManager()
Public Methods
synchronized void addMappedTexture(String pID, ITexture pTexture)
synchronized ITexture getMappedTexture(String pID)
synchronized ITexture getTexture(String pID, IInputStreamOpener pInputStreamOpener, BitmapTexture.BitmapTextureFormat pBitmapTextureFormat, TextureOptions pTextureOptions)
synchronized ITexture getTexture(String pID, AssetManager pAssetManager, String pAssetPath)
synchronized ITexture getTexture(String pID, IInputStreamOpener pInputStreamOpener, TextureOptions pTextureOptions)
synchronized ITexture getTexture(String pID, IInputStreamOpener pInputStreamOpener)
synchronized ITexture getTexture(String pID, AssetManager pAssetManager, String pAssetPath, TextureOptions pTextureOptions)
synchronized ITexture getTexture(String pID, IInputStreamOpener pInputStreamOpener, BitmapTexture.BitmapTextureFormat pBitmapTextureFormat, TextureOptions pTextureOptions, boolean pLoadToHardware)
synchronized boolean hasMappedTexture(String pID)
synchronized boolean loadTexture(ITexture pTexture)
synchronized boolean loadTexture(GLState pGLState, ITexture pTexture)
Must be called from the GL-Thread.
synchronized void onCreate()
synchronized void onDestroy()
synchronized void onReload()
synchronized ITexture removedMappedTexture(String pID)
synchronized boolean unloadTexture(GLState pGLState, ITexture pTexture)
Must be called from the GL-Thread.
synchronized boolean unloadTexture(ITexture pTexture)
synchronized void updateTextures(GLState pGLState)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TextureManager ()

Public Methods

public synchronized void addMappedTexture (String pID, ITexture pTexture)

public synchronized ITexture getMappedTexture (String pID)

public synchronized ITexture getTexture (String pID, IInputStreamOpener pInputStreamOpener, BitmapTexture.BitmapTextureFormat pBitmapTextureFormat, TextureOptions pTextureOptions)

Throws
IOException

public synchronized ITexture getTexture (String pID, AssetManager pAssetManager, String pAssetPath)

Throws
IOException

public synchronized ITexture getTexture (String pID, IInputStreamOpener pInputStreamOpener, TextureOptions pTextureOptions)

Throws
IOException

public synchronized ITexture getTexture (String pID, IInputStreamOpener pInputStreamOpener)

Throws
IOException

public synchronized ITexture getTexture (String pID, AssetManager pAssetManager, String pAssetPath, TextureOptions pTextureOptions)

Throws
IOException

public synchronized ITexture getTexture (String pID, IInputStreamOpener pInputStreamOpener, BitmapTexture.BitmapTextureFormat pBitmapTextureFormat, TextureOptions pTextureOptions, boolean pLoadToHardware)

Throws
IOException

public synchronized boolean hasMappedTexture (String pID)

public synchronized boolean loadTexture (ITexture pTexture)

Parameters
pTexture the ITexture to be loaded before the very next frame is drawn (Or prevent it from being unloaded then).
Returns

public synchronized boolean loadTexture (GLState pGLState, ITexture pTexture)

Must be called from the GL-Thread.

Parameters
pTexture the ITexture to be loaded right now, if it is not loaded.
Returns
Throws
IOException

public synchronized void onCreate ()

public synchronized void onDestroy ()

public synchronized void onReload ()

public synchronized ITexture removedMappedTexture (String pID)

public synchronized boolean unloadTexture (GLState pGLState, ITexture pTexture)

Must be called from the GL-Thread.

Parameters
pTexture the ITexture to be unloaded right now, if it is loaded.
Returns

public synchronized boolean unloadTexture (ITexture pTexture)

Parameters
pTexture the ITexture to be unloaded before the very next frame is drawn (Or prevent it from being loaded then).
Returns

public synchronized void updateTextures (GLState pGLState)