Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.opengl.GLES20;

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