Code example for GL11

Methods: glScissor

0
            height = (int) point[1] - y;
        } else { 
            y = (int) point[1];
            height = (int) point[3] - y;
        } 
        mGL.glScissor(x, y, width, height);
    } 
 
    public void clearClip() { 
        mGL.glScissor(0, 0, getWidth(), getHeight());
    } 
 
    private static float[] toGLMatrix(float[] v) {
        v[15] = v[8];
        v[13] = v[5];
        v[5] = v[4];
        v[4] = v[1];
        v[12] = v[2];
        v[1] = v[3];
        v[3] = v[6];
        v[2] = 0;