Package com.badlogic.gdx.graphics

Examples of com.badlogic.gdx.graphics.GL20


   * @param value1 the first value
   * @param value2 the second value
   * @param value3 the third value
   * @param value4 the fourth value */
  public void setUniformf (String name, float value1, float value2, float value3, float value4) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchUniformLocation(name);
    gl.glUniform4f(location, value1, value2, value3, value4);
  }
View Full Code Here


    int location = fetchUniformLocation(name);
    gl.glUniform4f(location, value1, value2, value3, value4);
  }

  public void setUniformf (int location, float value1, float value2, float value3, float value4) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    gl.glUniform4f(location, value1, value2, value3, value4);
  }
View Full Code Here

    checkManaged();
    gl.glUniform4f(location, value1, value2, value3, value4);
  }

  public void setUniform1fv (String name, float[] values, int offset, int length) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchUniformLocation(name);
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform1fv(location, length, floatBuffer);
  }
View Full Code Here

    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();
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform1fv(location, length, floatBuffer);
  }
View Full Code Here

    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();
    int location = fetchUniformLocation(name);
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform2fv(location, length / 2, floatBuffer);
  }
View Full Code Here

    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform2fv(location, length / 2, floatBuffer);
  }

  public void setUniform2fv (int location, float[] values, int offset, int length) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform2fv(location, length / 2, floatBuffer);
  }
View Full Code Here

    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform2fv(location, length / 2, floatBuffer);
  }

  public void setUniform3fv (String name, float[] values, int offset, int length) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchUniformLocation(name);
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform3fv(location, length / 3, floatBuffer);
  }
View Full Code Here

    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform3fv(location, length / 3, floatBuffer);
  }

  public void setUniform3fv (int location, float[] values, int offset, int length) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform3fv(location, length / 3, floatBuffer);
  }
View Full Code Here

    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform3fv(location, length / 3, floatBuffer);
  }

  public void setUniform4fv (String name, float[] values, int offset, int length) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchUniformLocation(name);
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform4fv(location, length / 4, floatBuffer);
  }
View Full Code Here

    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform4fv(location, length / 4, floatBuffer);
  }

  public void setUniform4fv (int location, float[] values, int offset, int length) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    ensureBufferCapacity(length << 2);
    floatBuffer.clear();
    BufferUtils.copy(values, floatBuffer, length, offset);
    gl.glUniform4fv(location, length / 4, floatBuffer);
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.GL20

Copyright © 2018 www.massapicom. 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.