Lines Matching defs:mesh
236 void LayerBase::computeGeometry(const sp<const DisplayDevice>& hw, LayerMesh* mesh) const
245 if (mesh) {
246 tr.transform(mesh->mVertices[0], win.left, win.top);
247 tr.transform(mesh->mVertices[1], win.left, win.bottom);
248 tr.transform(mesh->mVertices[2], win.right, win.bottom);
249 tr.transform(mesh->mVertices[3], win.right, win.top);
251 mesh->mVertices[i][1] = hw_h - mesh->mVertices[i][1];
358 LayerMesh mesh;
359 computeGeometry(hw, &mesh);
361 glVertexPointer(2, GL_FLOAT, 0, mesh.getVertices());
362 glDrawArrays(GL_TRIANGLE_FAN, 0, mesh.getVertexCount());
397 LayerMesh mesh;
398 computeGeometry(hw, &mesh);
400 // TODO: we probably want to generate the texture coords with the mesh
433 glVertexPointer(2, GL_FLOAT, 0, mesh.getVertices());
434 glDrawArrays(GL_TRIANGLE_FAN, 0, mesh.getVertexCount());