Java tutorial
//package com.java2s; //License from project: Apache License import java.nio.IntBuffer; import javax.microedition.khronos.opengles.GL10; public class Main { private static IntBuffer mMaxTexSize; public static int[] getMaxTextureSize(GL10 gl) { gl.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, mMaxTexSize); return mMaxTexSize.array(); } }