Examples of Float32Array


Examples of com.google.gwt.typedarrays.client.Float32Array

   */
  private void initBuffers() {
    buffer = glContext.createBuffer();
    glContext.bindBuffer(WebGLRenderingContext.ARRAY_BUFFER, buffer);
   
    Float32Array vertices = Float32Array.create(cube.getVertices());
    texCoordsOffset = vertices.getByteLength();
    Float32Array texCoords = Float32Array.create(cube.getTexCoords());
   
    glContext.bufferData(WebGLRenderingContext.ARRAY_BUFFER,
        vertices.getByteLength() + texCoords.getByteLength(),
        WebGLRenderingContext.STATIC_DRAW);
   
    glContext
        .bufferSubData(WebGLRenderingContext.ARRAY_BUFFER, 0, vertices);
    glContext.bufferSubData(WebGLRenderingContext.ARRAY_BUFFER,
View Full Code Here

Examples of com.google.gwt.typedarrays.shared.Float32Array

    if (!TypedArrays.isSupported()) {
      // TODO: some way of showing test as skipped in this case?
      return;
    }
    JsArrayNumber src = getJsoArray();
    Float32Array array = JsUtils.createFloat32Array(src);
    validateArrayContents(array, 0);
  }
View Full Code Here

Examples of com.google.gwt.typedarrays.shared.Float32Array

    if (!TypedArrays.isSupported()) {
      // TODO: some way of showing test as skipped in this case?
      return;
    }
    ArrayBuffer buf = TypedArrays.createArrayBuffer(24);
    Float32Array array = TypedArrays.createFloat32Array(buf);
    setFromJsArray(array, 0);
    validateArrayContents(array, 0);

    buf = TypedArrays.createArrayBuffer(24);
    array = TypedArrays.createFloat32Array(buf);
View Full Code Here

Examples of com.google.gwt.typedarrays.shared.Float32Array

  public final void vertexAttrib4fv (int indx, float[] values) {
      this.vertexAttrib4fv(indx, toJsArray(values));
  }

  public final Float32Array toJsArray(float[] values) {
    Float32Array array = TypedArrays.createFloat32Array(values.length);
    array.set(values);
    return array;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.