X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-sharp%2Fsharp%2Finternal%2FShader.cs;h=d17e399c62d9a86f4947bfca3beb83bc4d78480b;hp=ea03d170fac46f68da03c7e0fe8675896054c621;hb=665d92f07e3e06e1db65a473c6eb6869dc476c03;hpb=82e6a46b87c64df1be36cf414f6e94f9d17d52ff diff --git a/plugins/dali-sharp/sharp/internal/Shader.cs b/plugins/dali-sharp/sharp/internal/Shader.cs index ea03d17..d17e399 100644 --- a/plugins/dali-sharp/sharp/internal/Shader.cs +++ b/plugins/dali-sharp/sharp/internal/Shader.cs @@ -26,7 +26,7 @@ namespace Dali { -public class Shader : Handle { +public class Shader : Animatable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal Shader(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Shader_SWIGUpcast(cPtr), cMemoryOwn) { @@ -42,7 +42,7 @@ public class Shader : Handle { } public override void Dispose() { - if (!Stage.IsInstalled()) { + if (!Window.IsInstalled()) { DisposeQueue.Instance.Add(this); return; } @@ -64,20 +64,20 @@ public class Shader : Handle { public class Hint : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; - + internal Hint(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Hint obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } - + ~Hint() { Dispose(); } - + public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { @@ -90,28 +90,28 @@ public class Shader : Handle { global::System.GC.SuppressFinalize(this); } } - + public Hint() : this(NDalicPINVOKE.new_Shader_Hint(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - + public enum Value { NONE = 0x00, OUTPUT_IS_TRANSPARENT = 0x01, MODIFIES_GEOMETRY = 0x02 } - + } public class Property : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; - + internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } @@ -132,13 +132,13 @@ public class Shader : Handle { global::System.GC.SuppressFinalize(this); } } - + public Property() : this(NDalicPINVOKE.new_Shader_Property(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - + public static readonly int PROGRAM = NDalicPINVOKE.Shader_Property_PROGRAM_get(); - + } public Shader (string vertexShader, string fragmentShader, Shader.Hint.Value hints) : this (NDalicPINVOKE.Shader_New__SWIG_0(vertexShader, fragmentShader, (int)hints), true) { @@ -170,15 +170,14 @@ public class Shader : Handle { get { Dali.Property.Map temp = new Dali.Property.Map(); - GetProperty( Shader.Property.PROGRAM).Get( temp ); + Dali.Object.GetProperty( swigCPtr, Shader.Property.PROGRAM).Get( temp ); return temp; } set { - SetProperty( Shader.Property.PROGRAM, new Dali.Property.Value( value ) ); + Dali.Object.SetProperty( swigCPtr, Shader.Property.PROGRAM, new Dali.Property.Value( value ) ); } } - } }