Example usage for javax.microedition.khronos.opengles GL10 toString

List of usage examples for javax.microedition.khronos.opengles GL10 toString

Introduction

In this page you can find the example usage for javax.microedition.khronos.opengles GL10 toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

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);/*  www . ja  v  a  2 s  .  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);
}

From source file:com.adobe.plugins.FastCanvasRenderer.java

public void onSurfaceChanged(GL10 gl, int width, int height) {
    Log.i("CANVAS",
            "CanvasRenderer onSurfaceChanged. width:" + width + " height:" + height + " gl:" + gl.toString());

    FastCanvasJNI.surfaceChanged(width, height);
}