Package com.badlogic.gdx.graphics

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


  public void setVertexAttribute (String name, int size, int type, boolean normalize, int stride, Buffer buffer) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchAttributeLocation(name);
    if (location == -1) return;
    gl.glVertexAttribPointer(location, size, type, normalize, stride, buffer);
  }

  public void setVertexAttribute (int location, int size, int type, boolean normalize, int stride, Buffer buffer) {
    GL20 gl = Gdx.gl20;
    checkManaged();
View Full Code Here


  }

  public void setVertexAttribute (int location, int size, int type, boolean normalize, int stride, Buffer buffer) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    gl.glVertexAttribPointer(location, size, type, normalize, stride, buffer);
  }

  /** Sets the vertex attribute 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

  public void setVertexAttribute (String name, int size, int type, boolean normalize, int stride, int offset) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    int location = fetchAttributeLocation(name);
    if (location == -1) return;
    gl.glVertexAttribPointer(location, size, type, normalize, stride, offset);
  }

  public void setVertexAttribute (int location, int size, int type, boolean normalize, int stride, int offset) {
    GL20 gl = Gdx.gl20;
    checkManaged();
View Full Code Here

  }

  public void setVertexAttribute (int location, int size, int type, boolean normalize, int stride, int offset) {
    GL20 gl = Gdx.gl20;
    checkManaged();
    gl.glVertexAttribPointer(location, size, type, normalize, stride, offset);
  }

  /** Makes OpenGL ES 2.0 use this vertex and fragment shader pair. When you are done with this shader you have to call
   * {@link ShaderProgram#end()}. */
  public void begin () {
View Full Code Here

  public void setVertexAttribute (String name, int size, int type, boolean normalize, int stride, Buffer buffer) {
    GL20 gl = Gdx.graphics.getGL20();
    checkManaged();
    int location = fetchAttributeLocation(name);
    if(location == -1) return;
    gl.glVertexAttribPointer(location, size, type, normalize, stride, buffer);
  }

  /** Sets the vertex attribute 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

  public void setVertexAttribute (String name, int size, int type, boolean normalize, int stride, int offset) {
    GL20 gl = Gdx.graphics.getGL20();
    checkManaged();
    int location = fetchAttributeLocation(name);
    if (location == -1) return;
    gl.glVertexAttribPointer(location, size, type, normalize, stride, offset);
  }
 
  /** Makes OpenGL ES 2.0 use this vertex and fragment shader pair. When you are done with this shader you have to call
   * {@link ShaderProgram#end()}. */
  public void begin () {
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.