Example usage for android.opengl GLES10 GL_RED_BITS

List of usage examples for android.opengl GLES10 GL_RED_BITS

Introduction

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

Prototype

int GL_RED_BITS

To view the source code for android.opengl GLES10 GL_RED_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  ww  .ja 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);
}