Examples of glVertexAttribPointer()


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

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

  }

  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

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

  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

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

  }

  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

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.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

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

  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

Examples of javax.media.opengl.GL3.glVertexAttribPointer()

                gl3.glActiveTexture(GL3.GL_TEXTURE0);
                texture.enable(gl3);
                texture.bind(gl3);
                gl3.glUniform1i(textureUnLoc, 0);
               
                gl3.glVertexAttribPointer(0, 4, GL3.GL_FLOAT, false, 0, 0);
                gl3.glVertexAttribPointer(1, 2, GL3.GL_FLOAT, false, 0, 4 * 4 * 4);

                gl3.glDrawArrays(GL3.GL_QUADS, 0, 4);
               
                texture.disable(gl3);
View Full Code Here

Examples of javax.media.opengl.GL3.glVertexAttribPointer()

                texture.enable(gl3);
                texture.bind(gl3);
                gl3.glUniform1i(textureUnLoc, 0);
               
                gl3.glVertexAttribPointer(0, 4, GL3.GL_FLOAT, false, 0, 0);
                gl3.glVertexAttribPointer(1, 2, GL3.GL_FLOAT, false, 0, 4 * 4 * 4);

                gl3.glDrawArrays(GL3.GL_QUADS, 0, 4);
               
                texture.disable(gl3);
            }
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.