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


Java GLES30.GL_NO_ERROR属性代码示例

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


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

示例1: logVersionInfo

/**
 * Writes GL version info to the log.
 */
public static void logVersionInfo() {
    Log.i(TAG, "vendor  : " + GLES20.glGetString(GLES20.GL_VENDOR));
    Log.i(TAG, "renderer: " + GLES20.glGetString(GLES20.GL_RENDERER));
    Log.i(TAG, "version : " + GLES20.glGetString(GLES20.GL_VERSION));

    if (CHECK_GLES30) {
        int[] values = new int[1];
        GLES30.glGetIntegerv(GLES30.GL_MAJOR_VERSION, values, 0);
        int majorVersion = values[0];
        GLES30.glGetIntegerv(GLES30.GL_MINOR_VERSION, values, 0);
        int minorVersion = values[0];
        if (GLES30.glGetError() == GLES30.GL_NO_ERROR) {
            Log.i(TAG, "iversion: " + majorVersion + "." + minorVersion);
        }
    }
}
 
开发者ID:zhangyaqiang,项目名称:Fatigue-Detection,代码行数:19,代码来源:GLUtils.java

示例2: logVersionInfo

/**
 * Writes GL version info to the log.
 */
public static void logVersionInfo() {
    Log.i(TAG, "vendor  : " + GLES20.glGetString(GLES20.GL_VENDOR));
    Log.i(TAG, "renderer: " + GLES20.glGetString(GLES20.GL_RENDERER));
    Log.i(TAG, "version : " + GLES20.glGetString(GLES20.GL_VERSION));

    if (false) {
        int[] values = new int[1];
        GLES30.glGetIntegerv(GLES30.GL_MAJOR_VERSION, values, 0);
        int majorVersion = values[0];
        GLES30.glGetIntegerv(GLES30.GL_MINOR_VERSION, values, 0);
        int minorVersion = values[0];
        if (GLES30.glGetError() == GLES30.GL_NO_ERROR) {
            Log.i(TAG, "iversion: " + majorVersion + "." + minorVersion);
        }
    }
}
 
开发者ID:AndyZhu1991,项目名称:grafika,代码行数:19,代码来源:GlUtil.java

示例3: logVersionInfo

/**
 * Writes GL version info to the log.
 */
@SuppressLint("InlinedApi")
public static void logVersionInfo() {
	Log.i(TAG, "vendor  : " + GLES20.glGetString(GLES20.GL_VENDOR));
	Log.i(TAG, "renderer: " + GLES20.glGetString(GLES20.GL_RENDERER));
	Log.i(TAG, "version : " + GLES20.glGetString(GLES20.GL_VERSION));

	if (BuildCheck.isAndroid4_3()) {
		final int[] values = new int[1];
		GLES30.glGetIntegerv(GLES30.GL_MAJOR_VERSION, values, 0);
		final int majorVersion = values[0];
		GLES30.glGetIntegerv(GLES30.GL_MINOR_VERSION, values, 0);
		final int minorVersion = values[0];
		if (GLES30.glGetError() == GLES30.GL_NO_ERROR) {
			Log.i(TAG, "version: " + majorVersion + "." + minorVersion);
		}
	}
}
 
开发者ID:saki4510t,项目名称:libcommon,代码行数:20,代码来源:GLHelper.java

示例4: logVersionInfo

/**
 * Writes GL version info to the log.
 */
@SuppressLint("InlinedApi")
public static void logVersionInfo() {
	Log.i(TAG, "vendor  : " + GLES10.glGetString(GLES10.GL_VENDOR));
	Log.i(TAG, "renderer: " + GLES10.glGetString(GLES10.GL_RENDERER));
	Log.i(TAG, "version : " + GLES10.glGetString(GLES10.GL_VERSION));

	if (BuildCheck.isAndroid4_3()) {
		final int[] values = new int[1];
		GLES30.glGetIntegerv(GLES30.GL_MAJOR_VERSION, values, 0);
		final int majorVersion = values[0];
		GLES30.glGetIntegerv(GLES30.GL_MINOR_VERSION, values, 0);
		final int minorVersion = values[0];
		if (GLES30.glGetError() == GLES30.GL_NO_ERROR) {
			Log.i(TAG, "version: " + majorVersion + "." + minorVersion);
		}
	}
}
 
开发者ID:saki4510t,项目名称:libcommon,代码行数:20,代码来源:GLHelper.java

示例5: checkGlError

/**
 * Utility method for debugging OpenGL calls. Provide the name of the call
 * just after making it:
 *
 * <pre>
 * mColorHandle = GLES30.glGetUniformLocation(mProgram, "vColor");
 * MyGLRenderer.checkGlError("glGetUniformLocation");</pre>
 *
 * If the operation is not successful, the check throws an error.
 *
 * @param glOperation - Name of the OpenGL call to check.
 */
public static void checkGlError(String glOperation) {
    int error;
    while ((error = GLES30.glGetError()) != GLES30.GL_NO_ERROR) {
        Log.e(TAG, glOperation + ": glError " + error);
        throw new RuntimeException(glOperation + ": glError " + error);
    }
}
 
开发者ID:JimSeker,项目名称:CardBoardVR,代码行数:19,代码来源:myStereoRenderer.java

示例6: checkGlError

/**
* Utility method for debugging OpenGL calls. Provide the name of the call
* just after making it:
*
* <pre>
* mColorHandle = GLES30.glGetUniformLocation(mProgram, "vColor");
* MyGLRenderer.checkGlError("glGetUniformLocation");</pre>
*
* If the operation is not successful, the check throws an error.
*
* @param glOperation - Name of the OpenGL call to check.
*/
public static void checkGlError(String glOperation) {
    int error;
    while ((error = GLES30.glGetError()) != GLES30.GL_NO_ERROR) {
        Log.e(TAG, glOperation + ": glError " + error);
        throw new RuntimeException(glOperation + ": glError " + error);
    }
}
 
开发者ID:JimSeker,项目名称:opengl,代码行数:19,代码来源:MyGLRenderer.java


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