本文整理汇总了Java中android.opengl.GLES20.glDeleteFramebuffers方法的典型用法代码示例。如果您正苦于以下问题:Java GLES20.glDeleteFramebuffers方法的具体用法?Java GLES20.glDeleteFramebuffers怎么用?Java GLES20.glDeleteFramebuffers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.opengl.GLES20
的用法示例。
在下文中一共展示了GLES20.glDeleteFramebuffers方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: destroy
import android.opengl.GLES20; //导入方法依赖的package包/类
@Override
public void destroy() {
super.destroy();
if (mFrameBuffer != null) {
GLES20.glDeleteFramebuffers(1, mFrameBuffer, 0);
mFrameBuffer = null;
}
if (mDepthRenderBuffer != null) {
GLES20.glDeleteRenderbuffers(1, mDepthRenderBuffer, 0);
mDepthRenderBuffer = null;
}
if (mTextureOut != null) {
GLES20.glDeleteTextures(1, mTextureOut, 0);
mTextureOut = null;
}
}
示例2: deleteFBO
import android.opengl.GLES20; //导入方法依赖的package包/类
private void deleteFBO()
{
Log.d(LOGTAG, "deleteFBO("+mFBOWidth+"x"+mFBOHeight+")");
GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);
GLES20.glDeleteFramebuffers(1, FBO, 0);
deleteTex(texFBO);
deleteTex(texDraw);
mFBOWidth = mFBOHeight = 0;
}
示例3: destroyFrameBuffers
import android.opengl.GLES20; //导入方法依赖的package包/类
private void destroyFrameBuffers() {
if (mFrameBufferTexture != null) {
GLES20.glDeleteTextures(mFrameBufferTexture.length, mFrameBufferTexture, 0);
mFrameBufferTexture = null;
}
if (mFrameBuffer != null) {
GLES20.glDeleteFramebuffers(mFrameBuffer.length, mFrameBuffer, 0);
mFrameBuffer = null;
}
}
示例4: releaseGl
import android.opengl.GLES20; //导入方法依赖的package包/类
/**
* Releases most of the GL resources we currently hold.
* <p>
* Does not release EglCore.
*/
private void releaseGl() {
GlUtil.checkGlError("releaseGl start");
int[] values = new int[1];
if (mWindowSurface != null) {
mWindowSurface.release();
mWindowSurface = null;
}
if (mProgram != null) {
mProgram.release();
mProgram = null;
}
if (mOffscreenTexture > 0) {
values[0] = mOffscreenTexture;
GLES20.glDeleteTextures(1, values, 0);
mOffscreenTexture = -1;
}
if (mFramebuffer > 0) {
values[0] = mFramebuffer;
GLES20.glDeleteFramebuffers(1, values, 0);
mFramebuffer = -1;
}
if (mDepthBuffer > 0) {
values[0] = mDepthBuffer;
GLES20.glDeleteRenderbuffers(1, values, 0);
mDepthBuffer = -1;
}
if (mFullScreen != null) {
mFullScreen.release(false); // TODO: should be "true"; must ensure mEglCore current
mFullScreen = null;
}
GlUtil.checkGlError("releaseGl done");
mEglCore.makeNothingCurrent();
}
示例5: destroyFramebuffers
import android.opengl.GLES20; //导入方法依赖的package包/类
public void destroyFramebuffers() {
if (mFrameBufferTextures != null) {
GLES20.glDeleteTextures(1, mFrameBufferTextures, 0);
mFrameBufferTextures = null;
}
if (mFrameBuffers != null) {
GLES20.glDeleteFramebuffers(1, mFrameBuffers, 0);
mFrameBuffers = null;
}
mFrameWidth = -1;
mFrameHeight = -1;
}
示例6: delete
import android.opengl.GLES20; //导入方法依赖的package包/类
public void delete() {
int[] buffers = {id};
GLES20.glDeleteFramebuffers(1, buffers, 0);
}