List of usage examples for android.opengl GLES20 glBlendFunc
public static native void glBlendFunc(int sfactor, int dfactor);
From source file:Main.java
/** * Sets up opengl to perform standard alpha transparency *//* w ww . j av a2 s . c om*/ public static void enableAlphaTransparency() { GLES20.glEnable(GLES20.GL_BLEND); GLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA); }
From source file:com.watabou.noosa.Game.java
@Override public void onSurfaceCreated(GL10 gl, EGLConfig config) { GLES20.glEnable(GL10.GL_BLEND);//from ww w .j a v a 2 s. co m 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(); } }