[NUI] Remove unused arguments and enum for AddLocalStream().
authorjmm <j0064423.lee@samsung.com>
Wed, 13 Sep 2023 12:47:12 +0000 (21:47 +0900)
committerbshsqa <32317749+bshsqa@users.noreply.github.com>
Thu, 14 Sep 2023 10:40:33 +0000 (19:40 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.ParticleEmitter.cs
src/Tizen.NUI/src/public/ParticleSystem/ParticleEmitter.cs

index b6e04ae..ff88843 100644 (file)
@@ -113,19 +113,19 @@ namespace Tizen.NUI.ParticleSystem
 
             // ParticleList
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ParticleList_AddLocalStreami_Int")]
-            internal static extern uint AddLocalStream_Int(global::System.Runtime.InteropServices.HandleRef jarg1, uint streamType, int defaultValue, uint typeSize );
+            internal static extern uint AddLocalStream_Int(global::System.Runtime.InteropServices.HandleRef jarg1, int defaultValue);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ParticleList_AddLocalStream_Float")]
-            internal static extern uint AddLocalStream_Float(global::System.Runtime.InteropServices.HandleRef jarg1, uint streamType, float defaultValue, uint typeSize );
+            internal static extern uint AddLocalStream_Float(global::System.Runtime.InteropServices.HandleRef jarg1, float defaultValue);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ParticleList_AddLocalStream_Vector2")]
-            internal static extern uint AddLocalStream_Vector2(global::System.Runtime.InteropServices.HandleRef jarg1, uint streamType, global::System.IntPtr defaultValue, uint typeSize );
+            internal static extern uint AddLocalStream_Vector2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.IntPtr defaultValue);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ParticleList_AddLocalStream_Vector3")]
-            internal static extern uint AddLocalStream_Vector3(global::System.Runtime.InteropServices.HandleRef jarg1, uint streamType, global::System.IntPtr defaultValue, uint typeSize );
+            internal static extern uint AddLocalStream_Vector3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.IntPtr defaultValue);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ParticleList_AddLocalStream_Vector4")]
-            internal static extern uint AddLocalStream_Vector4(global::System.Runtime.InteropServices.HandleRef jarg1, uint streamType, global::System.IntPtr defaultValue, uint typeSize );
+            internal static extern uint AddLocalStream_Vector4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.IntPtr defaultValue);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ParticleList_GetDefaultStreamIndex")]
             internal static extern int GetDefaultStreamIndex(global::System.Runtime.InteropServices.HandleRef jarg1, uint builtInStream );
index 1a0660c..acfde46 100644 (file)
@@ -36,21 +36,6 @@ namespace Tizen.NUI.ParticleSystem
     }
 
     /// <summary>
-    /// Internal class defining data types stored in the data streams
-    /// </summary>
-    internal enum StreamType
-    {
-        Float = 0,
-        FloatVector2 = 1,
-        FloatVector3 = 2,
-        FloatVector4 = 3,
-        Integer = 4,
-        IntVector2 = 5,
-        IntVector3 = 6,
-        IntVector4 = 7,
-    }
-    
-    /// <summary>
     /// Class ParticleEmitter creates a single emitter attached to a specified
     /// View. ParticleEmitter is responsible for spawning and updating particles.
     ///
@@ -326,7 +311,7 @@ namespace Tizen.NUI.ParticleSystem
         [EditorBrowsable(EditorBrowsableState.Never)]
         public uint AddLocalStreamFloat(float defaultValue)
         {
-            var result = Interop.ParticleEmitter.AddLocalStream_Float(SwigCPtr, (uint)StreamType.Float, defaultValue, sizeof(float));
+            var result = Interop.ParticleEmitter.AddLocalStream_Float(SwigCPtr, defaultValue);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return result;
         }
@@ -342,7 +327,7 @@ namespace Tizen.NUI.ParticleSystem
         [EditorBrowsable(EditorBrowsableState.Never)]
         public uint AddLocalStreamVector2(Vector2 defaultValue)
         {
-            var result = Interop.ParticleEmitter.AddLocalStream_Vector2(SwigCPtr, (uint)StreamType.FloatVector2, defaultValue.SwigCPtr.Handle, sizeof(float)*2);
+            var result = Interop.ParticleEmitter.AddLocalStream_Vector2(SwigCPtr, defaultValue.SwigCPtr.Handle);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return result;
         }
@@ -358,7 +343,7 @@ namespace Tizen.NUI.ParticleSystem
         [EditorBrowsable(EditorBrowsableState.Never)]
         public uint AddLocalStreamVector3(Vector3 defaultValue)
         {
-            var result = Interop.ParticleEmitter.AddLocalStream_Vector3(SwigCPtr, (uint)StreamType.FloatVector3, defaultValue.SwigCPtr.Handle, sizeof(float)*3);
+            var result = Interop.ParticleEmitter.AddLocalStream_Vector3(SwigCPtr, defaultValue.SwigCPtr.Handle);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return result;
         }
@@ -374,7 +359,7 @@ namespace Tizen.NUI.ParticleSystem
         [EditorBrowsable(EditorBrowsableState.Never)]
         public uint AddLocalStreamVector4(Vector4 defaultValue)
         {
-            var result = Interop.ParticleEmitter.AddLocalStream_Vector4(SwigCPtr, (uint)StreamType.FloatVector4, defaultValue.SwigCPtr.Handle, sizeof(float)*4);
+            var result = Interop.ParticleEmitter.AddLocalStream_Vector4(SwigCPtr, defaultValue.SwigCPtr.Handle);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return result;
         }