public abstract class TextureAtlas<T extends ITextureAtlasSource> extends Texture implements ITextureAtlas<T>
ITextureAtlas.ITextureAtlasStateListener<T extends ITextureAtlasSource>| Modifier and Type | Field and Description |
|---|---|
protected int |
mHeight |
protected java.util.ArrayList<T> |
mTextureAtlasSources |
protected int |
mWidth |
HARDWARE_TEXTURE_ID_INVALID, mHardwareTextureID, mPixelFormat, mTextureManager, mTextureOptions, mTextureStateListener, mUpdateOnHardwareNeeded| Constructor and Description |
|---|
TextureAtlas(TextureManager pTextureManager,
int pWidth,
int pHeight,
PixelFormat pPixelFormat,
TextureOptions pTextureOptions,
ITextureAtlas.ITextureAtlasStateListener<T> pTextureAtlasStateListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTextureAtlasSource(T pTextureAtlasSource,
int pTextureX,
int pTextureY) |
void |
addTextureAtlasSource(T pTextureAtlasSource,
int pTextureX,
int pTextureY,
int pTextureAtlasSourcePadding) |
void |
clearTextureAtlasSources() |
int |
getHeight() |
ITextureAtlas.ITextureAtlasStateListener<T> |
getTextureAtlasStateListener() |
ITextureAtlas.ITextureAtlasStateListener<T> |
getTextureStateListener()
Deprecated.
|
int |
getWidth() |
boolean |
hasTextureAtlasStateListener() |
boolean |
hasTextureStateListener()
Deprecated.
|
void |
removeTextureAtlasSource(T pTextureAtlasSource,
int pTextureX,
int pTextureY) |
void |
setTextureAtlasStateListener(ITextureAtlas.ITextureAtlasStateListener<T> pTextureAtlasStateListener) |
void |
setTextureStateListener(ITextureStateListener pTextureStateListener)
Deprecated.
|
bind, bind, getHardwareTextureID, getPixelFormat, getTextureOptions, isLoadedToHardware, isUpdateOnHardwareNeeded, load, load, loadToHardware, reloadToHardware, setNotLoadedToHardware, setUpdateOnHardwareNeeded, unload, unload, unloadFromHardware, writeTextureToHardwareclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEmptyTextureAtlasSourcebind, bind, getHardwareTextureID, getPixelFormat, getTextureOptions, isLoadedToHardware, isUpdateOnHardwareNeeded, load, load, loadToHardware, reloadToHardware, setNotLoadedToHardware, setUpdateOnHardwareNeeded, unload, unload, unloadFromHardwareprotected final int mWidth
protected final int mHeight
protected final java.util.ArrayList<T extends ITextureAtlasSource> mTextureAtlasSources
public TextureAtlas(TextureManager pTextureManager, int pWidth, int pHeight, PixelFormat pPixelFormat, TextureOptions pTextureOptions, ITextureAtlas.ITextureAtlasStateListener<T> pTextureAtlasStateListener)
@Deprecated public boolean hasTextureStateListener()
hasTextureStateListener in interface ITextureAtlas<T extends ITextureAtlasSource>hasTextureStateListener in interface ITexturehasTextureStateListener in class Texturepublic boolean hasTextureAtlasStateListener()
hasTextureAtlasStateListener in interface ITextureAtlas<T extends ITextureAtlasSource>@Deprecated public ITextureAtlas.ITextureAtlasStateListener<T> getTextureStateListener()
getTextureStateListener in interface ITextureAtlas<T extends ITextureAtlasSource>getTextureStateListener in interface ITexturegetTextureStateListener in class TextureITextureAtlas#setTextureStateListener(ITextureAtlasStateListener)}public ITextureAtlas.ITextureAtlasStateListener<T> getTextureAtlasStateListener()
getTextureAtlasStateListener in interface ITextureAtlas<T extends ITextureAtlasSource>@Deprecated public void setTextureStateListener(ITextureStateListener pTextureStateListener)
setTextureStateListener in interface ITextureAtlas<T extends ITextureAtlasSource>setTextureStateListener in interface ITexturesetTextureStateListener in class TextureITextureAtlas#setTextureStateListener(ITextureAtlasStateListener)}public void setTextureAtlasStateListener(ITextureAtlas.ITextureAtlasStateListener<T> pTextureAtlasStateListener)
setTextureAtlasStateListener in interface ITextureAtlas<T extends ITextureAtlasSource>public void addTextureAtlasSource(T pTextureAtlasSource, int pTextureX, int pTextureY) throws java.lang.IllegalArgumentException
addTextureAtlasSource in interface ITextureAtlas<T extends ITextureAtlasSource>java.lang.IllegalArgumentExceptionpublic void addTextureAtlasSource(T pTextureAtlasSource, int pTextureX, int pTextureY, int pTextureAtlasSourcePadding) throws java.lang.IllegalArgumentException
addTextureAtlasSource in interface ITextureAtlas<T extends ITextureAtlasSource>java.lang.IllegalArgumentExceptionpublic void removeTextureAtlasSource(T pTextureAtlasSource, int pTextureX, int pTextureY)
removeTextureAtlasSource in interface ITextureAtlas<T extends ITextureAtlasSource>public void clearTextureAtlasSources()
clearTextureAtlasSources in interface ITextureAtlas<T extends ITextureAtlasSource>