Constructor and Description |
---|
Builder(RenderScript rs,
int usage)
Deprecated.
in API 16
Creates builder object
|
Modifier and Type | Method and Description |
---|---|
Mesh.Builder |
addIndexSetType(Element e,
int size,
Mesh.Primitive p)
Deprecated.
in API 16
Adds an index set data type to the builder object
|
Mesh.Builder |
addIndexSetType(Mesh.Primitive p)
Deprecated.
in API 16
Adds an index set primitive type to the builder object
|
Mesh.Builder |
addIndexSetType(Type t,
Mesh.Primitive p)
Deprecated.
in API 16
Adds an index set data type to the builder object
|
Mesh.Builder |
addVertexType(Element e,
int size)
Deprecated.
in API 16
Adds a vertex data type to the builder object
|
Mesh.Builder |
addVertexType(Type t)
Deprecated.
in API 16
Adds a vertex data type to the builder object
|
Mesh |
create()
Deprecated.
in API 16
Create a Mesh object from the current state of the builder
|
int |
getCurrentIndexSetIndex()
Deprecated.
in API 16
|
int |
getCurrentVertexTypeIndex()
Deprecated.
in API 16
|
public Builder(RenderScript rs, int usage)
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, etcpublic int getCurrentVertexTypeIndex()
public int getCurrentIndexSetIndex()
public Mesh.Builder addVertexType(Type t) throws IllegalStateException
t
- type of the vertex data allocation to be createdIllegalStateException
public Mesh.Builder addVertexType(Element e, int size) throws IllegalStateException
e
- element describing the vertex data layoutsize
- number of elements in the bufferIllegalStateException
public Mesh.Builder addIndexSetType(Type t, Mesh.Primitive p)
t
- type of the index set data, could be nullp
- primitive typepublic Mesh.Builder addIndexSetType(Mesh.Primitive p)
p
- primitive typepublic Mesh.Builder addIndexSetType(Element e, int size, Mesh.Primitive p)
e
- element describing the index set data layoutsize
- number of elements in the bufferp
- primitive typepublic Mesh create()