This article describes in general, how to draw sharp OpenGL 2D graphics, using fixed function pipeline.
Because OpenGL ES 2.0 has some ES 1.x functions not available (such as: glOrtho()), their functionality must be substituted in Fragment/Vertex shaders.
My question is, how to setup the following 2D projection in programmable function pipeline?
const XSize = 640, YSize = 480
glMatrixMode (GL_PROJECTION)
glLoadIdentity ();
glOrtho (0, XSize, YSize, 0, 0, 1)
glMatrixMode (GL_MODELVIEW)
How Fragment and Vertex shaders must be configured to fully substitute the above mentioned fixed function 2D projection setup?