Example usage for android.opengl GLES10 GL_GREEN_BITS

List of usage examples for android.opengl GLES10 GL_GREEN_BITS

Introduction

In this page you can find the example usage for android.opengl GLES10 GL_GREEN_BITS.

Prototype

int GL_GREEN_BITS

To view the source code for android.opengl GLES10 GL_GREEN_BITS.

Click Source Link

Usage

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  2s .c  o 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);
}