示例#1
0
 private static void nativeSetKeyFrame(android.graphics.Interpolator.NativeInterpolator
                                       native_instance, int index, int msec, float[] values, float[] blend)
 {
     Sharpen.INativeHandle values_handle = null;
     Sharpen.INativeHandle blend_handle  = null;
     try
     {
         values_handle = XobotOS.Runtime.MarshalGlue.Array_float_Helper.GetPinnedPtr(values
                                                                                     );
         blend_handle = XobotOS.Runtime.MarshalGlue.Array_float_Helper.GetPinnedPtr(blend);
         libxobotos_Interpolator_setKeyFrame(native_instance, index, msec, values_handle.Address
                                             , blend_handle != null ? blend_handle.Address : System.IntPtr.Zero);
     }
     finally
     {
         if (values_handle != null)
         {
             values_handle.Free();
         }
         if (blend_handle != null)
         {
             blend_handle.Free();
         }
     }
 }
示例#2
0
 private static int nativeTimeToValues(android.graphics.Interpolator.NativeInterpolator
                                       native_instance, int msec, float[] values)
 {
     Sharpen.INativeHandle values_handle = null;
     try
     {
         values_handle = XobotOS.Runtime.MarshalGlue.Array_float_Helper.GetPinnedPtr(values
                                                                                     );
         return(libxobotos_Interpolator_timeToValues(native_instance, msec, values_handle
                                                     != null ? values_handle.Address : System.IntPtr.Zero));
     }
     finally
     {
         if (values_handle != null)
         {
             values_handle.Free();
         }
     }
 }
示例#3
0
 private static extern int libxobotos_Interpolator_timeToValues(android.graphics.Interpolator.NativeInterpolator
                                                                native_instance, int msec, System.IntPtr values);
示例#4
0
 private static void nativeSetRepeatMirror(android.graphics.Interpolator.NativeInterpolator
                                           native_instance, float repeatCount, bool mirror)
 {
     libxobotos_Interpolator_setRepeatMirror(native_instance, repeatCount, mirror);
 }
示例#5
0
 private static extern void libxobotos_Interpolator_setKeyFrame(android.graphics.Interpolator.NativeInterpolator
                                                                native_instance, int index, int msec, System.IntPtr values, System.IntPtr blend
                                                                );
示例#6
0
 private static void nativeReset(android.graphics.Interpolator.NativeInterpolator
                                 native_instance, int valueCount, int frameCount)
 {
     libxobotos_Interpolator_reset(native_instance, valueCount, frameCount);
 }
示例#7
0
 private static extern void libxobotos_Interpolator_reset(android.graphics.Interpolator.NativeInterpolator
                                                          native_instance, int valueCount, int frameCount);
示例#8
0
 private static void nativeDestructor(android.graphics.Interpolator.NativeInterpolator
                                      native_instance)
 {
     native_instance.Dispose();
 }