public class FileA3D extends BaseObj
Modifier and Type | Class and Description |
---|---|
static class |
FileA3D.EntryType
Deprecated.
in API 16
Specifies what renderscript object type is contained within
the FileA3D IndexEntry
|
static class |
FileA3D.IndexEntry
Deprecated.
in API 16
IndexEntry contains information about one of the RenderScript
objects inside the file's index. It could be used to query the
object's type and also name and load the object itself if
necessary.
|
Modifier and Type | Method and Description |
---|---|
static FileA3D |
createFromAsset(RenderScript rs,
AssetManager mgr,
String path)
Deprecated.
in API 16
Creates a FileA3D object from an asset stored on disk
|
static FileA3D |
createFromFile(RenderScript rs,
File path)
Deprecated.
in API 16
Creates a FileA3D object from a file stored on disk
|
static FileA3D |
createFromFile(RenderScript rs,
String path)
Deprecated.
in API 16
Creates a FileA3D object from a file stored on disk
|
static FileA3D |
createFromResource(RenderScript rs,
Resources res,
int id)
Deprecated.
in API 16
Creates a FileA3D object from an application resource
|
FileA3D.IndexEntry |
getIndexEntry(int index)
Deprecated.
in API 16
Returns an index entry from the list of all objects inside
FileA3D
|
int |
getIndexEntryCount()
Deprecated.
in API 16
Returns the number of objects stored inside the a3d file
|
public int getIndexEntryCount()
public FileA3D.IndexEntry getIndexEntry(int index)
index
- number of the entry from the list to returnpublic static FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path)
rs
- Context to which the object will belong.mgr
- asset manager used to load assetpath
- location of the file to loadpublic static FileA3D createFromFile(RenderScript rs, String path)
rs
- Context to which the object will belong.path
- location of the file to loadpublic static FileA3D createFromFile(RenderScript rs, File path)
rs
- Context to which the object will belong.path
- location of the file to loadpublic static FileA3D createFromResource(RenderScript rs, Resources res, int id)
rs
- Context to which the object will belong.res
- resource manager used for loadingid
- resource to create FileA3D from