当前位置: 首页>>代码示例>>Java>>正文


Java GLDebugHelper.CONFIG_CHECK_GL_ERROR属性代码示例

本文整理汇总了Java中android.opengl.GLDebugHelper.CONFIG_CHECK_GL_ERROR属性的典型用法代码示例。如果您正苦于以下问题:Java GLDebugHelper.CONFIG_CHECK_GL_ERROR属性的具体用法?Java GLDebugHelper.CONFIG_CHECK_GL_ERROR怎么用?Java GLDebugHelper.CONFIG_CHECK_GL_ERROR使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在android.opengl.GLDebugHelper的用法示例。


在下文中一共展示了GLDebugHelper.CONFIG_CHECK_GL_ERROR属性的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createGL

/**
 * Create a GL object for the current EGL context.
 * @return
 */
GL createGL() {

    GL gl = mEglContext.getGL();
    GLTextureView view = mGLSurfaceViewWeakRef.get();
    if (view != null) {
        if (view.mGLWrapper != null) {
            gl = view.mGLWrapper.wrap(gl);
        }

        if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
            int configFlags = 0;
            Writer log = null;
            if ((view.mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
                configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
            }
            if ((view.mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
                log = new LogWriter();
            }
            gl = GLDebugHelper.wrap(gl, configFlags, log);
        }
    }
    return gl;
}
 
开发者ID:pavelsemak,项目名称:alpha-movie,代码行数:27,代码来源:GLTextureView.java

示例2: createGL

/**
 * Create a GL object for the current EGL context.
 *
 * @return
 */
GL createGL() {

    GL gl = mEglContext.getGL();
    GLSurfaceView view = mGLSurfaceViewWeakRef.get();
    if (view != null) {
        if (view.mGLWrapper != null) {
            gl = view.mGLWrapper.wrap(gl);
        }

        if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
            int configFlags = 0;
            Writer log = null;
            if ((view.mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
                configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
            }
            if ((view.mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
                log = new LogWriter();
            }
            gl = GLDebugHelper.wrap(gl, configFlags, log);
        }
    }
    return gl;
}
 
开发者ID:uestccokey,项目名称:EZFilter,代码行数:28,代码来源:GLSurfaceView.java

示例3: createGL

/**
 * Create a GL object for the current EGL context.
 *
 * @return
 */
GL createGL() {

    GL gl = mEglContext.getGL();
    GLTextureView view = mGLTextureViewWeakRef.get();
    if (view != null) {
        if (view.mGLWrapper != null) {
            gl = view.mGLWrapper.wrap(gl);
        }

        if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
            int configFlags = 0;
            Writer log = null;
            if ((view.mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
                configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
            }
            if ((view.mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
                log = new LogWriter();
            }
            gl = GLDebugHelper.wrap(gl, configFlags, log);
        }
    }
    return gl;
}
 
开发者ID:uestccokey,项目名称:EZFilter,代码行数:28,代码来源:GLTextureView.java

示例4: createGL

/**
 * Create a GL object for the current EGL context.
 */
GL createGL() {

  GL gl = eglContext.getGL();
  GLTextureView view = glTextureViewWeakRef.get();
  if (view != null) {
    if (view.glWrapper != null) {
      gl = view.glWrapper.wrap(gl);
    }

    if ((view.debugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
      int configFlags = 0;
      Writer log = null;
      if ((view.debugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
        configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
      }
      if ((view.debugFlags & DEBUG_LOG_GL_CALLS) != 0) {
        log = new LogWriter();
      }
      gl = GLDebugHelper.wrap(gl, configFlags, log);
    }
  }
  return gl;
}
 
开发者ID:wasabeef,项目名称:android-RoundedTextureView,代码行数:26,代码来源:GLTextureView.java

示例5: createGL

/**
 * Create a GL object for the current EGL context.
 * @return
 */
GL createGL() {

    GL gl = mEglContext.getGL();
    GLTextureView view = mGLTextureViewWeakRef.get();
    if (view != null) {
        if (view.mGLWrapper != null) {
            gl = view.mGLWrapper.wrap(gl);
        }

        if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
            int configFlags = 0;
            Writer log = null;
            if ((view.mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
                configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
            }
            if ((view.mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
                log = new LogWriter();
            }
            gl = GLDebugHelper.wrap(gl, configFlags, log);
        }
    }
    return gl;
}
 
开发者ID:RealWei,项目名称:md360,代码行数:27,代码来源:GLTextureView.java

示例6: createGL

/**
 * Create a GL object for the current EGL context.
 * @return
 */
GL createGL() {

    GL gl = mEglContext.getGL();
    GlTextureView view = mGLTextureViewWeakRef.get();
    if (view != null) {
        if (view.mGLWrapper != null) {
            gl = view.mGLWrapper.wrap(gl);
        }

        if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
            int configFlags = 0;
            Writer log = null;
            if ((view.mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
                configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
            }
            if ((view.mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
                log = new LogWriter();
            }
            gl = GLDebugHelper.wrap(gl, configFlags, log);
        }
    }
    return gl;
}
 
开发者ID:shchurov,项目名称:ParticleView,代码行数:27,代码来源:GlTextureView.java

示例7: createGL

/**
 * Create a GL object for the current EGL context.
 */
GL createGL() {

    GL gl = mEglContext.getGL();
    GLSurfaceViewAPI18 view = mGLSurfaceViewWeakRef.get();
    if (view != null) {
        if (view.mGLWrapper != null) {
            gl = view.mGLWrapper.wrap(gl);
        }

        if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
            int configFlags = 0;
            Writer log = null;
            if ((view.mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
                configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
            }
            if ((view.mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
                log = new LogWriter();
            }
            gl = GLDebugHelper.wrap(gl, configFlags, log);
        }
    }
    return gl;
}
 
开发者ID:basherone,项目名称:libgdxcn,代码行数:26,代码来源:GLSurfaceViewAPI18.java

示例8: createGL

/**
 * Create a GL object for the current EGL context.
 * @return
 */
GL createGL() {

    GL gl = mEglContext.getGL();
    final GlTextureView view = mGLSurfaceViewWeakRef.get();
    if (view != null) {
        if (view.mGLWrapper != null) {
            gl = view.mGLWrapper.wrap(gl);
        }

        if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
            int configFlags = 0;
            Writer log = null;
            if ((view.mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
                configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
            }
            if ((view.mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
                log = new LogWriter(GlTextureView.TAG);
            }
            gl = GLDebugHelper.wrap(gl, configFlags, log);
        }
    }
    return gl;
}
 
开发者ID:kkucherenkov,项目名称:FxCameraApp,代码行数:27,代码来源:GlTextureView.java

示例9: createGL

/**
 * Create a GL object for the current EGL context.
 * @return
 */
GL createGL() {

    GL gl = mEglContext.getGL();
    GLSurfaceView view = mGLSurfaceViewWeakRef.get();
    if (view != null) {
        if (view.mGLWrapper != null) {
            gl = view.mGLWrapper.wrap(gl);
        }

        if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
            int configFlags = 0;
            Writer log = null;
            if ((view.mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
                configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
            }
            if ((view.mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
                log = new LogWriter();
            }
            gl = GLDebugHelper.wrap(gl, configFlags, log);
        }
    }
    return gl;
}
 
开发者ID:mFalko,项目名称:replica-RPG,代码行数:27,代码来源:GLSurfaceView.java

示例10: EGLLogWrapper

public EGLLogWrapper(EGL egl, int configFlags, Writer log) {
    mEgl10 = (EGL10) egl;
    mLog = log;
    mLogArgumentNames =
            (GLDebugHelper.CONFIG_LOG_ARGUMENT_NAMES & configFlags) != 0;
    mCheckError =
            (GLDebugHelper.CONFIG_CHECK_GL_ERROR & configFlags) != 0;
}
 
开发者ID:ChillingVan,项目名称:android-openGL-canvas,代码行数:8,代码来源:EGLLogWrapper.java

示例11: createSurface

public GL createSurface(SurfaceHolder holder) {
    /*
     *  The window size has changed, so we need to create a new
     *  surface.
     */
    if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) {

        /*
         * Unbind and destroy the old EGL surface, if
         * there is one.
         */
        mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE,
                EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
        mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface);
    }

    /*
     * Create an EGL surface we can render into.
     */
    mEglSurface = mEGLWindowSurfaceFactory.createWindowSurface(mEgl,
            mEglDisplay, mEglConfig, holder);

    if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) {
        throwEglException("createWindowSurface");
    }

    /*
     * Before we can issue GL commands, we need to make sure
     * the context is current and bound to a surface.
     */
    if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
        throwEglException("eglMakeCurrent");
    }

    GL gl = mEglContext.getGL();
    if (mGLWrapper != null) {
        gl = mGLWrapper.wrap(gl);
    }

    if ((mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
        int configFlags = 0;
        Writer log = null;
        if ((mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
            configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
        }
        if ((mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
            log = new LogWriter();
        }
        gl = GLDebugHelper.wrap(gl, configFlags, log);
    }
    return gl;
}
 
开发者ID:gogas,项目名称:replicaisland,代码行数:52,代码来源:GLSurfaceView.java

示例12: checkAllGLErrors

/**
 * Enables a {@code glError()} check after every GL/EGL call.
 */
public void checkAllGLErrors() {
    mBuilderConfig |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
}
 
开发者ID:sujitkjha,项目名称:360-Video-Player-for-Android,代码行数:6,代码来源:RajawaliGLDebugger.java

示例13: createSurface

public GL createSurface(SurfaceHolder holder) {
	/*
	 * The window size has changed, so we need to create a new surface.
	 */
	if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) {

		/*
		 * Unbind and destroy the old EGL surface, if there is one.
		 */
		mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE,
				EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
		mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay,
				mEglSurface);
	}

	/*
	 * Create an EGL surface we can render into.
	 */
	mEglSurface = mEGLWindowSurfaceFactory.createWindowSurface(mEgl,
			mEglDisplay, mEglConfig, holder);

	if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) {
		throwEglException("createWindowSurface");
	}

	/*
	 * Before we can issue GL commands, we need to make sure the context
	 * is current and bound to a surface.
	 */
	if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface,
			mEglContext)) {
		throwEglException("eglMakeCurrent");
	}

	GL gl = mEglContext.getGL();
	if (mGLWrapper != null) {
		gl = mGLWrapper.wrap(gl);
	}

	if ((mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
		int configFlags = 0;
		Writer log = null;
		if ((mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
			configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
		}
		if ((mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
			log = new LogWriter();
		}
		gl = GLDebugHelper.wrap(gl, configFlags, log);
	}
	return gl;
}
 
开发者ID:pnosalik,项目名称:AugmentedOxford,代码行数:52,代码来源:ReplicaGLSurfaceView.java

示例14: createSurface

public GL createSurface(SurfaceHolder holder) {
     /*
      * The window size has changed, so we need to create a new
      * surface.
      */
     if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) {
/*
 * Unbind and destroy the old EGL surface, if
 * there is one.
 */
mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE,
			EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT);
mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface);
     }

     /*
      * Create an EGL surface we can render into.
      */
     mEglSurface = mEGLWindowSurfaceFactory.createWindowSurface(mEgl,
			mEglDisplay, mEglConfig, holder);

     if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) {
throwEglException("createWindowSurface");
     }

     /*
      * Before we can issue GL commands, we need to make sure
      * the context is current and bound to a surface.
      */
     if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) {
throwEglException("eglMakeCurrent");
     }

     GL gl = mEglContext.getGL();
     if (mGLWrapper != null) {
gl = mGLWrapper.wrap(gl);
     }

     if ((mDebugFlags & (DEBUG_CHECK_GL_ERROR | DEBUG_LOG_GL_CALLS)) != 0) {
int configFlags = 0;
Writer log = null;
if ((mDebugFlags & DEBUG_CHECK_GL_ERROR) != 0) {
  configFlags |= GLDebugHelper.CONFIG_CHECK_GL_ERROR;
}
if ((mDebugFlags & DEBUG_LOG_GL_CALLS) != 0) {
  log = new LogWriter();
}
gl = GLDebugHelper.wrap(gl, configFlags, log);
     }
     return gl;
   }
 
开发者ID:JoesCat,项目名称:ReplicaIsland,代码行数:51,代码来源:GLSurfaceView.java


注:本文中的android.opengl.GLDebugHelper.CONFIG_CHECK_GL_ERROR属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。