Example usage for android.opengl GLES20 GL_BLEND

List of usage examples for android.opengl GLES20 GL_BLEND

Introduction

In this page you can find the example usage for android.opengl GLES20 GL_BLEND.

Prototype

int GL_BLEND

To view the source code for android.opengl GLES20 GL_BLEND.

Click Source Link

Usage

From source file:Main.java

/**
 * Sets up opengl to perform standard alpha transparency
 *//*from  ww w. j av a  2 s  .  co m*/
public static void enableAlphaTransparency() {
    GLES20.glEnable(GLES20.GL_BLEND);
    GLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);
}