Code example for GL11

Methods: glScissor

0
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] = v[6] = v[8] = v[9] = 0;
        v[10] = 1;
        return v;
    } 
 
    public void drawTexture( 
            Texture texture, int x, int y, int width, int height, float alpha) {
 
        if (!texture.bind(this, mGL)) {
            throw new RuntimeException("cannot bind" + texture.toString());