Examples of glBufferData()


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

      if (Gdx.gl20 != null) {
        GL20 gl = Gdx.gl20;
        gl.glBufferData(GL20.GL_ARRAY_BUFFER, byteBuffer.limit(), byteBuffer, usage);
      } else {
        GL11 gl = Gdx.gl11;
        gl.glBufferData(GL11.GL_ARRAY_BUFFER, byteBuffer.limit(), byteBuffer, usage);
      }
      isDirty = false;
    }
  }
View Full Code Here

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

    GL11 gl = Gdx.gl11;

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

    int textureUnit = 0;
    int numAttributes = attributes.size();
View Full Code Here

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

    buffer.flip();

    if (isBound) {
      if (Gdx.gl11 != null) {
        GL11 gl = Gdx.gl11;
        gl.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, buffer.limit(), buffer, usage);
      } else if (Gdx.gl20 != null) {
        GL20 gl = Gdx.gl20;
        gl.glBufferData(GL20.GL_ELEMENT_ARRAY_BUFFER, buffer.limit(), buffer, usage);
      }
      isDirty = false;
View Full Code Here

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

      if (Gdx.gl11 != null) {
        GL11 gl = Gdx.gl11;
        gl.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, buffer.limit(), buffer, usage);
      } else if (Gdx.gl20 != null) {
        GL20 gl = Gdx.gl20;
        gl.glBufferData(GL20.GL_ELEMENT_ARRAY_BUFFER, buffer.limit(), buffer, usage);
      }
      isDirty = false;
    }
  }
View Full Code Here

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

    if (Gdx.gl11 != null) {
      GL11 gl = Gdx.gl11;
      gl.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, bufferHandle);
      if (isDirty) {
        gl.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, buffer.limit(), buffer, usage);
        isDirty = false;
      }
    } else {
      GL20 gl = Gdx.gl20;
      gl.glBindBuffer(GL20.GL_ELEMENT_ARRAY_BUFFER, bufferHandle);
View Full Code Here

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

      }
    } else {
      GL20 gl = Gdx.gl20;
      gl.glBindBuffer(GL20.GL_ELEMENT_ARRAY_BUFFER, bufferHandle);
      if (isDirty) {
        gl.glBufferData(GL20.GL_ELEMENT_ARRAY_BUFFER, buffer.limit(), buffer, usage);
        isDirty = false;
      }
    }
    isBound = true;
  }
View Full Code Here

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

      if (Gdx.gl20 != null) {
        GL20 gl = Gdx.gl20;
        gl.glBufferData(GL20.GL_ARRAY_BUFFER, buffer.limit(), buffer, usage);
      } else {
        GL11 gl = Gdx.gl11;
        gl.glBufferData(GL11.GL_ARRAY_BUFFER, buffer.limit(), buffer, usage);
      }
      isDirty = false;
    }
  }
View Full Code Here

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

  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;
    }

    int textureUnit = 0;
    int numAttributes = attributes.size();
View Full Code Here

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

    final GL20 gl = Gdx.gl20;

    gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, bufferHandle);
    if (isDirty) {
      byteBuffer.limit(buffer.limit() * 4);
      gl.glBufferData(GL20.GL_ARRAY_BUFFER, byteBuffer.limit(), byteBuffer, usage);
      isDirty = false;
    }

    final int numAttributes = attributes.size();
    if (locations == null) {
View Full Code Here

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

    buffer.limit(count);

    if (isBound) {
      if (Gdx.gl20 != null) {
        GL20 gl = Gdx.gl20;
        gl.glBufferData(GL20.GL_ARRAY_BUFFER, byteBuffer.limit(), byteBuffer, usage);
      } else {
        GL11 gl = Gdx.gl11;
        gl.glBufferData(GL11.GL_ARRAY_BUFFER, byteBuffer.limit(), byteBuffer, 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.