Examples of glUniformMatrix3fv()


Examples of com.badlogic.gdx.graphics.GL20.glUniformMatrix3fv()

    checkManaged();
    int location = fetchUniformLocation(name);
    float[] vals = matrix.getValues();
    this.matrix.clear();
    BufferUtils.copy(vals, this.matrix, vals.length, 0);
    gl.glUniformMatrix3fv(location, 1, transpose, this.matrix);
  }

  public void setUniformMatrix (int location, Matrix3 matrix) {
    setUniformMatrix(location, matrix, false);
  }
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL20.glUniformMatrix3fv()

    GL20 gl = Gdx.gl20;
    checkManaged();
    float[] vals = matrix.getValues();
    this.matrix.clear();
    BufferUtils.copy(vals, this.matrix, vals.length, 0);
    gl.glUniformMatrix3fv(location, 1, transpose, this.matrix);
  }

  /** Sets an array of uniform matrices with the given name. Throws an IllegalArgumentException in case it is not called in
   * between a {@link #begin()}/{@link #end()} block.
   *
 
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL20.glUniformMatrix3fv()

  public void setUniformMatrix3fv (String name, FloatBuffer buffer, int count, boolean transpose) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    buffer.position(0);
    int location = fetchUniformLocation(name);
    gl.glUniformMatrix3fv(location, count, transpose, buffer);
  }

  /** Sets an array of uniform matrices with the given name. Throws an IllegalArgumentException in case it is not called in
   * between a {@link #begin()}/{@link #end()} block.
   *
 
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL20.glUniformMatrix3fv()

    checkManaged();
    int location = fetchUniformLocation(name);
    float[] vals = matrix.getValues();
    this.matrix.clear();
    BufferUtils.copy(vals, this.matrix, vals.length, 0);
    gl.glUniformMatrix3fv(location, 1, transpose, this.matrix);
  }
 

   /** Sets the uniform with the given name. Throws an IllegalArgumentException in case it is not called in between a
    * {@link #begin()}/{@link #end()} block.
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.