diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-01-17 16:10:10 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-17 16:10:10 -0800 |
commit | 44593df6fa741c22bfc76d1608160f053b91bd05 (patch) | |
tree | 4965837d15b1320cf09b4f95bfc1bf822d245f1d /graphics/java/android/renderscript/Mesh.java | |
parent | 3d7a9707a58bb043147f30dc81c61deeeffeeef7 (diff) | |
parent | ec0d3353b16741c69681577eb43ccfea435eb4ba (diff) |
Merge "More docs" into honeycomb
Diffstat (limited to 'graphics/java/android/renderscript/Mesh.java')
-rw-r--r-- | graphics/java/android/renderscript/Mesh.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/Mesh.java b/graphics/java/android/renderscript/Mesh.java index c20151ef99f7..7269cea76ecc 100644 --- a/graphics/java/android/renderscript/Mesh.java +++ b/graphics/java/android/renderscript/Mesh.java @@ -46,11 +46,32 @@ public class Mesh extends BaseObj { * **/ public enum Primitive { + /** + * Vertex data will be rendered as a series of points + */ POINT (0), + /** + * Vertex pairs will be rendered as lines + */ LINE (1), + /** + * Vertex data will be rendered as a connected line strip + */ LINE_STRIP (2), + /** + * Vertices will be rendered as individual triangles + */ TRIANGLE (3), + /** + * Vertices will be rendered as a connected triangle strip + * defined by the first three vertices with each additional + * triangle defined by a new vertex + */ TRIANGLE_STRIP (4), + /** + * Vertices will be rendered as a sequence of triangles that all + * share first vertex as the origin + */ TRIANGLE_FAN (5); int mID; |