protected boolean checkGLError() { try { Util.checkGLError(); } catch (OpenGLException ex) { listener.handleError("An OpenGL error has occured!", ex); } // NOTE: Always return true since this is used in an "assert" statement return true; }
public static String gluErrorString(int error_code) { switch (error_code) { case GLU_INVALID_ENUM: return "Invalid enum (glu)"; case GLU_INVALID_VALUE: return "Invalid value (glu)"; case GLU_OUT_OF_MEMORY: return "Out of memory (glu)"; default: return Util.translateGLErrorString(error_code); } }