>                     gl.glColor4f(colorCount, 0, 0, 1);
>                     markers.get(i).draw();
>                     colorCount++;

> but unfortunately it doesn't work. The color remains always white
> (0,0,0,1) in RGBA.

White is 1,1,1,1.

The colour components passed to glColor4f are floats and should range
between 0 and 1.  So colorCount++ is probably not what you want.
Maybe it will work if you do colorCount+=0.01.  But I suggest using
glColour4ub (if that's available in the Java binding) as that lets you
pass bytes and you know you'll get the exact same values back without
any float-to-int conversion issues.

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

Reply via email to