Example usage for javax.microedition.khronos.opengles GL10 GL_SCISSOR_TEST

List of usage examples for javax.microedition.khronos.opengles GL10 GL_SCISSOR_TEST

Introduction

In this page you can find the example usage for javax.microedition.khronos.opengles GL10 GL_SCISSOR_TEST.

Prototype

int GL_SCISSOR_TEST

To view the source code for javax.microedition.khronos.opengles GL10 GL_SCISSOR_TEST.

Click Source Link

Usage

From source file:com.watabou.noosa.Game.java

@Override
public void onSurfaceCreated(GL10 gl, EGLConfig config) {
    GLES20.glEnable(GL10.GL_BLEND);//from  w w  w.j  a  v a2 s . c  om
    GLES20.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);

    GLES20.glEnable(GL10.GL_SCISSOR_TEST);

    paused = false;

    SystemText.invalidate();
    TextureCache.reload();

    if (scene != null) {
        scene.resume();
    }
}