Code example for GL10

Methods: glDeleteTextures

0
	 * @param gl 
	 */ 
	public void shutdown(GL10 gl) {
		int[] textureToDelete = new int[1];
		textureToDelete[0] = mCameraPreviewSprite.getTextureName();
		gl.glDeleteTextures(1, textureToDelete, 0);
		mCameraPreviewSprite.setTextureName(0);
		mCameraPreviewSprite.getGrid().releaseHardwareBuffers(gl);
	} 
 
	public static int nextPowerOf2(int n) {
		n -= 1;
		n |= n >>> 16;
		n |= n >>> 8;
		n |= n >>> 4;
		n |= n >>> 2;
		n |= n >>> 1;
		return n + 1;
	} 
 
	public static boolean isPowerOf2(int n) {