本文整理匯總了Java中android.opengl.EGL14.EGL_SUCCESS屬性的典型用法代碼示例。如果您正苦於以下問題:Java EGL14.EGL_SUCCESS屬性的具體用法?Java EGL14.EGL_SUCCESS怎麽用?Java EGL14.EGL_SUCCESS使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類android.opengl.EGL14
的用法示例。
在下文中一共展示了EGL14.EGL_SUCCESS屬性的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: checkEglError
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
public static void checkEglError(String op) {
int error;
while ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
Lg.e( op + ": eglGetError: 0x" + Integer.toHexString(error));
throw new RuntimeException("eglGetError encountered (see log)");
}
}
示例2: checkEglError
private void checkEglError(String msg) {
boolean failed = false;
while (EGL14.eglGetError() != EGL14.EGL_SUCCESS) {
failed = true;
}
if (failed) {
throw new RuntimeException("EGL error encountered (see log)");
}
}
示例3: checkEglError
/**
* Checks for EGL errors.
*/
private void checkEglError(String msg) {
int error;
if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
}
}
示例4: swap
private int swap(final EGLSurface surface) {
// if (DEBUG) Log.v(TAG, "swap:");
if (!EGL14.eglSwapBuffers(mEglDisplay, surface)) {
final int err = EGL14.eglGetError();
if (DEBUG) Log.w(TAG, "swap:err=" + err);
return err;
}
return EGL14.EGL_SUCCESS;
}
示例5: checkEglError
private void checkEglError(String msg) {
boolean failed = false;
int error;
while ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
failed = true;
}
if (failed) {
throw new RuntimeException("EGL error encountered (see log)");
}
}
示例6: checkEglError
/**
* Checks for EGL errors. Throws an exception if an error has been raised.
*/
private void checkEglError(String msg) {
int error;
if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
}
}
示例7: logError
/** Log GL-Error. */
private static void logError() {
final int error = EGL14.eglGetError();
if (error != EGL14.EGL_SUCCESS) {
if (WARNINGS) {
Log.w(TAG, android.opengl.GLUtils.getEGLErrorString(error));
}
}
}
示例8: checkEglError
/**
* Checks for EGL errors.
*/
private void checkEglError(String msg) {
boolean failed = false;
int error;
while ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
Log.e(TAG, msg + ": EGL error: 0x" + Integer.toHexString(error));
failed = true;
}
if (failed) {
throw new RuntimeException("EGL error encountered (see log)");
}
}
示例9: swap
private int swap(final EGLSurface surface) {
if (!EGL14.eglSwapBuffers(mEglDisplay, surface)) {
final int err = EGL14.eglGetError();
return err;
}
return EGL14.EGL_SUCCESS;
}
示例10: checkEGLError
private void checkEGLError(String msg) {
int error;
if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
}
}
示例11: checkEglError
private void checkEglError(String msg) {
int error;
if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
}
}
示例12: checkEglError
public static void checkEglError(String msg) {
int error;
if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
}
}
示例13: checkEglError
private void checkEglError(final String msg) {
int error;
if ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) {
throw new RuntimeException(msg + ": EGL error: 0x" + Integer.toHexString(error));
}
}