Example usage for com.google.gwt.typedarrays.shared Uint32Array set

List of usage examples for com.google.gwt.typedarrays.shared Uint32Array set

Introduction

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

Prototype

void set(double[] array, int offset);

Source Link

Document

Set multiple elements in this view from an array, storing starting at the requested offset.

Usage

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

License:Open Source License

public static Int32Array glGetActiveUniforms(int program, List<Integer> uniformIndices, int pname) {
    Uint32Array indices = Uint32ArrayNative.create(uniformIndices.size());

    for (int i = 0; i < uniformIndices.size(); i++)
        indices.set(i, uniformIndices.get(i));

    return glGetActiveUniforms(program, indices, pname);
}

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

License:Open Source License

public static Int32Array glGetActiveUniforms(int program, int[] uniformIndices, int pname) {
    Uint32Array indices = Uint32ArrayNative.create(uniformIndices.length);

    for (int i = 0; i < uniformIndices.length; i++)
        indices.set(i, uniformIndices[i]);

    return glGetActiveUniforms(program, indices, pname);
}