本文整理匯總了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
}
示例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;
}
}
示例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);
}
示例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;
}
}
示例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);
}
示例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;
}
}
示例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);
}
示例8: delete
import android.opengl.GLES20; //導入方法依賴的package包/類
public void delete() {
synchronized (buffers) {
GLES20.glDeleteBuffers(1, new int[]{id}, 0);
buffers.remove(this);
}
}
示例9: delete
import android.opengl.GLES20; //導入方法依賴的package包/類
public void delete(){
synchronized (buffers) {
GLES20.glDeleteBuffers(1, new int[]{id}, 0);
buffers.remove(this);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}