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