Lines Matching refs:mesh

555     Mesh mesh = Mesh::Builder()  in fillRegionWithColor()  local
559 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); in fillRegionWithColor()
575 drawMesh(mesh); in fillRegionWithColor()
754 FloatRect GLESRenderEngine::setupLayerCropping(const LayerSettings& layer, Mesh& mesh) { in setupLayerCropping() argument
763 Mesh::VertexArray<vec2> cropCoords(mesh.getCropCoordArray<vec2>()); in setupLayerCropping()
774 const LayerSettings& layer, const Mesh& mesh) { in handleRoundedCorners() argument
844 drawMesh(mesh); in handleRoundedCorners()
847 drawMesh(mesh); in handleRoundedCorners()
856 drawMesh(mesh); in handleRoundedCorners()
1059 Mesh mesh = Mesh::Builder() in drawLayers() local
1110 Mesh::VertexArray<vec2> position(mesh.getPositionArray<vec2>()); in drawLayers()
1116 setupLayerCropping(*layer, mesh); in drawLayers()
1140 renderengine::Mesh::VertexArray<vec2> texCoords(mesh.getTexCoordArray<vec2>()); in drawLayers()
1167 handleRoundedCorners(display, *layer, mesh); in drawLayers()
1169 drawMesh(mesh); in drawLayers()
1293 void GLESRenderEngine::drawMesh(const Mesh& mesh) { in drawMesh() argument
1295 if (mesh.getTexCoordsSize()) { in drawMesh()
1297 glVertexAttribPointer(Program::texCoords, mesh.getTexCoordsSize(), GL_FLOAT, GL_FALSE, in drawMesh()
1298 mesh.getByteStride(), mesh.getTexCoords()); in drawMesh()
1301 glVertexAttribPointer(Program::position, mesh.getVertexSize(), GL_FLOAT, GL_FALSE, in drawMesh()
1302 mesh.getByteStride(), mesh.getPositions()); in drawMesh()
1306 glVertexAttribPointer(Program::cropCoords, mesh.getVertexSize(), GL_FLOAT, GL_FALSE, in drawMesh()
1307 mesh.getByteStride(), mesh.getCropCoords()); in drawMesh()
1312 glVertexAttribPointer(Program::shadowColor, mesh.getShadowColorSize(), GL_FLOAT, GL_FALSE, in drawMesh()
1313 mesh.getByteStride(), mesh.getShadowColor()); in drawMesh()
1316 glVertexAttribPointer(Program::shadowParams, mesh.getShadowParamsSize(), GL_FLOAT, GL_FALSE, in drawMesh()
1317 mesh.getByteStride(), mesh.getShadowParams()); in drawMesh()
1423 glDrawElements(mesh.getPrimitive(), mesh.getIndexCount(), GL_UNSIGNED_SHORT, in drawMesh()
1424 mesh.getIndices()); in drawMesh()
1426 glDrawArrays(mesh.getPrimitive(), 0, mesh.getVertexCount()); in drawMesh()
1436 if (mesh.getTexCoordsSize()) { in drawMesh()
1692 Mesh mesh = Mesh::Builder() in handleShadow() local
1699 Mesh::VertexArray<vec2> position = mesh.getPositionArray<vec2>(); in handleShadow()
1700 Mesh::VertexArray<vec4> shadowColor = mesh.getShadowColorArray<vec4>(); in handleShadow()
1701 Mesh::VertexArray<vec3> shadowParams = mesh.getShadowParamsArray<vec3>(); in handleShadow()
1703 shadows.fillIndices(mesh.getIndicesArray()); in handleShadow()
1708 drawMesh(mesh); in handleShadow()