Example usage for com.google.gwt.typedarrays.client Uint32ArrayNative create

List of usage examples for com.google.gwt.typedarrays.client Uint32ArrayNative create

Introduction

In this page you can find the example usage for com.google.gwt.typedarrays.client Uint32ArrayNative create.

Prototype

public static native Uint32ArrayNative create(int length) ;

Source Link

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);
}