java.lang.Object | |
↳ | android.renderscript.Mesh.Builder |
Mesh builder object. It starts empty and requires you to add the types necessary to create vertex and index allocations.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates builder object
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds an index set primitive type to the builder object
| |||||||||||
Adds an index set data type to the builder object
| |||||||||||
Adds an index set data type to the builder object
| |||||||||||
Adds a vertex data type to the builder object
| |||||||||||
Adds a vertex data type to the builder object
| |||||||||||
Create a Mesh object from the current state of the builder
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates builder object
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 |
Adds an index set primitive type to the builder object
p | primitive type |
---|
Adds an index set data type to the builder object
e | element describing the index set data layout |
---|---|
size | number of elements in the buffer |
p | primitive type |
Adds an index set data type to the builder object
t | type of the index set data, could be null |
---|---|
p | primitive type |
Adds a vertex data type to the builder object
e | element describing the vertex data layout |
---|---|
size | number of elements in the buffer |
IllegalStateException |
---|
Adds a vertex data type to the builder object
t | type of the vertex data allocation to be created |
---|
IllegalStateException |
---|
Create a Mesh object from the current state of the builder