public class

BuildableTextureAtlas

extends Object
implements ITextureAtlas<T extends ITextureAtlasSource>
java.lang.Object
   ↳ org.anddev.andengine.opengl.texture.atlas.buildable.BuildableTextureAtlas<T extends org.anddev.andengine.opengl.texture.source.ITextureAtlasSource, A extends org.anddev.andengine.opengl.texture.atlas.ITextureAtlas<T>>
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(A pTextureAtlas)
Public Methods
void addTextureAtlasSource(T pTextureAtlasSource, Callback<T> pCallback)
When all ITextureAtlasSourceMAGIC_CONSTANT are added you have to call build(ITextureBuilder).
void addTextureAtlasSource(T pTextureAtlasSource, int pTexturePositionX, int pTexturePositionY)
This method is deprecated. Use BuildableTextureAtlas#addTextureAtlasSource(ITextureAtlasSource) instead.
void bind(GL10 pGL)
void build(ITextureBuilder<T, A> pTextureAtlasSourcePackingAlgorithm)
May draw over already added ITextureAtlasSourceMAGIC_CONSTANT.
void clearTextureAtlasSources()
int getHardwareTextureID()
int getHeight()
TextureOptions getTextureOptions()
ITextureAtlasStateListener<T> getTextureStateListener()
int getWidth()
boolean hasTextureStateListener()
boolean isLoadedToHardware()
boolean isUpdateOnHardwareNeeded()
void loadToHardware(GL10 pGL)
void reloadToHardware(GL10 pGL)
void removeTextureAtlasSource(ITextureAtlasSource pTextureAtlasSource)
Removes a ITextureAtlasSource before build(ITextureBuilder) is called.
void removeTextureAtlasSource(T pTextureAtlasSource, int pTexturePositionX, int pTexturePositionY)
void setLoadedToHardware(boolean pLoadedToHardware)
void setUpdateOnHardwareNeeded(boolean pUpdateOnHardwareNeeded)
void unloadFromHardware(GL10 pGL)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.anddev.andengine.opengl.texture.ITexture
From interface org.anddev.andengine.opengl.texture.atlas.ITextureAtlas

Public Constructors

public BuildableTextureAtlas (A pTextureAtlas)

Public Methods

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

When all ITextureAtlasSourceMAGIC_CONSTANT are added you have to call build(ITextureBuilder).

Parameters
pTextureAtlasSource to be added.

public void addTextureAtlasSource (T pTextureAtlasSource, int pTexturePositionX, int pTexturePositionY)

This method is deprecated.
Use BuildableTextureAtlas#addTextureAtlasSource(ITextureAtlasSource) instead.

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

public void bind (GL10 pGL)

public void build (ITextureBuilder<T, A> pTextureAtlasSourcePackingAlgorithm)

May draw over already added ITextureAtlasSourceMAGIC_CONSTANT.

Parameters
pTextureAtlasSourcePackingAlgorithm the ITextureBuilder to use for packing the ITextureAtlasSource in this BuildableBitmapTextureAtlas.

public void clearTextureAtlasSources ()

public int getHardwareTextureID ()

public int getHeight ()

public TextureOptions getTextureOptions ()

public ITextureAtlasStateListener<T> getTextureStateListener ()

public int getWidth ()

public boolean hasTextureStateListener ()

public boolean isLoadedToHardware ()

public boolean isUpdateOnHardwareNeeded ()

public void loadToHardware (GL10 pGL)

Throws
IOException

public void reloadToHardware (GL10 pGL)

Throws
IOException

public void removeTextureAtlasSource (ITextureAtlasSource pTextureAtlasSource)

Removes a ITextureAtlasSource before build(ITextureBuilder) is called.

public void removeTextureAtlasSource (T pTextureAtlasSource, int pTexturePositionX, int pTexturePositionY)

public void setLoadedToHardware (boolean pLoadedToHardware)

public void setUpdateOnHardwareNeeded (boolean pUpdateOnHardwareNeeded)

public void unloadFromHardware (GL10 pGL)