public static class

Mesh.AllocationBuilder

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

类概述

Mesh builder object. It starts empty and requires the user to add all the vertex and index allocations that comprise the mesh

摘要

公有构造方法
Mesh.AllocationBuilder( RenderScript rs)
公有方法
Mesh.AllocationBuilder addIndexSetAllocation( Allocation a, Mesh.Primitive p)
Adds an allocation containing index buffer data and index type to the builder
Mesh.AllocationBuilder addIndexSetType( Mesh.Primitive p)
Adds an index set type to the builder
Mesh.AllocationBuilder addVertexAllocation( Allocation a)
Adds an allocation containing vertex buffer data to the builder
Mesh create()
Create a Mesh object from the current state of the builder
int getCurrentIndexSetIndex()
int getCurrentVertexTypeIndex()
[Expand]
Inherited Methods
From class java.lang.Object

公有构造方法

public Mesh.AllocationBuilder (RenderScript rs)

Since: API Level 11

公有方法

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

Since: API Level 11

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

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

Adds an allocation containing vertex buffer data to the builder

Parameters
a vertex data allocation
Returns
  • this

public Mesh create ()

Since: API Level 11

Create a Mesh object from the current state of the builder

public int getCurrentIndexSetIndex ()

Since: API Level 11

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

public int getCurrentVertexTypeIndex ()

Since: API Level 11

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