- Code: Select all
gl.glMatrixMode(GL10.GL_PROJECTION);
GLU.gluOrtho2D(gl, 0, _screenWidth, _screenHeight, 0);
Set the projection to match your screen width and height and voila, the origin of the world coordinates in OpenGL is now in the top left hand corner and the world coordinates are matched to you screen coordinates.
Enjoy.



