Package org.lwjgl.egl

Interface EGLDebugMessageKHRCallbackI

  • All Superinterfaces:
    org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
    All Known Implementing Classes:
    EGLDebugMessageKHRCallback
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface EGLDebugMessageKHRCallbackI
    extends org.lwjgl.system.CallbackI
    Instances of this interface may be passed to the DebugMessageControlKHR method.

    Type

    
     void (*invoke(int, long, int, long, long, long)) (
         EGLenum error,
         char const *command,
         EGLint messageType,
         EGLLabelKHR threadLabel,
         EGLLabelKHR objectLabel,
         char const *message
     )
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.lwjgl.system.libffi.FFICIF CIF  
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void callback​(long ret, long args)  
      default org.lwjgl.system.libffi.FFICIF getCallInterface()  
      void invoke​(int error, long command, int messageType, long threadLabel, long objectLabel, long message)
      Will be called when a debug message is generated.
      • Methods inherited from interface org.lwjgl.system.CallbackI

        address
    • Field Detail

      • CIF

        static final org.lwjgl.system.libffi.FFICIF CIF
    • Method Detail

      • getCallInterface

        default org.lwjgl.system.libffi.FFICIF getCallInterface()
        Specified by:
        getCallInterface in interface org.lwjgl.system.CallbackI
      • callback

        default void callback​(long ret,
                              long args)
        Specified by:
        callback in interface org.lwjgl.system.CallbackI
      • invoke

        void invoke​(int error,
                    long command,
                    int messageType,
                    long threadLabel,
                    long objectLabel,
                    long message)
        Will be called when a debug message is generated.
        Parameters:
        error - will contain an EGL error code, or SUCCESS, as applicable
        command - will contain a pointer to a string. Example "eglBindApi".
        messageType - will contain one of the debug message types
        threadLabel - will contain the label attached to the current thread. The threadLabel will be NULL if not set by the application. If the message is from an internal thread, the label will be NULL.
        objectLabel - will contain the label attached to the primary object of the message; Labels will be NULL if not set by the application. The primary object should be the object the function operates on, see table 13.2 which provides the recommended mapping between functions and their primary object. This objectLabel may be NULL even though the application labeled the object. This is because it is possible an error was raised while executing the command before the primary object was validated, therefore its label can not be included in the callback.
        message - will contain a platform specific debug string message; This string should provide added information to the application developer regarding the condition that generated the message. The format of a message is implementation-defined, although it should represent a concise description of the event that caused the message to be generated. Message strings can be NULL and should not be assumed otherwise.