Example usage for com.google.gwt.corp.webgl.client WebGLIntArray get

List of usage examples for com.google.gwt.corp.webgl.client WebGLIntArray get

Introduction

In this page you can find the example usage for com.google.gwt.corp.webgl.client WebGLIntArray get.

Prototype

public native final int get(int index) ;

Source Link

Document

Return the element at the given index.

Usage

From source file:jake2.gwt.client.WebGLAdapter.java

License:Open Source License

public String webGLIntArrayToString(WebGLIntArray fa) {
    StringBuilder sb = new StringBuilder();
    sb.append("len: " + fa.getLength());
    sb.append("data: ");
    for (int i = 0; i < Math.min(fa.getLength(), 10); i++) {
        sb.append(fa.get(i) + ",");
    }//w w w. j a v a  2  s.c om
    return sb.toString();
}