當前位置: 首頁>>代碼示例>>Java>>正文


Java GLES20.glDeleteBuffers方法代碼示例

本文整理匯總了Java中android.opengl.GLES20.glDeleteBuffers方法的典型用法代碼示例。如果您正苦於以下問題:Java GLES20.glDeleteBuffers方法的具體用法?Java GLES20.glDeleteBuffers怎麽用?Java GLES20.glDeleteBuffers使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.opengl.GLES20的用法示例。


在下文中一共展示了GLES20.glDeleteBuffers方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: glDeleteBuffers

import android.opengl.GLES20; //導入方法依賴的package包/類
public static void glDeleteBuffers(final int aNumberOfBuffers, final IntBuffer aBufferHandles)
{
    //.if DESKTOP
    //|gl.glDeleteBuffers(aNumberOfBuffers, aBufferHandles);
    //.elseif ANDROID
    GLES20.glDeleteBuffers(aNumberOfBuffers, aBufferHandles);
    //.endif
    
}
 
開發者ID:jfcameron,項目名稱:G2Dj,代碼行數:10,代碼來源:GL.java

示例2: release

import android.opengl.GLES20; //導入方法依賴的package包/類
void release() {
    if (vbo[0] > 0) {
        GLES20.glDeleteBuffers(vbo.length, vbo, 0);
        vbo[0] = 0;
    }

    if (ibo[0] > 0) {
        GLES20.glDeleteBuffers(ibo.length, ibo, 0);
        ibo[0] = 0;
    }
}
 
開發者ID:biezhihua,項目名稱:Android_OpenGL_Demo,代碼行數:12,代碼來源:LessonEightRenderer.java

示例3: release

import android.opengl.GLES20; //導入方法依賴的package包/類
@Override
public void release() {
    // Delete buffers from OpenGL's memory
    final int[] buffersToDelete = new int[]{mCubePositionsBufferIdx, mCubeNormalsBufferIdx,
            mCubeTexCoordsBufferIdx};
    GLES20.glDeleteBuffers(buffersToDelete.length, buffersToDelete, 0);
}
 
開發者ID:biezhihua,項目名稱:Android_OpenGL_Demo,代碼行數:8,代碼來源:LessonSevenRenderer.java

示例4: release

import android.opengl.GLES20; //導入方法依賴的package包/類
void release() {
	if (vbo[0] > 0) {
		GLES20.glDeleteBuffers(vbo.length, vbo, 0);
		vbo[0] = 0;
	}

	if (ibo[0] > 0) {
		GLES20.glDeleteBuffers(ibo.length, ibo, 0);
		ibo[0] = 0;
	}
}
 
開發者ID:biezhihua,項目名稱:Android_OpenGL_Demo,代碼行數:12,代碼來源:LessonEightRenderer.java

示例5: release

import android.opengl.GLES20; //導入方法依賴的package包/類
@Override
public void release() {
	// Delete buffers from OpenGL's memory
	final int[] buffersToDelete = new int[] { mCubePositionsBufferIdx, mCubeNormalsBufferIdx,
			mCubeTexCoordsBufferIdx };
	GLES20.glDeleteBuffers(buffersToDelete.length, buffersToDelete, 0);
}
 
開發者ID:biezhihua,項目名稱:Android_OpenGL_Demo,代碼行數:8,代碼來源:LessonSevenRenderer.java

示例6: release

import android.opengl.GLES20; //導入方法依賴的package包/類
/**
 * deletes buffers from OpenGL's memory.
 */
void release() {
    if (qvbo[0] > 0) {
        GLES20.glDeleteBuffers(qvbo.length, qvbo, 0);
        qvbo[0] = 0;
    }

    if (qibo[0] > 0) {
        GLES20.glDeleteBuffers(qibo.length, qibo, 0);
        qibo[0] = 0;
    }
}
 
開發者ID:regar007,項目名稱:ShapesInOpenGLES2.0,代碼行數:15,代碼來源:Quad.java

示例7: release

import android.opengl.GLES20; //導入方法依賴的package包/類
/**
 * deletes buffers from opneGL's memory
 */
public void release() {
    // Delete buffers from OpenGL's memory
    final int[] buffersToDelete = new int[] { aCubePositionsBufferIdx, aCubeNormalsBufferIdx,
            aCubeTexCoordsBufferIdx, aCubeColorBufferIdx };
    GLES20.glDeleteBuffers(buffersToDelete.length, buffersToDelete, 0);
}
 
開發者ID:regar007,項目名稱:ShapesInOpenGLES2.0,代碼行數:10,代碼來源:Cubes.java

示例8: delete

import android.opengl.GLES20; //導入方法依賴的package包/類
public void delete() {
	synchronized (buffers) {
		GLES20.glDeleteBuffers(1, new int[]{id}, 0);
		buffers.remove(this);
	}
}
 
開發者ID:G2159687,項目名稱:ESPD,代碼行數:7,代碼來源:Vertexbuffer.java

示例9: delete

import android.opengl.GLES20; //導入方法依賴的package包/類
public void delete(){
	synchronized (buffers) {
		GLES20.glDeleteBuffers(1, new int[]{id}, 0);
		buffers.remove(this);
	}
}
 
開發者ID:mango-tree,項目名稱:UNIST-pixel-dungeon,代碼行數:7,代碼來源:Vertexbuffer.java

示例10: release

import android.opengl.GLES20; //導入方法依賴的package包/類
/**
 * Delete buffers from OpenGL's memory
 */
public void release() {
    // Delete buffers from OpenGL's memory
    final int[] buffersToDelete = new int[] { aLineColorsBufferIdx, aLinePositionsBufferIdx };
    GLES20.glDeleteBuffers(buffersToDelete.length, buffersToDelete, 0);
}
 
開發者ID:regar007,項目名稱:ShapesInOpenGLES2.0,代碼行數:9,代碼來源:Lines.java

示例11: release

import android.opengl.GLES20; //導入方法依賴的package包/類
public void release() {
    // Delete buffers from OpenGL's memory
    final int[] buffersToDelete = new int[] { aSpheresVerticesBufferIdx, aSpheresColorsBufferIdx};
    GLES20.glDeleteBuffers(buffersToDelete.length, buffersToDelete, 0);
}
 
開發者ID:regar007,項目名稱:ShapesInOpenGLES2.0,代碼行數:6,代碼來源:Spheres.java

示例12: release

import android.opengl.GLES20; //導入方法依賴的package包/類
/**
 * Delete buffers from OpenGL's memory
 */
public void release() {
    // Delete buffers from OpenGL's memory
    final int[] buffersToDelete = new int[] { aPointPositionsBufferIdx, aPointColorsBufferIdx };
    GLES20.glDeleteBuffers(buffersToDelete.length, buffersToDelete, 0);
}
 
開發者ID:regar007,項目名稱:ShapesInOpenGLES2.0,代碼行數:9,代碼來源:Points.java

示例13: release

import android.opengl.GLES20; //導入方法依賴的package包/類
/**
 * Delete buffers from OpenGL's memory
 */
public void release() {
    // Delete buffers from OpenGL's memory
    final int[] buffersToDelete = new int[] { aTrianglePositionsBufferIdx, aTriangleColorsBufferIdx};
    GLES20.glDeleteBuffers(buffersToDelete.length, buffersToDelete, 0);
}
 
開發者ID:regar007,項目名稱:ShapesInOpenGLES2.0,代碼行數:9,代碼來源:Triangles.java


注:本文中的android.opengl.GLES20.glDeleteBuffers方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。