Package com.mojang.blaze3d.platform
Class GlDebug
java.lang.Object
com.mojang.blaze3d.platform.GlDebug
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static booleanprivate static GlDebug.LogEntryprivate static final org.slf4j.Loggerprivate static final Queue<GlDebug.LogEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableDebugCallback(int pDebugVerbosity, boolean pSynchronous) static booleanprivate static voidprintDebugLog(int pSource, int pType, int pId, int pSeverity, int pMessageLength, long pMessage, long pUserParam) private static StringprintUnknownToken(int pToken) static StringseverityToString(int pSeverity) static StringsourceToString(int pSource) static StringtypeToString(int pType)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CIRCULAR_LOG_SIZE
private static final int CIRCULAR_LOG_SIZE- See Also:
-
MESSAGE_BUFFER
-
lastEntry
-
DEBUG_LEVELS
-
DEBUG_LEVELS_ARB
-
debugEnabled
private static boolean debugEnabled
-
-
Constructor Details
-
GlDebug
public GlDebug()
-
-
Method Details
-
printUnknownToken
-
sourceToString
-
typeToString
-
severityToString
-
printDebugLog
private static void printDebugLog(int pSource, int pType, int pId, int pSeverity, int pMessageLength, long pMessage, long pUserParam) - Parameters:
pSource- The GLenum source represented as an ordinal integer.pType- The GLenum type represented as an ordinal integer.pId- The unbounded integer id of the message callback.pSeverity- The GLenum severity represented as an ordinal integer.pMessageLength- TheGLDebugMessageCallbacklength argument.pMessage- TheGLDebugMessageCallbackmessage argumentpUserParam- A user supplied pointer that will be passed on each invocation of callback.
-
getLastOpenGlDebugMessages
-
isDebugEnabled
public static boolean isDebugEnabled() -
enableDebugCallback
public static void enableDebugCallback(int pDebugVerbosity, boolean pSynchronous)
-