How can i draw a HUD (Text or Bitmaps) after drawing some 3d stuff in openGL ES ??
I tried this:
private void switchTo2D(GL10 gl){
gl.glDisable(GL10.GL_DEPTH_TEST);
gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glPushMatrix();
gl.glLoadIdentity();
gl.glMatrixMode( GL10.GL_PROJECTION );
gl.glLoadIdentity();
GLU.gluOrtho2D( gl, 0, getViewportWidth(), 0, getViewportHeight() );
gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glLoadIdentity();
}
Someone know how to switch from Perspective to Ortho without destroying the scene??
I found the solution but i forgot to post it 🙂 Sorry