Would anyone share an example on how to implement GradienRectangle that would have different colors for each vertex?
I’ve tried to call glColorPointer from GL10 passing float buffer and GL11 using similar to vertices selectOnHardware approach but both methods failed for me…
On AndEngine forum I found this code, but it does not work, however maby it will help someone to find a better solution.
that example does not work for you because author have not shown piece of code responsible for setting vertexes.
Here is my example(it is long, but that’s opengl…)
NOTE – remember to setUp viewport correctly.
GLDrawConstants class:
WDUtils class: