I have spent quite some time and effort trying to figure out how to draw a line in opneGL es on the iPhone. Here is my code
myMagicVertices[0] = -0.5;
myMagicVertices[1] = -0.5;
myMagicVertices[2] = 2.0;
myMagicVertices[3] = 2.0;
glDrawElements(GL_LINE_STRIP, 2, GL_UNSIGNED_BYTE, myMagicVertices);
But all I see on the screen is a blank screen. I am at my wits end. Can any body point me to the right dirrection