Tuesday, June 21, 2011

[android-developers] Canvas.drawVertices with vertex colors AND BitmapShader

Hello,
I have not found a sample yet that uses the colors parameter of
Canvas.drawVertices (http://developer.android.com/reference/android/
graphics/Canvas.html#drawVertices%28android.graphics.Canvas.VertexMode
,
%20int,%20float[],%20int,%20float[],%20int,%20int[],%20int,%20short[],
%20int,%20int,%20android.graphics.Paint%29), but when I pass in a set
of colors (as many colors as there are vertices in the object I'm
trying to draw), it doesn't draw anything at all. Logcat seems to give
me nothing, too.

Has anyone rendered even a simple quad with both a BitmapShader and
vertex colors simultaneously? It would be most helpful to see some
working code to figure out what I'm doing wrong.

Thanks in advance for your time,
-Ananth

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment