Example usage for android.opengl GLES20 GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS

List of usage examples for android.opengl GLES20 GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS

Introduction

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

Prototype

int GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS

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

Click Source Link

Usage

From source file:Main.java

/**
 * Gets the total number of texture units available
 *
 * @return/* www. j ava  2  s . com*/
 */
public static int getNumTextureUnits() {
    int[] numTextureUnits = new int[1];
    GLES20.glGetIntegerv(GLES20.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, numTextureUnits, 0);
    return numTextureUnits[0];
}