Home
last modified time | relevance | path

Searched refs:vertices (Results 1 – 22 of 22) sorted by relevance

/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp194 float vertices[len * quadCoords]; in drawString() local
218 vertices[off + 0] = vertLeft; in drawString()
219 vertices[off + 1] = vertBottom; in drawString()
220 vertices[off + 2] = vertRight; in drawString()
221 vertices[off + 3] = vertBottom; in drawString()
222 vertices[off + 4] = vertLeft; in drawString()
223 vertices[off + 5] = vertTop; in drawString()
224 vertices[off + 6] = vertLeft; in drawString()
225 vertices[off + 7] = vertTop; in drawString()
226 vertices[off + 8] = vertRight; in drawString()
[all …]
DProgram.h62 const float* vertices, const float* texes, size_t count) const;
72 const float* vertices, const float* texes, bool invert) const;
DProgram.cpp230 const float* vertices, const float* texes, size_t count) const { in drawTriangles() argument
235 err = beforeDraw(texName, texMatrix, vertices, texes, false); in drawTriangles()
244 const float* vertices, const float* texes, bool invert) const { in beforeDraw() argument
261 glVertexAttribPointer(maPositionLoc, 2, GL_FLOAT, GL_FALSE, 0, vertices); in beforeDraw()
/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/cpp/
DCircle.cpp31 std::vector<GLfloat> vertices = std::vector<GLfloat>(2 * segments + 2); in initializeVertices() local
34 vertices[(i + 1) * 2] = cos(dTheta * i); in initializeVertices()
35 vertices[(i + 1) * 2 + 1] = sin(dTheta * i); in initializeVertices()
37 return vertices; in initializeVertices()
198 static auto vertices = initializeVertices(segments); in getVertices() local
201 vertices = initializeVertices(segments); in getVertices()
204 return vertices; in getVertices()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCube.java33 int vertices[] = { in Cube() local
72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4); in Cube()
75 mVertexBuffer.put(vertices); in Cube()
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java4294 float[] vertices = new float[vertexCount * 2];
4295 int[] colors = new int[vertices.length];
4296 computeChromaticityMesh(vertices, colors);
4298 if (mUcs) xyYToUv(vertices);
4299 for (int i = 0; i < vertices.length; i += 2) {
4300 vertices[i] *= width;
4301 vertices[i + 1] = height - vertices[i + 1] * height;
4324 canvas.drawVertices(Canvas.VertexMode.TRIANGLES, vertices.length, vertices, 0,
4330 canvas.drawVertices(Canvas.VertexMode.TRIANGLES, vertices.length, vertices, 0,
4335 canvas.drawVertices(Canvas.VertexMode.TRIANGLES, vertices.length, vertices, 0,
[all …]
/frameworks/native/opengl/tests/angeles/
Ddemo.c116 static GLOBJECT * newGLObject(long vertices, int vertexComponents, in newGLObject() argument
123 result->count = vertices; in newGLObject()
125 result->vertexArray = (GLfixed *)malloc(vertices * vertexComponents * in newGLObject()
127 result->colorArray = (GLubyte *)malloc(vertices * 4 * sizeof(GLubyte)); in newGLObject()
130 result->normalArray = (GLfixed *)malloc(vertices * 3 * in newGLObject()
207 const long vertices = triangleCount * 3; in createSuperShape() local
213 result = newGLObject(vertices, 3, 1); in createSuperShape()
351 const long vertices = triangleCount * 3; in createGroundPlane() local
356 result = newGLObject(vertices, 2, 0); in createGroundPlane()
/frameworks/base/libs/hwui/
DMatrix.cpp477 float vertices[] = {r.left, r.top, r.right, r.top, r.right, r.bottom, r.left, r.bottom}; in mapRect() local
482 float px = vertices[i]; in mapRect()
483 float py = vertices[i + 1]; in mapRect()
490 vertices[i] = x * z; in mapRect()
491 vertices[i + 1] = y * z; in mapRect()
494 r.left = r.right = vertices[0]; in mapRect()
495 r.top = r.bottom = vertices[1]; in mapRect()
498 x = vertices[i]; in mapRect()
499 y = vertices[i + 1]; in mapRect()
DRecordingCanvas.cpp434 : vertices(sk_ref_sp(const_cast<SkVertices*>(v))), boneCount(bc), mode(m), paint(p) {} in DrawVertices()
435 sk_sp<SkVertices> vertices; member
440 c->drawVertices(vertices, pod<SkVertices::Bone>(this), boneCount, mode, paint); in draw()
655 void DisplayListData::drawVertices(const SkVertices* vertices, const SkVertices::Bone bones[], in drawVertices() argument
657 void* pod = this->push<DrawVertices>(boneCount * sizeof(SkVertices::Bone), vertices, boneCount, in drawVertices()
966 void RecordingCanvas::onDrawVerticesObject(const SkVertices* vertices, in onDrawVerticesObject() argument
969 fDL->drawVertices(vertices, bones, boneCount, mode, paint); in onDrawVerticesObject()
DSkiaCanvas.cpp540 void SkiaCanvas::drawVertices(const SkVertices* vertices, SkBlendMode mode, const SkPaint& paint) { in drawVertices() argument
541 mCanvas->drawVertices(vertices, mode, *filterPaint(paint)); in drawVertices()
569 const float* vertices, const int* colors, const SkPaint* paint) { in drawBitmapMesh() argument
577 memcpy(builder.positions(), vertices, ptCount * sizeof(SkPoint)); in drawBitmapMesh()
DSkiaCanvas.h130 const float* vertices, const int* colors,
/frameworks/native/opengl/tests/linetex/
Dlinetex.cpp85 const GLfloat vertices[4][2] = { in main() local
104 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/cpp/
DScene.cpp238 …std::vector<GLfloat> vertices = std::vector<GLfloat>( num_vert * 9); // 3 pos + 3 colour + 3 normal in initializeVertices() local
244 GLfloat* v = vertices.data(); in initializeVertices()
255 return vertices; in initializeVertices()
311 static std::vector<GLfloat> vertices; in getVertices() local
314 vertices = initializeVertices(workload); in getVertices()
317 return vertices; in getVertices()
/frameworks/native/libs/gui/tests/
DMultiTextureConsumer_test.cpp114 …GLfloat vertices[][2] = { {i*16.0f, 0}, {(i+1)*16.0f, 0}, {(i+1)*16.0f, 16.0f}, {i*16.0f, 16.0f} }; in TEST_F() local
115 glVertexPointer(2, GL_FLOAT, 0, vertices); in TEST_F()
/frameworks/native/opengl/tests/fillrate/
Dfillrate.cpp96 const GLfloat vertices[4][2] = { in main() local
119 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
/frameworks/native/opengl/tests/filter/
Dfilter.cpp145 const GLfloat vertices[4][2] = { in main() local
181 glVertexPointer(2, GL_FLOAT, 0, vertices); in main()
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp156 const GLfloat vertices[] = { in Java_com_android_gljni_GLJNILib_step() local
171 glVertexPointer(3, GL_FLOAT, 0, vertices); in Java_com_android_gljni_GLJNILib_step()
/frameworks/native/opengl/tests/tritex/
Dtritex.cpp229 const GLfloat vertices[] = { in render() local
250 glVertexPointer(3, GL_FLOAT, 0, vertices); in render()
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp370 const GLfloat vertices[] = { in render() local
386 glVertexPointer(3, GL_FLOAT, 0, vertices); in render()
/frameworks/base/libs/hwui/hwui/
DCanvas.h261 const float* vertices, const int* colors, const SkPaint* paint) = 0;
/frameworks/rs/script_api/include/
Drs_graphics.rsh155 …ll be rendered as a connected triangle strip defined by the first three vertices with each additio…
/frameworks/native/vulkan/api/
Dvulkan.api4141 …u32 stride /// Distance between vertices in…
4569 … maxTessellationPatchSize /// max patch size (vertices)
4580 … maxGeometryOutputVertices /// max num of vertices that can be emitt…
4581 …etryTotalOutputComponents /// max total num of components (all vertices) written in geome…