本文整理汇总了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);
}