Skip to content

Most visited

Recently visited

navigation

Mesh.Builder | Android Developers

to top
Android APIs
Added in API level 11
Deprecated since API level 16
public static class

Mesh.Builder

extends Object
java.lang.Object
   ↳ android.renderscript.Mesh.Builder

This class was deprecated in API level 16.
in API 16 Mesh builder object. It starts empty and requires you to add the types necessary to create vertex and index allocations.

Summary

Public Constructors
Mesh.Builder(RenderScript rs, int usage)
This constructor was deprecated in API level 16. in API 16 Creates builder object
Public Methods
Mesh.Builder addIndexSetType(Mesh.Primitive p)
This method was deprecated in API level 16. in API 16 Adds an index set primitive type to the builder object
Mesh.Builder addIndexSetType(Element e, int size, Mesh.Primitive p)
This method was deprecated in API level 16. in API 16 Adds an index set data type to the builder object
Mesh.Builder addIndexSetType(Type t, Mesh.Primitive p)
This method was deprecated in API level 16. in API 16 Adds an index set data type to the builder object
Mesh.Builder addVertexType(Element e, int size)
This method was deprecated in API level 16. in API 16 Adds a vertex data type to the builder object
Mesh.Builder addVertexType(Type t)
This method was deprecated in API level 16. in API 16 Adds a vertex data type to the builder object
Mesh create()
This method was deprecated in API level 16. in API 16 Create a Mesh object from the current state of the builder
int getCurrentIndexSetIndex()
This method was deprecated in API level 16. in API 16
int getCurrentVertexTypeIndex()
This method was deprecated in API level 16. in API 16
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Mesh.Builder (RenderScript rs, int usage)

Added in API level 11

This constructor was deprecated in API level 16.
in API 16 Creates builder object

Parameters
rs Context to which the mesh will belong.
usage specifies how the mesh allocations are to be handled, whether they need to be uploaded to a buffer on the gpu, maintain a cpu copy, etc

Public Methods

public Mesh.Builder addIndexSetType (Mesh.Primitive p)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Adds an index set primitive type to the builder object

Parameters
p primitive type
Returns
  • this

public Mesh.Builder addIndexSetType (Element e, int size, Mesh.Primitive p)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Adds an index set data type to the builder object

Parameters
e element describing the index set data layout
size number of elements in the buffer
p primitive type
Returns
  • this

public Mesh.Builder addIndexSetType (Type t, Mesh.Primitive p)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Adds an index set data type to the builder object

Parameters
t type of the index set data, could be null
p primitive type
Returns
  • this

public Mesh.Builder addVertexType (Element e, int size)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Adds a vertex data type to the builder object

Parameters
e element describing the vertex data layout
size number of elements in the buffer
Returns
  • this

public Mesh.Builder addVertexType (Type t)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Adds a vertex data type to the builder object

Parameters
t type of the vertex data allocation to be created
Returns
  • this

public Mesh create ()

Added in API level 11

This method was deprecated in API level 16.
in API 16 Create a Mesh object from the current state of the builder

public int getCurrentIndexSetIndex ()

Added in API level 11

This method was deprecated in API level 16.
in API 16

Returns
  • internal index of the last index set added to the builder

public int getCurrentVertexTypeIndex ()

Added in API level 11

This method was deprecated in API level 16.
in API 16

Returns
  • internal index of the last vertex buffer type added to builder
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.