本文整理匯總了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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));
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例11: checkGlError
public void checkGlError(String op) {
int error;
if ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
throw new RuntimeException(op + ": glError " + error);
}
}
示例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);
}
}
示例13: checkGlError
public static void checkGlError(String op) {
int error;
while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
throw new RuntimeException(op + ": glError " + error);
}
}
示例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);
}
}