Пример #1
0
        public object InterceptMessage(DebugMessageDelegate targetSite, IActor targetActor, string name, IActor sender, params object[] parameters)
        {
            OnEnterMessage(targetActor, name, sender, parameters);

            object result = null;

            if (targetSite != null)
            {
                result = targetSite(targetActor, name, sender, parameters);
            }
            else
            {
                log.MessageContent("Unable to perform message call.");
            }

            OnExitMessage(result);

            return(result);
        }
        public object InterceptMessage(DebugMessageDelegate targetSite,IActor targetActor,string name, IActor sender, params object[] parameters)
        {
            OnEnterMessage( targetActor,name,sender,parameters );

            object result = null;

            if (targetSite != null)
            {
                result = targetSite(targetActor,name, sender, parameters);
            }
            else
            {
                log.MessageContent("Unable to perform message call.");
            }

            OnExitMessage( result );

            return result;
        }
Пример #3
0
 /// <summary>
 /// Defines the Debug MessageCallback Delegate and its optionally userParam.
 /// </summary>
 /// <param name="callback">Delegate to a function which will be called by opengl with debug messages.</param>
 public static void DebugMessageCallbackARB(DebugMessageDelegate callback)
 {
     Delegates.glDebugMessageCallbackARB(callback, IntPtr.Zero);
 }
Пример #4
0
 /// <summary>
 /// Defines the Debug MessageCallback Delegate and its optionally userParam.
 /// </summary>
 /// <param name="callback">Delegate to a function which will be called by opengl with debug messages.</param>
 /// <param name="userParam">Optionally userParam which will be one of the arguments opengl calls the delegate with.</param>
 public static void DebugMessageCallbackARB(DebugMessageDelegate callback, IntPtr userParam)
 {
     Delegates.glDebugMessageCallbackARB(callback, userParam);
 }
Пример #5
0
 /// <summary>
 /// Defines the Debug MessageCallback Delegate and its optionally userParam.
 /// </summary>
 /// <param name="callback">Delegate to a function which will be called by opengl with debug messages.</param>
 public static void DebugMessageCallbackARB(DebugMessageDelegate callback)
 {
     Delegates.glDebugMessageCallbackARB(callback, IntPtr.Zero);
 }
Пример #6
0
 /// <summary>
 /// Defines the Debug MessageCallback Delegate and its optionally userParam.
 /// </summary>
 /// <param name="callback">Delegate to a function which will be called by opengl with debug messages.</param>
 /// <param name="userParam">Optionally userParam which will be one of the arguments opengl calls the delegate with.</param>
 public static void DebugMessageCallbackARB(DebugMessageDelegate callback, IntPtr userParam)
 {
     Delegates.glDebugMessageCallbackARB(callback, userParam);
 }