java.lang.Object | ||
↳ | android.renderscript.BaseObj | |
↳ | android.renderscript.FileA3D |
FileA3D allows users to load Renderscript objects from files or resources stored on disk. It could be used to load items such as 3D geometry data converted to a Renderscript format from content creation tools. Currently only meshes are supported in FileA3D. When successfully loaded, FileA3D will contain a list of index entries for all the objects stored inside it.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FileA3D.EntryType | Specifies what renderscript object type is contained within the FileA3D IndexEntry | ||||||||||
FileA3D.IndexEntry | IndexEntry contains information about one of the Renderscript objects inside the file's index. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a FileA3D object from an asset stored on disk
| |||||||||||
Creates a FileA3D object from a file stored on disk
| |||||||||||
Creates a FileA3D object from a file stored on disk
| |||||||||||
Creates a FileA3D object from an application resource
| |||||||||||
Returns an index entry from the list of all objects inside
FileA3D
| |||||||||||
Returns the number of objects stored inside the a3d file
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.renderscript.BaseObj
| |||||||||||
From class
java.lang.Object
|
Creates a FileA3D object from an asset stored on disk
rs | Context to which the object will belong. |
---|---|
mgr | asset manager used to load asset |
path | location of the file to load |
Creates a FileA3D object from a file stored on disk
rs | Context to which the object will belong. |
---|---|
path | location of the file to load |
Creates a FileA3D object from a file stored on disk
rs | Context to which the object will belong. |
---|---|
path | location of the file to load |
Creates a FileA3D object from an application resource
rs | Context to which the object will belong. |
---|---|
res | resource manager used for loading |
id | resource to create FileA3D from |
Returns an index entry from the list of all objects inside FileA3D
index | number of the entry from the list to return |
---|
Returns the number of objects stored inside the a3d file