ofCurveVertex gradient

hi,

is it possible to draw a ofCurveVertex filled with a gradient instead of a solid color?
tried to set a color with glColor3f everytime i draw a new vertex, didnt work…
thx.

not right now but it will be possible in the next release of OF. the problem is that ofCurveVertex as well as other of*Vertex are just storing vertexes in memory to send the all at the same time when you finish drawing, so only the last glColor will affect your drawing. for that you’ll need a color coordinates array, but it’s not implemented yet in 0062:

http://www.songho.ca/opengl/gl-vertexarray.html