Beispiel #1
0
        /// <summary>
        ///     Creates a texture layer animator controller.
        /// </summary>
        /// <remarks>
        ///     This helper method creates the Controller, IControllerValue and IControllerFunction classes required
        ///     to animate a texture.
        /// </remarks>
        /// <param name="texUnit">The texture unit to animate.</param>
        /// <param name="sequenceTime">Length of the animation (in seconds).</param>
        /// <returns>A newly created controller object that will be updated during the main render loop.</returns>
        public Controller <Real> CreateTextureAnimator(TextureUnitState texUnit, Real sequenceTime)
        {
            IControllerValue <Real>    val  = new TextureFrameControllerValue(texUnit);
            IControllerFunction <Real> func = new AnimationControllerFunction(sequenceTime);

            return(CreateController(val, func));
        }
		/// <summary>
		///     Creates a texture layer animator controller.
		/// </summary>
		/// <remarks>
		///     This helper method creates the Controller, IControllerValue and IControllerFunction classes required
		///     to animate a texture.
		/// </remarks>
		/// <param name="texUnit">The texture unit to animate.</param>
		/// <param name="sequenceTime">Length of the animation (in seconds).</param>
		/// <returns>A newly created controller object that will be updated during the main render loop.</returns>
		public Controller<Real> CreateTextureAnimator( TextureUnitState texUnit, Real sequenceTime )
		{
			IControllerValue<Real> val = new TextureFrameControllerValue( texUnit );
			IControllerFunction<Real> func = new AnimationControllerFunction( sequenceTime );

			return CreateController( val, func );
		}
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextureFrameControllerValue obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }