Examples of glVertexAttrib4f()


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

   * @param value3 the third value
   * @param value4 the fourth value */
  public void setAttributef (String name, float value1, float value2, float value3, float value4) {
    GL20 gl = Gdx.gl20;
    int location = fetchAttributeLocation(name);
    gl.glVertexAttrib4f(location, value1, value2, value3, value4);
  }

  private void ensureBufferCapacity (int numBytes) {
    if (buffer == null || buffer.capacity() < numBytes) {
      buffer = BufferUtils.newByteBuffer(numBytes);
View Full Code Here

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

   * @param value3 the third value
   * @param value4 the fourth value */
  public void setAttributef (String name, float value1, float value2, float value3, float value4) {
    GL20 gl = Gdx.graphics.getGL20();
    int location = fetchAttributeLocation(name);
    gl.glVertexAttrib4f(location, value1, value2, value3, value4);
  }

  private void ensureBufferCapacity (int numBytes) {
    if (buffer == null || buffer.capacity() != numBytes) {
      buffer = BufferUtils.newByteBuffer(numBytes);
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.