Class GlDebug

java.lang.Object
com.mojang.blaze3d.platform.GlDebug

public class GlDebug extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • CIRCULAR_LOG_SIZE

      private static final int CIRCULAR_LOG_SIZE
      See Also:
    • MESSAGE_BUFFER

      private static final Queue<GlDebug.LogEntry> MESSAGE_BUFFER
    • lastEntry

      @Nullable private static volatile GlDebug.LogEntry lastEntry
    • DEBUG_LEVELS

      private static final List<Integer> DEBUG_LEVELS
    • DEBUG_LEVELS_ARB

      private static final List<Integer> DEBUG_LEVELS_ARB
    • debugEnabled

      private static boolean debugEnabled
  • Constructor Details

    • GlDebug

      public GlDebug()
  • Method Details

    • printUnknownToken

      private static String printUnknownToken(int pToken)
    • sourceToString

      public static String sourceToString(int pSource)
    • typeToString

      public static String typeToString(int pType)
    • severityToString

      public static String severityToString(int pSeverity)
    • 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 - The GLDebugMessageCallback length argument.
      pMessage - The GLDebugMessageCallback message argument
      pUserParam - A user supplied pointer that will be passed on each invocation of callback.
    • getLastOpenGlDebugMessages

      public static List<String> getLastOpenGlDebugMessages()
    • isDebugEnabled

      public static boolean isDebugEnabled()
    • enableDebugCallback

      public static void enableDebugCallback(int pDebugVerbosity, boolean pSynchronous)