Java tutorial
//package com.java2s; import android.opengl.GLES20; public class Main { /** * Looks up the appropriate texture unit handle for a given index. Example: 2 - GLES20.GL_TEXTURE2 * * @param textureUnitIndex The index of the texture unit * @return */ public static int getGLTextureUnitHandle(int textureUnitIndex) { return GLES20.GL_TEXTURE0 + textureUnitIndex; } }