public static final enum

Mesh.Primitive

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ android.renderscript.Mesh.Primitive

Class Overview

Describes the way mesh vertex data is interpreted when rendering

Summary

Enum Values
Mesh.Primitive  LINE  Vertex pairs will be rendered as lines  
Mesh.Primitive  LINE_STRIP  Vertex data will be rendered as a connected line strip  
Mesh.Primitive  POINT  Vertex data will be rendered as a series of points  
Mesh.Primitive  TRIANGLE  Vertices will be rendered as individual triangles  
Mesh.Primitive  TRIANGLE_FAN  Vertices will be rendered as a sequence of triangles that all share first vertex as the origin  
Mesh.Primitive  TRIANGLE_STRIP  Vertices will be rendered as a connected triangle strip defined by the first three vertices with each additional triangle defined by a new vertex  
Public Methods
static Mesh.Primitive valueOf(String name)
final static Primitive[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Mesh.Primitive LINE

Since: API Level

Vertex pairs will be rendered as lines

public static final Mesh.Primitive LINE_STRIP

Since: API Level

Vertex data will be rendered as a connected line strip

public static final Mesh.Primitive POINT

Since: API Level

Vertex data will be rendered as a series of points

public static final Mesh.Primitive TRIANGLE

Since: API Level

Vertices will be rendered as individual triangles

public static final Mesh.Primitive TRIANGLE_FAN

Since: API Level

Vertices will be rendered as a sequence of triangles that all share first vertex as the origin

public static final Mesh.Primitive TRIANGLE_STRIP

Since: API Level

Vertices will be rendered as a connected triangle strip defined by the first three vertices with each additional triangle defined by a new vertex

Public Methods

public static Mesh.Primitive valueOf (String name)

Since: API Level 11

public static final Primitive[] values ()

Since: API Level 11