diff --git a/src/OpenTK/Graphics/ES11/Helper.cs b/src/OpenTK/Graphics/ES11/Helper.cs index 748d4d5b..a1ed83db 100644 --- a/src/OpenTK/Graphics/ES11/Helper.cs +++ b/src/OpenTK/Graphics/ES11/Helper.cs @@ -1,4 +1,5 @@ using System; +using System.Runtime.InteropServices; namespace OpenTK.Graphics.ES11 { @@ -38,4 +39,38 @@ namespace OpenTK.Graphics.ES11 } } + + /// + /// Defines the signature of a debug callback for + /// . + /// + /// The for this debug message. + /// The for this debug message. + /// The id of this debug message. + /// The for this debug message. + /// The length of this debug message. + /// A pointer to a null-terminated ASCII C string, representing the content of this debug message. + /// A pointer to a user-specified parameter. + [UnmanagedFunctionPointer(CallingConvention.Winapi)] + public delegate void DebugProc( + DebugSource source, DebugType type, int id, + DebugSeverity severity, int length, IntPtr message, + IntPtr userParam); + + /// + /// Defines the signature of a debug callback for + /// . + /// + /// The for this debug message. + /// The for this debug message. + /// The id of this debug message. + /// The for this debug message. + /// The length of this debug message. + /// A pointer to a null-terminated ASCII C string, representing the content of this debug message. + /// A pointer to a user-specified parameter. + [UnmanagedFunctionPointer(CallingConvention.Winapi)] + public delegate void DebugProcKhr( + DebugSource source, DebugType type, int id, + DebugSeverity severity, int length, IntPtr message, + IntPtr userParam); }