當前位置: 首頁>>代碼示例>>Java>>正文


Java GLES20.glDeleteFramebuffers方法代碼示例

本文整理匯總了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;
    }
}
 
開發者ID:uestccokey,項目名稱:EZFilter,代碼行數:17,代碼來源:FBORender.java

示例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;
}
 
開發者ID:beast,項目名稱:react-native-scan-doc,代碼行數:11,代碼來源:CameraGLRendererBase.java

示例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;
    }


}
 
開發者ID:lzmlsfe,項目名稱:19porn,代碼行數:13,代碼來源:SurfaceRenderer.java

示例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();
}
 
開發者ID:AndyZhu1991,項目名稱:grafika,代碼行數:43,代碼來源:RecordFBOActivity.java

示例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;
}
 
開發者ID:smartbeng,項目名稱:PaoMovie,代碼行數:13,代碼來源:MagicCameraInputFilter.java

示例6: delete

import android.opengl.GLES20; //導入方法依賴的package包/類
public void delete() {
	int[] buffers = {id};
	GLES20.glDeleteFramebuffers(1, buffers, 0);
}
 
開發者ID:G2159687,項目名稱:ESPD,代碼行數:5,代碼來源:Framebuffer.java


注:本文中的android.opengl.GLES20.glDeleteFramebuffers方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。