Add DebugProc to ES11
This commit is contained in:
parent
cea60cf034
commit
0fc7f6d4aa
1 changed files with 35 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace OpenTK.Graphics.ES11
|
namespace OpenTK.Graphics.ES11
|
||||||
{
|
{
|
||||||
|
@ -38,4 +39,38 @@ namespace OpenTK.Graphics.ES11
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines the signature of a debug callback for
|
||||||
|
/// <see cref="GL.DebugMessageCallback"/>.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="source">The <see cref="DebugSource"/> for this debug message.</param>
|
||||||
|
/// <param name="type">The <see cref="DebugType"/> for this debug message.</param>
|
||||||
|
/// <param name="id">The id of this debug message.</param>
|
||||||
|
/// <param name="severity">The <see cref="DebugSeverity"/> for this debug message.</param>
|
||||||
|
/// <param name="length">The length of this debug message.</param>
|
||||||
|
/// <param name="message">A pointer to a null-terminated ASCII C string, representing the content of this debug message.</param>
|
||||||
|
/// <param name="userParam">A pointer to a user-specified parameter.</param>
|
||||||
|
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
|
||||||
|
public delegate void DebugProc(
|
||||||
|
DebugSource source, DebugType type, int id,
|
||||||
|
DebugSeverity severity, int length, IntPtr message,
|
||||||
|
IntPtr userParam);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Defines the signature of a debug callback for
|
||||||
|
/// <see cref="GL.Khr.DebugMessageCallback"/>.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="source">The <see cref="DebugSource"/> for this debug message.</param>
|
||||||
|
/// <param name="type">The <see cref="DebugType"/> for this debug message.</param>
|
||||||
|
/// <param name="id">The id of this debug message.</param>
|
||||||
|
/// <param name="severity">The <see cref="DebugSeverity"/> for this debug message.</param>
|
||||||
|
/// <param name="length">The length of this debug message.</param>
|
||||||
|
/// <param name="message">A pointer to a null-terminated ASCII C string, representing the content of this debug message.</param>
|
||||||
|
/// <param name="userParam">A pointer to a user-specified parameter.</param>
|
||||||
|
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
|
||||||
|
public delegate void DebugProcKhr(
|
||||||
|
DebugSource source, DebugType type, int id,
|
||||||
|
DebugSeverity severity, int length, IntPtr message,
|
||||||
|
IntPtr userParam);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue