List of usage examples for android.opengl GLES10 glGetIntegerv
public static native void glGetIntegerv(int pname, java.nio.IntBuffer params);
From source file:com.adobe.plugins.FastCanvasRenderer.java
public void onSurfaceCreated(GL10 gl, EGLConfig config) { Log.i("CANVAS", "CanvasRenderer onSurfaceCreated. config:" + config.toString() + " gl:" + gl.toString()); IntBuffer ib = IntBuffer.allocate(100); ib.position(0);//from w w w.j a v a 2 s . co m GLES10.glGetIntegerv(GLES10.GL_RED_BITS, ib); int red = ib.get(0); GLES10.glGetIntegerv(GLES10.GL_GREEN_BITS, ib); int green = ib.get(0); GLES10.glGetIntegerv(GLES10.GL_BLUE_BITS, ib); int blue = ib.get(0); GLES10.glGetIntegerv(GLES10.GL_STENCIL_BITS, ib); int stencil = ib.get(0); GLES10.glGetIntegerv(GLES10.GL_DEPTH_BITS, ib); int depth = ib.get(0); Log.i("CANVAS", "CanvasRenderer R=" + red + " G=" + green + " B=" + blue + " DEPETH=" + depth + " STENCIL=" + stencil); }