示例#1
0
文件: Cg.cs 项目: primuszp/OpenCg
 /// <summary>
 /// <para>cgSetErrorHandler specifies an error handler function that will be called every time a Cg runtime error occurrs.</para>
 /// <para>The callback function is passed:</para>
 /// <para>Context - The context in which the error occured. If the context cannot be determined, NULL is used.</para>
 /// <para>Error - The enumerant of the error triggering the callback.</para>
 /// <para>Appdata - The value of the pointer passed to cgSetErrorHandler. This pointer can be used to make arbitrary application-side information available to the error handler.</para>
 /// <para>VERSION: cgSetErrorHandler was introduced in Cg 1.4.</para>
 /// </summary>
 /// <param name="func">A pointer to the error handler callback function.</param>
 /// <param name="data">A pointer to arbitrary application-provided data.</param>
 public static void SetErrorHandler(ErrorHandlerFuncDelegate func, IntPtr data)
 {
     cgSetErrorHandler(func, data);
 }
示例#2
0
 private static extern void cgSetErrorHandler(ErrorHandlerFuncDelegate func, IntPtr data);