Examples of glUniform1fv()


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

    checkManaged();
    int location = fetchUniformLocation(name);
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform1fv(location, length, floatBuffer);
  }

  public void setUniform1fv (int location, float[] values, int offset, int length) {
    GL20 gl = Gdx.gl20;
    checkManaged();
View Full Code Here

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

    GL20 gl = Gdx.gl20;
    checkManaged();
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform1fv(location, length, floatBuffer);
  }

  public void setUniform2fv (String name, float[] values, int offset, int length) {
    GL20 gl = Gdx.gl20;
    checkManaged();
View Full Code Here

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

    checkManaged();
    int location = fetchUniformLocation(name);
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform1fv(location, length, floatBuffer);
  }

  public void setUniform2fv (String name, float[] values, int offset, int length) {
    GL20 gl = Gdx.graphics.getGL20();
    checkManaged();
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.