private void printNull() { printStyle(ANSI_BLUE, "null"); }
private void printBoolean(boolean bool) { printStyle(ANSI_BLUE, bool ? "true" : "false"); }
private void printOut() { printStyle(ANSI_CYAN, "out="); }
private void printEnum(int value) { String enumName = constMap.get(value); if (enumName != null) { if (enumName.startsWith("GL_")) { enumName = enumName.substring(3); } if (enumName.endsWith("_EXT") || enumName.endsWith("_ARB")) { enumName = enumName.substring(0, enumName.length() - 4); } printStyle(ANSI_GREEN, enumName); } else { printStyle(ANSI_GREEN, "ENUM_" + Integer.toHexString(value)); } }
private void printMethodName(String methodName) { if (methodName.startsWith("gl")) { // GL calls which actually draw (as opposed to change state) // will be printed in darker color methodName = methodName.substring(2); if (methodName.equals("Clear") || methodName.equals("DrawRangeElements") || methodName.equals("DrawElementsInstancedARB")) { print(methodName); } else { if (methodName.endsWith("EXT")) { methodName = methodName.substring(0, methodName.length() - 3); } printStyle(ANSI_BRIGHT, methodName); } } else if (methodName.equals("resetStats")) { printStyle(ANSI_RED, "-- frame boundary --"); } }
private void printArgsClear(int mask) { boolean needAPipe = false; print("("); if ((mask & GL.GL_COLOR_BUFFER_BIT) != 0) { printStyle(ANSI_GREEN, "COLOR_BUFFER_BIT"); needAPipe = true; } if ((mask & GL.GL_DEPTH_BUFFER_BIT) != 0) { if (needAPipe) { print(" | "); } printStyle(ANSI_GREEN, "DEPTH_BUFFER_BIT"); } if ((mask & GL.GL_STENCIL_BUFFER_BIT) != 0) { if (needAPipe) { print(" | "); } printStyle(ANSI_GREEN, "STENCIL_BUFFER_BIT"); } print(")"); }
private void printBoolean(boolean bool) { printStyle(ANSI_BLUE, bool ? "true" : "false"); }
private void printNull() { printStyle(ANSI_BLUE, "null"); }
private void printOut() { printStyle(ANSI_CYAN, "out="); }
private void printEnum(int value) { String enumName = constMap.get(value); if (enumName != null) { if (enumName.startsWith("GL_")) { enumName = enumName.substring(3); } if (enumName.endsWith("_EXT") || enumName.endsWith("_ARB")) { enumName = enumName.substring(0, enumName.length() - 4); } printStyle(ANSI_GREEN, enumName); } else { printStyle(ANSI_GREEN, "ENUM_" + Integer.toHexString(value)); } }
private void printMethodName(String methodName) { if (methodName.startsWith("gl")) { // GL calls which actually draw (as opposed to change state) // will be printed in darker color methodName = methodName.substring(2); if (methodName.equals("Clear") || methodName.equals("DrawRangeElements") || methodName.equals("DrawElementsInstancedARB")) { print(methodName); } else { if (methodName.endsWith("EXT")) { methodName = methodName.substring(0, methodName.length() - 3); } printStyle(ANSI_BRIGHT, methodName); } } else if (methodName.equals("resetStats")) { printStyle(ANSI_RED, "-- frame boundary --"); } }
private void printArgsClear(int mask) { boolean needAPipe = false; print("("); if ((mask & GL.GL_COLOR_BUFFER_BIT) != 0) { printStyle(ANSI_GREEN, "COLOR_BUFFER_BIT"); needAPipe = true; } if ((mask & GL.GL_DEPTH_BUFFER_BIT) != 0) { if (needAPipe) { print(" | "); } printStyle(ANSI_GREEN, "DEPTH_BUFFER_BIT"); } if ((mask & GL.GL_STENCIL_BUFFER_BIT) != 0) { if (needAPipe) { print(" | "); } printStyle(ANSI_GREEN, "STENCIL_BUFFER_BIT"); } print(")"); }