List of usage examples for android.opengl GLES20 glScissor
public static native void glScissor(int x, int y, int width, int height);
From source file:com.watabou.noosa.Game.java
@Override public void onDrawFrame(GL10 gl) { if (instance() == null || width() == 0 || height() == 0) { return;/*from w ww. j av a 2 s. c o m*/ } if (paused) { GLES20.glScissor(0, 0, width(), height()); GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT); return; } SystemTime.tick(); long rightNow = SystemTime.now(); step = (now == 0 ? 0 : rightNow - now); now = rightNow; step(); NoosaScript.get().resetCamera(); GLES20.glScissor(0, 0, width(), height()); GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT); draw(); }