[NUI] Remove underlines in function names
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / ParticleSystem / ParticleEmitter.cs
index cf6246a..aae0f44 100644 (file)
@@ -34,22 +34,7 @@ namespace Tizen.NUI.ParticleSystem
         Screen = 1,
         Default = Additive
     }
-    
-    /// <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.
@@ -90,6 +75,16 @@ namespace Tizen.NUI.ParticleSystem
         }
 
         /// <summary>
+        /// Dispose.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        protected override void Dispose(DisposeTypes type)
+        {
+            if (disposed) return;
+            base.Dispose(type);
+        }
+
+        /// <summary>
         /// Assignment operator.
         /// </summary>
         /// <param name="particleEmitter">Source object to be assigned.</param>
@@ -227,7 +222,7 @@ namespace Tizen.NUI.ParticleSystem
         }
         
         /// <summary>
-        /// Gets/sets texture to be used by the renderer
+        /// Sets texture to be used by the renderer
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public Texture RendererTexture
@@ -314,9 +309,9 @@ namespace Tizen.NUI.ParticleSystem
         /// <param name="defaultValue">Default value to fill the stream with</param>
         /// <returns>Index of newly created data stream</returns>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public unsafe uint AddLocalStreamFloat(float defaultValue)
+        public uint AddLocalStreamFloat(float defaultValue)
         {
-            var result = Interop.ParticleEmitter.AddLocalStream(SwigCPtr, (uint)StreamType.Float, &defaultValue, sizeof(float));
+            var result = Interop.ParticleEmitter.AddLocalStreamFloat(SwigCPtr, defaultValue);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return result;
         }
@@ -330,9 +325,9 @@ namespace Tizen.NUI.ParticleSystem
         /// <param name="defaultValue">Default value to fill the stream with</param>
         /// <returns>Index of newly created data stream</returns>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public unsafe uint AddLocalStreamVector2(Vector2 defaultValue)
+        public uint AddLocalStreamVector2(Vector2 defaultValue)
         {
-            var result = Interop.ParticleEmitter.AddLocalStream(SwigCPtr, (uint)StreamType.FloatVector2, (void*)defaultValue.SwigCPtr.Handle, sizeof(float)*2);
+            var result = Interop.ParticleEmitter.AddLocalStreamVector2(SwigCPtr, defaultValue.SwigCPtr.Handle);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return result;
         }
@@ -346,9 +341,9 @@ namespace Tizen.NUI.ParticleSystem
         /// <param name="defaultValue">Default value to fill the stream with</param>
         /// <returns>Index of newly created data stream</returns>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public unsafe uint AddLocalStreamVector3(Vector3 defaultValue)
+        public uint AddLocalStreamVector3(Vector3 defaultValue)
         {
-            var result = Interop.ParticleEmitter.AddLocalStream(SwigCPtr, (uint)StreamType.FloatVector3, (void*)defaultValue.SwigCPtr.Handle, sizeof(float)*3);
+            var result = Interop.ParticleEmitter.AddLocalStreamVector3(SwigCPtr, defaultValue.SwigCPtr.Handle);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return result;
         }
@@ -362,9 +357,9 @@ namespace Tizen.NUI.ParticleSystem
         /// <param name="defaultValue">Default value to fill the stream with</param>
         /// <returns>Index of newly created data stream</returns>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public unsafe uint AddLocalStreamVector4(Vector4 defaultValue)
+        public uint AddLocalStreamVector4(Vector4 defaultValue)
         {
-            var result = Interop.ParticleEmitter.AddLocalStream(SwigCPtr, (uint)StreamType.FloatVector4, (void*)defaultValue.SwigCPtr.Handle, sizeof(float)*4);
+            var result = Interop.ParticleEmitter.AddLocalStreamVector4(SwigCPtr, defaultValue.SwigCPtr.Handle);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return result;
         }