Examples of glDeleteBuffers()


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

      tmpHandle.clear();
      tmpHandle.put(bufferHandle);
      tmpHandle.flip();
      GL20 gl = Gdx.gl20;
      gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0);
      gl.glDeleteBuffers(1, tmpHandle);
      bufferHandle = 0;
    } else {
      tmpHandle.clear();
      tmpHandle.put(bufferHandle);
      tmpHandle.flip();
View Full Code Here

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

      tmpHandle.clear();
      tmpHandle.put(bufferHandle);
      tmpHandle.flip();
      GL11 gl = Gdx.gl11;
      gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, 0);
      gl.glDeleteBuffers(1, tmpHandle);
      bufferHandle = 0;
    }
  }
}
View Full Code Here

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

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

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

      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

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

    tmpHandle.clear();
    tmpHandle.put(bufferHandle);
    tmpHandle.flip();
    GL20 gl = Gdx.gl20;
    gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0);
    gl.glDeleteBuffers(1, tmpHandle);
    bufferHandle = 0;
  }

  /** Returns the VBO handle
   * @return the VBO handle */
 
View Full Code Here

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

    tmpHandle.clear();
    tmpHandle.put(bufferHandle);
    tmpHandle.flip();
    GL20 gl = Gdx.gl20;
    gl.glBindBuffer(GL20.GL_ARRAY_BUFFER, 0);
    gl.glDeleteBuffers(1, tmpHandle);
    bufferHandle = 0;
    BufferUtils.disposeUnsafeByteBuffer(byteBuffer);
  }
}
View Full Code Here

Examples of javax.media.opengl.GL.glDeleteBuffers()

                idBuffer.put(i);
            }
        }
        idBuffer.flip();
        if (idBuffer.remaining() > 0) {
            gl.glDeleteBuffers(idBuffer.remaining(), idBuffer);
        }
    }

    public void deleteDisplayLists(final Collection<Integer> ids) {
        final GL gl = GLContext.getCurrentGL();
View Full Code Here

Examples of javax.media.opengl.GL.glDeleteBuffers()

        buffer.removeVBOID(context.getGlContextRep());

        final IntBuffer idBuff = BufferUtils.createIntBuffer(1);
        idBuff.put(id);
        idBuff.flip();
        gl.glDeleteBuffers(1, idBuff);
    }

    public void updateTexture1DSubImage(final Texture1D destination, final int dstOffsetX, final int dstWidth,
            final ByteBuffer source, final int srcOffsetX) {
        updateTexSubImage(destination, dstOffsetX, 0, 0, dstWidth, 0, 0, source, srcOffsetX, 0, 0, 0, 0, null);
View Full Code Here

Examples of javax.media.opengl.GL2.glDeleteBuffers()

            out.println(clBuffer);

            clBuffer.release();
           
            gl.glDeleteBuffers(1, id, 0);
           
        }finally{
            context.release();
            deinitGL();
        }
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.