java.lang.Object | |
↳ | android.renderscript.Mesh.TriangleMeshBuilder |
This class was deprecated
in API level 16.
in API 16
Builder that allows creation of a mesh object point by point
and triangle by triangle
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | COLOR | This constant was deprecated in API level 16. in API 16 | |||||||||
int | NORMAL | This constant was deprecated in API level 16. in API 16 | |||||||||
int | TEXTURE_0 | This constant was deprecated in API level 16. in API 16 |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor was deprecated
in API level 16.
in API 16
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method was deprecated
in API level 16.
in API 16
Adds a new triangle to the mesh builder
| |||||||||||
This method was deprecated
in API level 16.
in API 16
Adds a float3 vertex to the mesh
| |||||||||||
This method was deprecated
in API level 16.
in API 16
Adds a float2 vertex to the mesh
| |||||||||||
This method was deprecated
in API level 16.
in API 16
Creates the mesh object from the current state of the builder
| |||||||||||
This method was deprecated
in API level 16.
in API 16
Sets the color for the vertices that are added after this method call.
| |||||||||||
This method was deprecated
in API level 16.
in API 16
Sets the normal vector for the vertices that are added after this method call.
| |||||||||||
This method was deprecated
in API level 16.
in API 16
Sets the texture coordinate for the vertices that are added after this method call.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This constant was deprecated
in API level 16.
in API 16
This constant was deprecated
in API level 16.
in API 16
This constant was deprecated
in API level 16.
in API 16
This constructor was deprecated
in API level 16.
in API 16
rs | Context to which the mesh will belong. |
---|---|
vtxSize | specifies whether the vertex is a float2 or float3 |
flags | bitfield that is a combination of COLOR, NORMAL, and TEXTURE_0 that specifies what vertex data channels are present in the mesh |
This method was deprecated
in API level 16.
in API 16
Adds a new triangle to the mesh builder
idx1 | index of the first vertex in the triangle |
---|---|
idx2 | index of the second vertex in the triangle |
idx3 | index of the third vertex in the triangle |
This method was deprecated
in API level 16.
in API 16
Adds a float3 vertex to the mesh
x | position x |
---|---|
y | position y |
z | position z |
This method was deprecated
in API level 16.
in API 16
Adds a float2 vertex to the mesh
x | position x |
---|---|
y | position y |
This method was deprecated
in API level 16.
in API 16
Creates the mesh object from the current state of the builder
uploadToBufferObject | specifies whether the vertex data is to be uploaded into the buffer object indicating that it's likely not going to be modified and rendered many times. Alternatively, it indicates the mesh data will be updated frequently and remain in script accessible memory |
---|
This method was deprecated
in API level 16.
in API 16
Sets the color for the vertices that are added after this method call.
r | red component |
---|---|
g | green component |
b | blue component |
a | alpha component |
This method was deprecated
in API level 16.
in API 16
Sets the normal vector for the vertices that are added after this method call.
x | normal vector x |
---|---|
y | normal vector y |
z | normal vector z |
This method was deprecated
in API level 16.
in API 16
Sets the texture coordinate for the vertices that are added after this method call.
s | texture coordinate s |
---|---|
t | texture coordinate t |