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

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

Introduction

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

Prototype

public native final short 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 webGLUnsignedShortArrayToString(WebGLUnsignedShortArray 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) + ",");
    }/*  www .jav  a2 s .  co  m*/
    return sb.toString();
}