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

Mesh.AllocationBuilder

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

This class was deprecated in API level 16.
in API 16 Mesh builder object. It starts empty and requires the user to add all the vertex and index allocations that comprise the mesh

Summary

Public Constructors
Mesh.AllocationBuilder(RenderScript rs)
This constructor was deprecated in API level 16. in API 16
Public Methods
Mesh.AllocationBuilder addIndexSetAllocation(Allocation a, Mesh.Primitive p)
This method was deprecated in API level 16. in API 16 Adds an allocation containing index buffer data and index type to the builder
Mesh.AllocationBuilder addIndexSetType(Mesh.Primitive p)
This method was deprecated in API level 16. in API 16 Adds an index set type to the builder
Mesh.AllocationBuilder addVertexAllocation(Allocation a)
This method was deprecated in API level 16. in API 16 Adds an allocation containing vertex buffer data to the builder
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.AllocationBuilder (RenderScript rs)

Added in API level 11

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

Public Methods

public Mesh.AllocationBuilder addIndexSetAllocation (Allocation a, Mesh.Primitive p)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Adds an allocation containing index buffer data and index type to the builder

Parameters
a index set data allocation, could be null
p index set primitive type
Returns
  • this

public Mesh.AllocationBuilder addIndexSetType (Mesh.Primitive p)

Added in API level 11

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

Parameters
p index set primitive type
Returns
  • this

public Mesh.AllocationBuilder addVertexAllocation (Allocation a)

Added in API level 11

This method was deprecated in API level 16.
in API 16 Adds an allocation containing vertex buffer data to the builder

Parameters
a vertex data allocation
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