I am new to OpenGL ES 2, all my previous work was with OpenGL ES 1.1 but now I have to use OpenGL ES 2.
I have found several tutorials and samples on this but I'm still confused. When I try to change the most common sample that draws a triangle on the screen so that I can draw a polygon I fail and fail huge.
As I understand a polygon depending on the number of vertices could be a line, a triangle, a square or something more complex. I tried to verify that my changes are ok by having 3 vertices so I should get a triangle but obviously I did something wrong as the shader doesn't even compile.
Is there a book on OpenGL ES 2 for dummies? I am very comfortable with OpenGL ES 1.1 but I think I've proven to myself that I'm a dummy when it comes to OpenGL ES 2