Skip to content

Most visited

Recently visited

navigation

FileA3D | Android Developers

to top
Android APIs
public class

FileA3D

extends BaseObj
java.lang.Object
   ↳ android.renderscript.BaseObj
     ↳ android.renderscript.FileA3D

This class was deprecated in API level 16.
in API 16 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.

Summary

Nested Classes
enum FileA3D.EntryType This enum was deprecated in API level 16. in API 16 Specifies what renderscript object type is contained within the FileA3D IndexEntry  
class FileA3D.IndexEntry This class was deprecated in API level 16. 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.  
Public Methods
static FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path)
This method was deprecated in API level 16. in API 16 Creates a FileA3D object from an asset stored on disk
static FileA3D createFromFile(RenderScript rs, String path)
This method was deprecated in API level 16. in API 16 Creates a FileA3D object from a file stored on disk
static FileA3D createFromFile(RenderScript rs, File path)
This method was deprecated in API level 16. in API 16 Creates a FileA3D object from a file stored on disk
static FileA3D createFromResource(RenderScript rs, Resources res, int id)
This method was deprecated in API level 16. in API 16 Creates a FileA3D object from an application resource
FileA3D.IndexEntry getIndexEntry(int index)
This method was deprecated in API level 16. in API 16 Returns an index entry from the list of all objects inside FileA3D
int getIndexEntryCount()
This method was deprecated in API level 16. in API 16 Returns the number of objects stored inside the a3d file
[Expand]
Inherited Methods
From class android.renderscript.BaseObj
From class java.lang.Object

Public Methods

public static FileA3D createFromAsset (RenderScript rs, AssetManager mgr, String path)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Creates a FileA3D object from an asset stored on disk

Parameters
rs Context to which the object will belong.
mgr asset manager used to load asset
path location of the file to load
Returns
  • a3d file containing renderscript objects

public static FileA3D createFromFile (RenderScript rs, String path)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Creates a FileA3D object from a file stored on disk

Parameters
rs Context to which the object will belong.
path location of the file to load
Returns
  • a3d file containing renderscript objects

public static FileA3D createFromFile (RenderScript rs, File path)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Creates a FileA3D object from a file stored on disk

Parameters
rs Context to which the object will belong.
path location of the file to load
Returns
  • a3d file containing renderscript objects

public static FileA3D createFromResource (RenderScript rs, Resources res, int id)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Creates a FileA3D object from an application resource

Parameters
rs Context to which the object will belong.
res resource manager used for loading
id resource to create FileA3D from
Returns
  • a3d file containing renderscript objects

public FileA3D.IndexEntry getIndexEntry (int index)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Returns an index entry from the list of all objects inside FileA3D

Parameters
index number of the entry from the list to return
Returns
  • entry in the a3d file described by the index

public int getIndexEntryCount ()

Added in API level 11

This method was deprecated in API level 16.
in API 16 Returns the number of objects stored inside the a3d file

Returns
  • the number of objects stored inside the a3d file
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.