| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkCanvas_DEFINED | 10 #ifndef SkCanvas_DEFINED |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 kTriangleStrip_VertexMode, | 821 kTriangleStrip_VertexMode, |
| 822 kTriangleFan_VertexMode | 822 kTriangleFan_VertexMode |
| 823 }; | 823 }; |
| 824 | 824 |
| 825 /** Draw the array of vertices, interpreted as triangles (based on mode). | 825 /** Draw the array of vertices, interpreted as triangles (based on mode). |
| 826 @param vmode How to interpret the array of vertices | 826 @param vmode How to interpret the array of vertices |
| 827 @param vertexCount The number of points in the vertices array (and | 827 @param vertexCount The number of points in the vertices array (and |
| 828 corresponding texs and colors arrays if non-null) | 828 corresponding texs and colors arrays if non-null) |
| 829 @param vertices Array of vertices for the mesh | 829 @param vertices Array of vertices for the mesh |
| 830 @param texs May be null. If not null, specifies the coordinate | 830 @param texs May be null. If not null, specifies the coordinate |
| 831 in texture space for each vertex. | 831 in _texture_ space (not uv space) for each vertex. |
| 832 @param colors May be null. If not null, specifies a color for each | 832 @param colors May be null. If not null, specifies a color for each |
| 833 vertex, to be interpolated across the triangle. | 833 vertex, to be interpolated across the triangle. |
| 834 @param xmode Used if both texs and colors are present. In this | 834 @param xmode Used if both texs and colors are present. In this |
| 835 case the colors are combined with the texture using mode, | 835 case the colors are combined with the texture using mode, |
| 836 before being drawn using the paint. If mode is null, then | 836 before being drawn using the paint. If mode is null, then |
| 837 kModulate_Mode is used. | 837 kModulate_Mode is used. |
| 838 @param indices If not null, array of indices to reference into the | 838 @param indices If not null, array of indices to reference into the |
| 839 vertex (texs, colors) array. | 839 vertex (texs, colors) array. |
| 840 @param indexCount number of entries in the indices array (if not null) | 840 @param indexCount number of entries in the indices array (if not null) |
| 841 @param paint Specifies the shader/texture if present. | 841 @param paint Specifies the shader/texture if present. |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 if (NULL != fCanvas) { | 1170 if (NULL != fCanvas) { |
| 1171 fCanvas->endCommentGroup(); | 1171 fCanvas->endCommentGroup(); |
| 1172 } | 1172 } |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 private: | 1175 private: |
| 1176 SkCanvas* fCanvas; | 1176 SkCanvas* fCanvas; |
| 1177 }; | 1177 }; |
| 1178 | 1178 |
| 1179 #endif | 1179 #endif |
| OLD | NEW |