public abstract class

TextureAtlas

extends Texture
implements ITextureAtlas<T extends ITextureAtlasSource>
java.lang.Object
   ↳ org.andengine.opengl.texture.Texture
     ↳ org.andengine.opengl.texture.atlas.TextureAtlas<T extends org.andengine.opengl.texture.atlas.source.ITextureAtlasSource>
Known Direct Subclasses

Class Overview

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

Summary

[Expand]
Inherited Constants
From class org.andengine.opengl.texture.Texture
Fields
protected final int mHeight
protected final ArrayList<T extends ITextureAtlasSource> mTextureAtlasSources
protected final int mWidth
[Expand]
Inherited Fields
From class org.andengine.opengl.texture.Texture
Public Constructors
TextureAtlas(TextureManager pTextureManager, int pWidth, int pHeight, PixelFormat pPixelFormat, TextureOptions pTextureOptions, ITextureAtlasStateListener<T> pTextureAtlasStateListener)
Public Methods
void addTextureAtlasSource(T pTextureAtlasSource, int pTextureX, int pTextureY, int pTextureAtlasSourcePadding)
void addTextureAtlasSource(T pTextureAtlasSource, int pTextureX, int pTextureY)
void clearTextureAtlasSources()
int getHeight()
ITextureAtlasStateListener<T> getTextureAtlasStateListener()
ITextureAtlasStateListener<T> getTextureStateListener()
int getWidth()
boolean hasTextureAtlasStateListener()
boolean hasTextureStateListener()
void removeTextureAtlasSource(T pTextureAtlasSource, int pTextureX, int pTextureY)
void setTextureAtlasStateListener(ITextureAtlasStateListener<T> pTextureAtlasStateListener)
void setTextureStateListener(ITexture.ITextureStateListener pTextureStateListener)
[Expand]
Inherited Methods
From class org.andengine.opengl.texture.Texture
From class java.lang.Object
From interface org.andengine.opengl.texture.ITexture
From interface org.andengine.opengl.texture.atlas.ITextureAtlas

Fields

protected final int mHeight

protected final ArrayList<T extends ITextureAtlasSource> mTextureAtlasSources

protected final int mWidth

Public Constructors

public TextureAtlas (TextureManager pTextureManager, int pWidth, int pHeight, PixelFormat pPixelFormat, TextureOptions pTextureOptions, ITextureAtlasStateListener<T> pTextureAtlasStateListener)

Public Methods

public void addTextureAtlasSource (T pTextureAtlasSource, int pTextureX, int pTextureY, int pTextureAtlasSourcePadding)

public void addTextureAtlasSource (T pTextureAtlasSource, int pTextureX, int pTextureY)

public void clearTextureAtlasSources ()

public int getHeight ()

public ITextureAtlasStateListener<T> getTextureAtlasStateListener ()

public ITextureAtlasStateListener<T> getTextureStateListener ()

See Also
  • {@link ITextureAtlas#setTextureStateListener(ITextureAtlasStateListener)}

public int getWidth ()

public boolean hasTextureAtlasStateListener ()

public boolean hasTextureStateListener ()

public void removeTextureAtlasSource (T pTextureAtlasSource, int pTextureX, int pTextureY)

public void setTextureAtlasStateListener (ITextureAtlasStateListener<T> pTextureAtlasStateListener)

public void setTextureStateListener (ITexture.ITextureStateListener pTextureStateListener)

See Also
  • {@link ITextureAtlas#setTextureStateListener(ITextureAtlasStateListener)}