Example usage for com.google.gwt.typedarrays.shared Int32Array length

List of usage examples for com.google.gwt.typedarrays.shared Int32Array length

Introduction

In this page you can find the example usage for com.google.gwt.typedarrays.shared Int32Array length.

Prototype

int length();

Source Link

Document

The length in elements of this view.

Usage

From source file:com.shc.webgl4j.client.WEBGL_draw_buffers.java

License:Open Source License

public static void glDrawBuffersWEBGL(Int32Array buffers) {
    JsArrayInteger array = JsArrayInteger.createArray(buffers.length()).cast();

    for (int i = 0; i < buffers.length(); i++)
        array.push(buffers.get(i));/*from ww  w .j a  v a 2  s .  com*/

    glDrawBuffersWEBGL(array);
}