/frameworks/base/libs/hwui/ |
H A D | Caches.cpp | 346 void Caches::bindPositionVertexPointer(bool force, GLvoid* vertices, GLsizei stride) { argument 347 if (force || vertices != mCurrentPositionPointer || stride != mCurrentPositionStride) { 349 glVertexAttribPointer(slot, 2, GL_FLOAT, GL_FALSE, stride, vertices); 350 mCurrentPositionPointer = vertices; 355 void Caches::bindTexCoordsVertexPointer(bool force, GLvoid* vertices) { argument 356 if (force || vertices != mCurrentTexCoordsPointer) { 358 glVertexAttribPointer(slot, 2, GL_FLOAT, GL_FALSE, gMeshStride, vertices); 359 mCurrentTexCoordsPointer = vertices; 496 // Create the mesh, 2 triangles and 4 vertices per rectangle in the region
|
H A D | PathRenderer.cpp | 78 * from each vertex in a perimeter is calculated, the resultant lines connecting the offset vertices 155 void getStrokeVerticesFromUnclosedVertices(const Vector<Vertex>& vertices, float halfStrokeWidth, argument 157 Vertex* buffer = vertexBuffer.alloc<Vertex>(vertices.size() * 2); 160 const Vertex* current = &(vertices[0]); 162 for (unsigned int i = 0; i < vertices.size() - 1; i++) { 163 const Vertex* next = &(vertices[i + 1]); 267 void getStrokeVerticesFromUnclosedVerticesAA(const Vector<Vertex>& vertices, float halfStrokeWidth, argument 269 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * vertices.size() + 2); 281 int offset = 2 * (vertices.size() - 2); 286 const Vertex* last = &(vertices[ 583 pushToVector(Vector<Vertex>& vertices, float x, float y) argument [all...] |
H A D | Matrix.cpp | 342 float vertices[] = { local 352 float px = vertices[i]; 353 float py = vertices[i + 1]; 360 vertices[i] = x * z; 361 vertices[i + 1] = y * z; 364 r.left = r.right = vertices[0]; 365 r.top = r.bottom = vertices[1]; 368 x = vertices[i]; 369 y = vertices[i + 1];
|
H A D | Caches.h | 55 // Generates simple and textured vertices 176 void bindPositionVertexPointer(bool force, GLvoid* vertices, GLsizei stride = gMeshStride); 182 void bindTexCoordsVertexPointer(bool force, GLvoid* vertices);
|
H A D | OpenGLRenderer.cpp | 1527 void OpenGLRenderer::setupDrawMesh(GLvoid* vertices, GLvoid* texCoords, GLuint vbo) { argument 1529 if (!vertices) { 1535 mCaches.bindPositionVertexPointer(force, vertices); 1543 void OpenGLRenderer::setupDrawMeshIndices(GLvoid* vertices, GLvoid* texCoords) { argument 1545 mCaches.bindPositionVertexPointer(force, vertices); 1551 void OpenGLRenderer::setupDrawVertices(GLvoid* vertices) { argument 1553 mCaches.bindPositionVertexPointer(force, vertices, gVertexStride); 1568 void OpenGLRenderer::setupDrawAALine(GLvoid* vertices, GLvoid* widthCoords, argument 1571 mCaches.bindPositionVertexPointer(force, vertices, gAAVertexStride); 1725 float* vertices, in 1724 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument 1967 void* vertices = vertexBuffer.getBuffer(); local 2090 Vertex* vertices = &lines[0]; local 3082 drawTextureMesh(float left, float top, float right, float bottom, GLuint texture, float alpha, SkXfermode::Mode mode, bool blend, GLvoid* vertices, GLvoid* texCoords, GLenum drawMode, GLsizei elementsCount, bool swapSrcDst, bool ignoreTransform, GLuint vbo, bool ignoreScale, bool dirty) argument [all...] |
H A D | OpenGLRenderer.h | 180 float* vertices, int* colors, SkPaint* paint); 577 * @param vertices The vertices that define the mesh 588 GLvoid* vertices, GLvoid* texCoords, GLenum drawMode, GLsizei elementsCount, 726 void setupDrawMesh(GLvoid* vertices, GLvoid* texCoords = NULL, GLuint vbo = 0); 727 void setupDrawMeshIndices(GLvoid* vertices, GLvoid* texCoords); 728 void setupDrawVertices(GLvoid* vertices); 729 void setupDrawAALine(GLvoid* vertices, GLvoid* distanceCoords, GLvoid* lengthCoords,
|
H A D | DisplayListRenderer.cpp | 494 float* vertices = getFloats(verticesCount); local 1113 float* vertices = getFloats(verticesCount); local 1119 drawGlStatus |= renderer.drawBitmapMesh(bitmap, meshWidth, meshHeight, vertices, 1628 float* vertices, int* colors, SkPaint* paint) { 1633 addFloats(vertices, (meshWidth + 1) * (meshHeight + 1) * 2); 1627 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument
|
H A D | DisplayListRenderer.h | 590 float* vertices, int* colors, SkPaint* paint);
|
/frameworks/native/opengl/tests/linetex/ |
H A D | linetex.cpp | 84 const GLfloat vertices[4][2] = { local 103 glVertexPointer(2, GL_FLOAT, 0, vertices);
|
/frameworks/native/opengl/tests/fillrate/ |
H A D | fillrate.cpp | 93 const GLfloat vertices[4][2] = { local 116 glVertexPointer(2, GL_FLOAT, 0, vertices);
|
/frameworks/native/opengl/tests/angeles/ |
H A D | demo.c | 116 static GLOBJECT * newGLObject(long vertices, int vertexComponents, argument 123 result->count = vertices; 125 result->vertexArray = (GLfixed *)malloc(vertices * vertexComponents * 127 result->colorArray = (GLubyte *)malloc(vertices * 4 * sizeof(GLubyte)); 130 result->normalArray = (GLfixed *)malloc(vertices * 3 * 207 const long vertices = triangleCount * 3; local 213 result = newGLObject(vertices, 3, 1); 338 // Set number of vertices in object to the actual amount created. 351 const long vertices = triangleCount * 3; local 356 result = newGLObject(vertices, [all...] |
/frameworks/native/opengl/tests/filter/ |
H A D | filter.cpp | 141 const GLfloat vertices[4][2] = { 176 glVertexPointer(2, GL_FLOAT, 0, vertices);
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 151 const GLfloat vertices[] = { local 166 glVertexPointer(3, GL_FLOAT, 0, vertices);
|
/frameworks/native/opengl/tests/tritex/ |
H A D | tritex.cpp | 232 const GLfloat vertices[] = {
local 253 glVertexPointer(3, GL_FLOAT, 0, vertices);
|
/frameworks/native/opengl/tests/gl_basic/ |
H A D | gl_basic.cpp | 341 const GLfloat vertices[] = { 357 glVertexPointer(3, GL_FLOAT, 0, vertices);
|
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 387 jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, 392 jfloat* verticesArray = vertices ? env->GetFloatArrayElements(vertices, NULL) + offset : NULL; 397 if (vertices) env->ReleaseFloatArrayElements(vertices, verticesArray, 0); 385 android_view_GLES20Canvas_drawBitmapMesh(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, jintArray colors, jint colorOffset, SkPaint* paint) argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.cpp | 826 GLfloat vertices[][2] = { local 832 glVertexPointer(2, GL_FLOAT, 0, vertices); 1638 GLfloat vertices[][2] = { local 1644 glVertexPointer(2, GL_FLOAT, 0, vertices);
|