Searched defs:vertices (Results 1 - 12 of 12) sorted by relevance

/frameworks/native/opengl/tests/linetex/
H A Dlinetex.cpp84 const GLfloat vertices[4][2] = { local
103 glVertexPointer(2, GL_FLOAT, 0, vertices);
/frameworks/native/opengl/tests/fillrate/
H A Dfillrate.cpp93 const GLfloat vertices[4][2] = { local
116 glVertexPointer(2, GL_FLOAT, 0, vertices);
/frameworks/base/libs/hwui/
H A DMatrix.cpp342 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 DCaches.cpp346 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 DPathRenderer.cpp78 * 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 DDisplayListRenderer.cpp494 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 DOpenGLRenderer.cpp1527 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...]
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp151 const GLfloat vertices[] = { local
166 glVertexPointer(3, GL_FLOAT, 0, vertices);
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp232 const GLfloat vertices[] = { local
253 glVertexPointer(3, GL_FLOAT, 0, vertices);
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c116 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/base/core/jni/
H A Dandroid_view_GLES20Canvas.cpp387 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 DSurfaceFlinger.cpp826 GLfloat vertices[][2] = { local
832 glVertexPointer(2, GL_FLOAT, 0, vertices);
1638 GLfloat vertices[][2] = { local
1644 glVertexPointer(2, GL_FLOAT, 0, vertices);

Completed in 307 milliseconds