From 0fc7f6d4aab4e93ee7c600874055affc2f0be5da Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Tue, 26 Dec 2017 21:19:36 +0000 Subject: [PATCH] Add DebugProc to ES11 --- src/OpenTK/Graphics/ES11/Helper.cs | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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); }