public static void SetTimeout(int timeout, EventHandler callback, EventArgs e = null) { if (e == null) { e = EventArgs.Empty; } Internal.FreeGLUT.Delegates.TimerCallback callback1 = delegate(int val) { callback(null, e); }; _TimerCallbacks.Add(callback1); Caltron.Internal.FreeGLUT.Methods.glutTimerFunc(timeout, callback1, 0); }
public Timer() { _tickDelegate = new Internal.FreeGLUT.Delegates.TimerCallback(_tick); }