List of usage examples for android.opengl GLES20 GL_NO_ERROR
int GL_NO_ERROR
To view the source code for android.opengl GLES20 GL_NO_ERROR.
Click Source Link
From source file:Main.java
public static void checkGlError(String op) { int error;//from ww w. j a va 2 s .c om while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Log.e("SurfaceTest", op + ": glError " + GLUtils.getEGLErrorString(error)); } }
From source file:Main.java
public static void checkGlError(String op) { int error;// ww w . ja v a 2s . c o m while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Log.e("ES20_ERROR", op + ": glError " + error); throw new RuntimeException(op + ": glError " + error); } }
From source file:Main.java
public static void checkGlError(String glOp) { int error = GLES20.glGetError(); if (GLES20.GL_NO_ERROR != error) { String errorStr = GLU.gluErrorString(error); if (null == errorStr) { errorStr = GLUtils.getEGLErrorString(error); }/*from www .j a v a 2 s .co m*/ String msg = glOp + " caused GL error 0x" + Integer.toHexString(error) + ":" + errorStr; throw new GLException(error, msg); } }
From source file:Main.java
public static void checkGlError(String op) { int error;/*from w w w .ja v a 2 s . com*/ while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Log.e(TAG, op + ": glError " + GLU.gluErrorString(error)); throw new RuntimeException(op + ": glError " + GLU.gluErrorString(error)); } }
From source file:Main.java
/** * 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. *//* ww w .j a v a 2 s .c om*/ public static void checkGLError(final String tag, final String label) { int error; while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Log.e(tag, label + ": glError " + error); throw new RuntimeException(label + ": glError " + error); } }
From source file:Main.java
/** * 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. *///from w w w . j a v a 2 s .c o m public static void checkGLError(String label) { int error; while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Log.e(TAG, label + ": glError " + error); throw new RuntimeException(label + ": glError " + error); } }
From source file:Main.java
public static void checkGLError(String msg) { int error = GLES20.glGetError(); if (error != GLES20.GL_NO_ERROR) { String str = msg + ": glError 0x" + Integer.toHexString(error); Log.e(TAG, str);/*from w w w . java2 s . c o m*/ int values[] = new int[2]; GLES20.glGetIntegerv(GLES20.GL_ARRAY_BUFFER_BINDING, values, 0); GLES20.glGetIntegerv(GLES20.GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, values, 1); Log.e(TAG, "Current bound array buffer: " + values[0]); Log.e(TAG, "Current bound vertex attrib: " + values[1]); throw new RuntimeException(msg); } }
From source file:Main.java
/** * Utility method for debugging OpenGL calls. Provide the name of the call * just after making it:// www. ja va 2 s . c om * * <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); } }
From source file:Main.java
public static void checkNoGLES2Error(String msg) { int error = GLES20.glGetError(); if (error != GLES20.GL_NO_ERROR) { throw new RuntimeException(msg + ": GLES20 error: " + error); }/*from www. j a v a2 s . c o m*/ }
From source file:Main.java
/** * Checks to see if a GLES error has been raised. *//*from w ww .j a va 2 s. c o m*/ 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); } }