Code example for GL10

Methods: glDisable, glMatrixMode, glPopMatrix

0
     * 
     * @param gl 
     */ 
    public void endDrawing(GL10 gl) {
        checkState(STATE_DRAWING, STATE_INITIALIZED);
        gl.glDisable(GL10.GL_BLEND);
        gl.glMatrixMode(GL10.GL_PROJECTION);
        gl.glPopMatrix();
        gl.glMatrixMode(GL10.GL_MODELVIEW);
        gl.glPopMatrix();
    } 
 
    private void checkState(int oldState, int newState) {
        if (mState != oldState) {
            throw new IllegalArgumentException("Can't call this method now.");
        } 
        mState = newState;
    } 
 
    private static class Label { 
        public Label(Grid grid, float width, float height, float baseLine,