コード例 #1
0
ファイル: Animator3D.cs プロジェクト: wshdd/tenonvpn-windows
 /// <summary>
 ///     Initializes a new instance of the <see cref="Animator3D" /> class.
 /// </summary>
 /// <param name="paths">
 ///     An array containing the list of paths of the animation
 /// </param>
 /// <param name="fpsLimiter">
 ///     Limits the maximum frames per seconds
 /// </param>
 public Animator3D(Path3D[] paths, FPSLimiterKnownValues fpsLimiter)
 {
     HorizontalAnimator = new Animator(fpsLimiter);
     VerticalAnimator   = new Animator(fpsLimiter);
     DepthAnimator      = new Animator(fpsLimiter);
     Paths = paths;
 }
コード例 #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Animator2D" /> class.
 /// </summary>
 /// <param name="path">
 ///     The path of the animation
 /// </param>
 /// <param name="fpsLimiter">
 ///     Limits the maximum frames per seconds
 /// </param>
 public Animator2D(Path2D path, FPSLimiterKnownValues fpsLimiter)
     : this(new[]
 {
     path
 }, fpsLimiter)
 {
 }
コード例 #3
0
ファイル: Animator3D.cs プロジェクト: wshdd/tenonvpn-windows
 /// <summary>
 ///     Initializes a new instance of the <see cref="Animator3D" /> class.
 /// </summary>
 /// <param name="fpsLimiter">
 ///     Limits the maximum frames per seconds
 /// </param>
 public Animator3D(FPSLimiterKnownValues fpsLimiter)
     : this(new Path3D[] {}, fpsLimiter)
 {
 }
コード例 #4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Timer" /> class.
 /// </summary>
 /// <param name="callback">
 ///     The callback to be executed at each tick
 /// </param>
 /// <param name="fpsKnownLimit">
 ///     The max ticks per second
 /// </param>
 public Timer(Action <ulong> callback, FPSLimiterKnownValues fpsKnownLimit = FPSLimiterKnownValues.LimitThirty)
     : this(callback, (int)fpsKnownLimit)
 {
 }
コード例 #5
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Animator" /> class.
 /// </summary>
 /// <param name="paths">
 ///     An array containing the list of paths of the animation
 /// </param>
 /// <param name="fpsLimiter">
 ///     Limits the maximum frames per seconds
 /// </param>
 /// <param name="type">
 ///     Redundant value. Enter 1
 /// </param>
 public Animator(Path[] paths, FPSLimiterKnownValues fpsLimiter, int type)
 {
     CurrentStatus = AnimatorStatus.Stopped;
     _timer        = new Timer(ElapsedInt, fpsLimiter);
     Paths         = paths;
 }
コード例 #6
0
 public Animator(Path[] paths, FPSLimiterKnownValues fpsLimiter)
 {
     this.CurrentStatus = AnimatorStatus.Stopped;
     this._timer        = new Timer(new Action <ulong>(this.Elapsed), fpsLimiter);
     this.Paths         = paths;
 }
コード例 #7
0
 public Animator(Path path, FPSLimiterKnownValues fpsLimiter)
     : this(new Path[1] {
     path
 }, fpsLimiter)
 {
 }
コード例 #8
0
 public Animator(FPSLimiterKnownValues fpsLimiter)
     : this(new Path[0], fpsLimiter)
 {
 }
コード例 #9
0
 public Animator2D(Path2D[] paths, FPSLimiterKnownValues fpsLimiter)
 {
     this.HorizontalAnimator = new Animator(fpsLimiter);
     this.VerticalAnimator   = new Animator(fpsLimiter);
     this.Paths = paths;
 }