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