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


Java GLES20.GL_NO_ERROR屬性代碼示例

本文整理匯總了Java中android.opengl.GLES20.GL_NO_ERROR屬性的典型用法代碼示例。如果您正苦於以下問題:Java GLES20.GL_NO_ERROR屬性的具體用法?Java GLES20.GL_NO_ERROR怎麽用?Java GLES20.GL_NO_ERROR使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在android.opengl.GLES20的用法示例。


在下文中一共展示了GLES20.GL_NO_ERROR屬性的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: checkError

public static void checkError(String op) {
    int error = GLES20.glGetError();
    if (error != GLES20.GL_NO_ERROR) {
        String msg = op + ": glError 0x" + Integer.toHexString(error);
        mLog.e(msg);
        throw new RuntimeException(msg);
    }
}
 
開發者ID:vipycm,項目名稱:mao-android,代碼行數:8,代碼來源:OpenGLUtils.java

示例2: checkGlError

/**
 * Checks to see if a GLES error has been raised.
 */
public static void checkGlError(String op) {
    int error = GLES20.glGetError();
    if (error != GLES20.GL_NO_ERROR) {
        String msg = op + ": glError 0x" + Integer.toHexString(error);
        Log.e(TAG, msg);
        throw new RuntimeException(msg);
    }
}
 
開發者ID:lzmlsfe,項目名稱:19porn,代碼行數:11,代碼來源:OpenGlUtils.java

示例3: checkGlError

private void checkGlError(String op) {
    int error;
    if ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
        Log.e(TAG, op + ": glError " + error);
        throw new RuntimeException(op + ": glError " + error);
    }
}
 
開發者ID:pavelsemak,項目名稱:alpha-movie,代碼行數:7,代碼來源:VideoRenderer.java

示例4: checkGLESError

private void checkGLESError(String where) {
    int error = GLES20.glGetError();
    if (error != GLES20.GL_NO_ERROR) {
        LogUtil.e(TAG, "checkGLESError: " + GLU.gluErrorString(error));
        throw new RuntimeException(where);
    }
}
 
開發者ID:TedaLIEz,項目名稱:ParsingPlayer,代碼行數:7,代碼來源:VideoRenderThread.java

示例5: checkError

/** Log GL-Error. */
private static void checkError() {
    final int error = GLES20.glGetError();
    if (error != GLES20.GL_NO_ERROR) {
        throw new RuntimeException(GLUtils.getEGLErrorString(error));
    }
}
 
開發者ID:Nik-Gleb,項目名稱:mpeg-encoder,代碼行數:7,代碼來源:GLTools.java

示例6: checkGlError

public static void checkGlError(String op) {
    int error;
    while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
        Log.e(TAG, op + ": glError " + error);
        throw new RuntimeException(op + ": glError " + error);
    }
}
 
開發者ID:livio,項目名稱:sdl_video_streaming_android_sample,代碼行數:7,代碼來源:TextureRender.java

示例7: checkGlError

public static void checkGlError(String tag) {
    int error = GLES20.glGetError();
    if (error != GLES20.GL_NO_ERROR) {
        String msg = tag + ": glError 0x" + Integer.toHexString(error);
        Log.e(TAG, msg);
        throw new RuntimeException(msg);
    }
}
 
開發者ID:AgoraIO,項目名稱:Agora-Screen-Sharing-Android,代碼行數:8,代碼來源:GlUtil.java

示例8: checkGLError

/**
 * Checks if we've had an error inside of OpenGL ES, and if so what that error is.
 *
 * @param label Label to report in case of error.
 * @throws RuntimeException If an OpenGL error is detected.
 */
public static void checkGLError(String tag, String label) {
    int error;
    while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
        Log.e(tag, label + ": glError " + error);
        throw new RuntimeException(label + ": glError " + error);
    }
}
 
開發者ID:googlecreativelab,項目名稱:ar-drawing-java,代碼行數:13,代碼來源:ShaderUtil.java

示例9: checkGlError

public static void checkGlError(String glOperation) {
	int error;
	while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
		Log.e("ceshi", glOperation + ": glError " + error);
		throw new RuntimeException(glOperation + ": glError " + error);
	}
}
 
開發者ID:FacePlusPlus,項目名稱:MegviiFacepp-Android-SDK,代碼行數:7,代碼來源:PointsMatrix.java

示例10: checkGlError

/**
 * 檢查每一步操作是否有誤
 * @param op 操作
 */
public static void checkGlError(String op) {
    int error;
    while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
        Log.e(TAG, op + " glGetError: " + error);
        throw new RuntimeException(op + " glGetError: " + error);
    }
}
 
開發者ID:ynztlxdeai,項目名稱:GLproject,代碼行數:11,代碼來源:ShaderUtil.java

示例11: checkGlError

public void checkGlError(String op) {
    int error;
    if ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
        throw new RuntimeException(op + ": glError " + error);
    }
}
 
開發者ID:MLNO,項目名稱:airgram,代碼行數:6,代碼來源:TextureRenderer.java

示例12: checkNoGLES2Error

public static void checkNoGLES2Error(String msg) {
  int error = GLES20.glGetError();
  if (error != GLES20.GL_NO_ERROR) {
    throw new RuntimeException(msg + ": GLES20 error: " + error);
  }
}
 
開發者ID:lgyjg,項目名稱:AndroidRTC,代碼行數:6,代碼來源:GlUtil.java

示例13: checkGlError

public static void checkGlError(String op) {
    int error;
    while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
        throw new RuntimeException(op + ": glError " + error);
    }
}
 
開發者ID:sdrausty,項目名稱:buildAPKsSamples,代碼行數:6,代碼來源:GLToolbox.java

示例14: checkGlError

/**
* Utility method for debugging OpenGL calls. Provide the name of the call
* just after making it:
*
* <pre>
* mColorHandle = GLES20.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 = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
        Log.e(TAG, glOperation + ": glError " + error);
        throw new RuntimeException(glOperation + ": glError " + error);
    }
}
 
開發者ID:biezhihua,項目名稱:Android_OpenGL_Demo,代碼行數:19,代碼來源:MyGLRenderer.java


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