public class ImageSequenceAtlas extends Atlas
Atlas.Listener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
mHeight, mImage, mListener, mMasterFrameSet, mNumSubFrameSets, mSubFrameSets, mWidth
Constructor and Description |
---|
ImageSequenceAtlas(GLState glState)
Inits and loads images from an Asset folder
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
createFrame(Texture texture,
java.lang.String frameName) |
protected void |
createFrames() |
void |
loadDir(AssetManager assetManager,
java.lang.String assetDir,
TextureOptions options)
This loads all of the images in a specific Assets's directory and draws them into the frame buffer, and blocks GL Thread.
|
void |
loadDir(AssetManager assetManager,
java.lang.String assetDir,
TextureOptions options,
java.util.Set<java.lang.String> included)
This loads all of the images in included from a specific Assets's directory and draws them into the frame buffer, and blocks GL Thread.
|
void |
loadDir(java.lang.String dir,
TextureOptions options)
This loads all of the images in a specific file system's directory and draws them into the frame buffer.
|
void |
loadDir(java.lang.String dir,
TextureOptions options,
java.util.Set<java.lang.String> included)
This loads all images in included from a specific file system's directory and draws them into the frame buffer.
|
void |
loadDirAsync(AssetManager assetManager,
java.lang.String assetDir,
TextureOptions options)
This asynchronously loads all of the images in a specific Assets's directory and draws them into the frame buffer, without blocking GL Thread.
|
void |
loadDirAsync(java.lang.String dir,
TextureOptions options)
This asynchronously loads all of the images in a specific file system's directory and draws them into the frame buffer, without blocking GL Thread.
|
addFrame, addSubFrameSet, getFrame, getFrame, getHeight, getImage, getListener, getMasterFrameSet, getNumSubFrameSets, getSubFrameSet, getSubFrameSets, getWidth, removeAllFrames, removeFrame, setListener, setSize
public ImageSequenceAtlas(GLState glState)
glState
- public void loadDir(AssetManager assetManager, java.lang.String assetDir, TextureOptions options)
assetManager
- assetDir
- gl
- public void loadDir(AssetManager assetManager, java.lang.String assetDir, TextureOptions options, java.util.Set<java.lang.String> included)
assetManager
- assetDir
- gl
- public void loadDirAsync(AssetManager assetManager, java.lang.String assetDir, TextureOptions options)
assetManager
- assetDir
- gl
- public void loadDir(java.lang.String dir, TextureOptions options)
files
- public void loadDir(java.lang.String dir, TextureOptions options, java.util.Set<java.lang.String> included)
files
- public void loadDirAsync(java.lang.String dir, TextureOptions options)
assetManager
- assetDir
- gl
- protected void createFrames()
protected boolean createFrame(Texture texture, java.lang.String frameName)