Package com.badlogic.gdx.graphics

Examples of com.badlogic.gdx.graphics.GL11.glBindBuffer()


    } else if (Gdx.gl11 != null) {
      tmpHandle.clear();
      tmpHandle.put(bufferHandle);
      tmpHandle.flip();
      GL11 gl = Gdx.gl11;
      gl.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, 0);
      gl.glDeleteBuffers(1, tmpHandle);
      bufferHandle = 0;
    }
  }
}
View Full Code Here


  /** {@inheritDoc} */
  @Override
  public void bind () {
    GL11 gl = Gdx.gl11;

    gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, bufferHandle);
    if (isDirty) {
      gl.glBufferData(GL11.GL_ARRAY_BUFFER, buffer.limit(), buffer, usage);
      isDirty = false;
    }

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.