to top
Android APIs
public static class

Mesh.AllocationBuilder

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

This class is deprecated.
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 is deprecated. in API 16
Public Methods
Mesh.AllocationBuilder addIndexSetAllocation(Allocation a, Mesh.Primitive p)
This method is deprecated. in API 16 Adds an allocation containing index buffer data and index type to the builder
Mesh.AllocationBuilder addIndexSetType(Mesh.Primitive p)
This method is deprecated. in API 16 Adds an index set type to the builder
Mesh.AllocationBuilder addVertexAllocation(Allocation a)
This method is deprecated. in API 16 Adds an allocation containing vertex buffer data to the builder
Mesh create()
This method is deprecated. in API 16 Create a Mesh object from the current state of the builder
int getCurrentIndexSetIndex()
This method is deprecated. in API 16
int getCurrentVertexTypeIndex()
This method is deprecated. in API 16
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Mesh.AllocationBuilder (RenderScript rs)

Since: API Level 11

This constructor is deprecated.
in API 16

Public Methods

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

Since: API Level 11

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

Since: API Level 11

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

Since: API Level 11

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

Parameters
a vertex data allocation
Returns
  • this

public Mesh create ()

Since: API Level 11

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

public int getCurrentIndexSetIndex ()

Since: API Level 11

This method is deprecated.
in API 16

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

public int getCurrentVertexTypeIndex ()

Since: API Level 11

This method is deprecated.
in API 16

Returns
  • internal index of the last vertex buffer type added to builder