to top
Android APIs
public class

FileA3D

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

This class is deprecated.
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 is deprecated. in API 16 Specifies what renderscript object type is contained within the FileA3D IndexEntry  
class FileA3D.IndexEntry This class is 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.  
Public Methods
static FileA3D createFromAsset(RenderScript rs, AssetManager mgr, String path)
This method is deprecated. in API 16 Creates a FileA3D object from an asset stored on disk
static FileA3D createFromFile(RenderScript rs, String path)
This method is deprecated. in API 16 Creates a FileA3D object from a file stored on disk
static FileA3D createFromFile(RenderScript rs, File path)
This method is deprecated. in API 16 Creates a FileA3D object from a file stored on disk
static FileA3D createFromResource(RenderScript rs, Resources res, int id)
This method is deprecated. in API 16 Creates a FileA3D object from an application resource
FileA3D.IndexEntry getIndexEntry(int index)
This method is deprecated. in API 16 Returns an index entry from the list of all objects inside FileA3D
int getIndexEntryCount()
This method is deprecated. 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)

Since: API Level 11

This method is deprecated.
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)

Since: API Level 11

This method is deprecated.
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)

Since: API Level 11

This method is deprecated.
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)

Since: API Level 11

This method is deprecated.
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)

Since: API Level 11

This method is deprecated.
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 ()

Since: API Level 11

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

Returns
  • the number of objects stored inside the a3d file