Is there any way to convert a filled SkPath to SkVerticies triangles?I imagine that the OpenGL backend implementation has to do that sometimes.
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/c633e2d3-81fa-46df-b1aa-1819630b1677%40googlegroups.com.
You might want to take a look at GrTriangulator.The GPU backend does convert fills to triangles, but less for now than you might expect, due to the high up-front cost of triangulation.
On Mon, Mar 30, 2020 at 10:20 PM Shawn Riordan <craste...@gmail.com> wrote:
Is there any way to convert a filled SkPath to SkVerticies triangles?--I imagine that the OpenGL backend implementation has to do that sometimes.
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-d...@googlegroups.com.
You might want to take a look at GrTriangulator.The GPU backend does convert fills to triangles, but less for now than you might expect, due to the high up-front cost of triangulation.
On Mon, Mar 30, 2020 at 10:20 PM Shawn Riordan <craste...@gmail.com> wrote:
Is there any way to convert a filled SkPath to SkVerticies triangles?--I imagine that the OpenGL backend implementation has to do that sometimes.
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-d...@googlegroups.com.
Doesn't tolerance change anything?
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/8725d0cf-9292-4a4c-85d8-f7a71205ab18%40googlegroups.com.
How are you creating the vertices? You'll need to include texture coordinates in the vertex data (even if it's just a copy of the positions).
On Fri, May 1, 2020 at 5:49 PM Adrian Dumitru <orto...@gmail.com> wrote:
--drawVertices can not use a paint with bitmap shader? It's drawing using black instead of the bitmap shader.I've created the shader like this:sk_sp<SkShader> shader = bitmap.makeShader(SkTileMode::kRepeat, SkTileMode::kRepeat);paint.setShader(shader);
On Tuesday, 31 March 2020 07:20:32 UTC+3, Shawn Riordan wrote:Is there any way to convert a filled SkPath to SkVerticies triangles?I imagine that the OpenGL backend implementation has to do that sometimes.
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-d...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/4f8074bc-6e7f-4e3d-abb5-b5f50445ecf9%40googlegroups.com.
You might want to take a look at GrTriangulator.The GPU backend does convert fills to triangles, but less for now than you might expect, due to the high up-front cost of triangulation.
On Mon, Mar 30, 2020 at 10:20 PM Shawn Riordan <craste...@gmail.com> wrote:
Is there any way to convert a filled SkPath to SkVerticies triangles?--I imagine that the OpenGL backend implementation has to do that sometimes.
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-d...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/30d54fe4-c2ec-49d7-9219-84b4ce3aad58%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/30d54fe4-c2ec-49d7-9219-84b4ce3aad58%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/16a5bd21-8d91-4f46-af7e-a7df92cec10d%40googlegroups.com.