当前位置: 首页>>代码示例>>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;未经允许,请勿转载。