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 int
private static boolean
private static GlDebug.LogEntry
private static final org.slf4j.Logger
private static final Queue
<GlDebug.LogEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
enableDebugCallback
(int debugVerbosity, boolean synchronous) static boolean
private static void
printDebugLog
(int source, int type, int id, int severity, int messageLength, long message, long userParam) private static String
printUnknownToken
(int token) static String
severityToString
(int severity) static String
sourceToString
(int source) static String
typeToString
(int type)
-
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 source, int type, int id, int severity, int messageLength, long message, long userParam) - Parameters:
source
- The GLenum source represented as an ordinal integer.type
- The GLenum type represented as an ordinal integer.id
- The unbounded integer id of the message callback.severity
- The GLenum severity represented as an ordinal integer.messageLength
- TheGLDebugMessageCallback
length argument.message
- TheGLDebugMessageCallback
message argumentuserParam
- 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 debugVerbosity, boolean synchronous)
-