public class

BuildableTextureAtlas

extends Object
implements IBuildableTextureAtlas<S extends ITextureAtlasSource, T extends ITextureAtlas<S>>
java.lang.Object
   ↳ org.andengine.opengl.texture.atlas.buildable.BuildableTextureAtlas<S extends org.andengine.opengl.texture.atlas.source.ITextureAtlasSource, T extends org.andengine.opengl.texture.atlas.ITextureAtlas<S>>
Known Direct Subclasses

Class Overview

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

Summary

Nested Classes
class BuildableTextureAtlas.TextureAtlasSourceWithWithLocationCallback<T extends ITextureAtlasSource>  
Public Constructors
BuildableTextureAtlas(T pTextureAtlas)
Public Methods
void addEmptyTextureAtlasSource(int pTextureX, int pTextureY, int pWidth, int pHeight)
void addTextureAtlasSource(S pTextureAtlasSource, int pTextureX, int pTextureY)
Most likely this is not the method you'd want to be using, as the ITextureAtlasSource won't get built through this BuildableTextureAtlas.
void addTextureAtlasSource(S pTextureAtlasSource, int pTextureX, int pTextureY, int pTextureAtlasSourcePadding)
Most likely this is not the method you'd want to be using, as the ITextureAtlasSource won't get built through this BuildableTextureAtlas.
void addTextureAtlasSource(S pTextureAtlasSource, Callback<S> pCallback)
When all ITextureAtlasSources are added you have to call build(ITextureAtlasBuilder).
void bind(GLState pGLState)
void bind(GLState pGLState, int pGLActiveTexture)
IBuildableTextureAtlas<S, T> build(ITextureAtlasBuilder<S, T> pTextureAtlasBuilder)
May draw over already added ITextureAtlasSource.
void clearTextureAtlasSources()
int getHardwareTextureID()
int getHeight()
PixelFormat getPixelFormat()
ITextureAtlasStateListener<S> getTextureAtlasStateListener()
TextureOptions getTextureOptions()
ITextureAtlasStateListener<S> getTextureStateListener()
int getWidth()
boolean hasTextureAtlasStateListener()
boolean hasTextureStateListener()
boolean isLoadedToHardware()
boolean isUpdateOnHardwareNeeded()
void load()
void load(GLState pGLState)
void loadToHardware(GLState pGLState)
void reloadToHardware(GLState pGLState)
void removeTextureAtlasSource(ITextureAtlasSource pTextureAtlasSource)
void removeTextureAtlasSource(S pTextureAtlasSource, int pTextureX, int pTextureY)
void setNotLoadedToHardware()
void setTextureAtlasStateListener(ITextureAtlasStateListener<S> pTextureAtlasStateListener)
void setTextureStateListener(ITexture.ITextureStateListener pTextureStateListener)
void setUpdateOnHardwareNeeded(boolean pUpdateOnHardwareNeeded)
void unload(GLState pGLState)
void unload()
void unloadFromHardware(GLState pGLState)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.andengine.opengl.texture.ITexture
From interface org.andengine.opengl.texture.atlas.ITextureAtlas
From interface org.andengine.opengl.texture.atlas.buildable.IBuildableTextureAtlas

Public Constructors

public BuildableTextureAtlas (T pTextureAtlas)

Public Methods

public void addEmptyTextureAtlasSource (int pTextureX, int pTextureY, int pWidth, int pHeight)

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

Most likely this is not the method you'd want to be using, as the ITextureAtlasSource won't get built through this BuildableTextureAtlas.

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

Most likely this is not the method you'd want to be using, as the ITextureAtlasSource won't get built through this BuildableTextureAtlas.

public void addTextureAtlasSource (S pTextureAtlasSource, Callback<S> pCallback)

When all ITextureAtlasSources are added you have to call build(ITextureAtlasBuilder).

Parameters
pTextureAtlasSource to be added.

public void bind (GLState pGLState)

public void bind (GLState pGLState, int pGLActiveTexture)

public IBuildableTextureAtlas<S, T> build (ITextureAtlasBuilder<S, T> pTextureAtlasBuilder)

May draw over already added ITextureAtlasSource.

Parameters
pTextureAtlasBuilder the ITextureAtlasBuilder to use for building the ITextureAtlasSource in this BuildableBitmapTextureAtlas.
Returns
  • itself for method chaining.

public void clearTextureAtlasSources ()

public int getHardwareTextureID ()

public int getHeight ()

public PixelFormat getPixelFormat ()

public ITextureAtlasStateListener<S> getTextureAtlasStateListener ()

public TextureOptions getTextureOptions ()

public ITextureAtlasStateListener<S> getTextureStateListener ()

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

public int getWidth ()

public boolean hasTextureAtlasStateListener ()

public boolean hasTextureStateListener ()

See Also
  • {@link BuildableBitmapTextureAtlas#hasTextureAtlasStateListener()}

public boolean isLoadedToHardware ()

public boolean isUpdateOnHardwareNeeded ()

public void load ()

public void load (GLState pGLState)

Throws
IOException

public void loadToHardware (GLState pGLState)

Throws
IOException

public void reloadToHardware (GLState pGLState)

Throws
IOException

public void removeTextureAtlasSource (ITextureAtlasSource pTextureAtlasSource)

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

public void setNotLoadedToHardware ()

public void setTextureAtlasStateListener (ITextureAtlasStateListener<S> pTextureAtlasStateListener)

public void setTextureStateListener (ITexture.ITextureStateListener pTextureStateListener)

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

public void setUpdateOnHardwareNeeded (boolean pUpdateOnHardwareNeeded)

public void unload (GLState pGLState)

public void unload ()

public void unloadFromHardware (GLState pGLState)