-/** Copyright (c) 2017 Samsung Electronics Co., Ltd.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
+/*
+ * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System;
+using System.ComponentModel;
+using System.Runtime.InteropServices;
namespace Tizen.NUI
{
-
+ /// <summary>
+ /// Renderer is a handle to an object used to show content by combining a Geometry, a TextureSet and a shader.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public class Renderer : Animatable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- internal Renderer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Renderer_SWIGUpcast(cPtr), cMemoryOwn)
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Renderer obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- protected override void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
-
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Renderer(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- base.Dispose(type);
- }
-
- public class Property
- {
- public static readonly int DEPTH_INDEX = NDalicPINVOKE.Renderer_Property_DEPTH_INDEX_get();
- public static readonly int FACE_CULLING_MODE = NDalicPINVOKE.Renderer_Property_FACE_CULLING_MODE_get();
- public static readonly int BLEND_MODE = NDalicPINVOKE.Renderer_Property_BLEND_MODE_get();
- public static readonly int BLEND_EQUATION_RGB = NDalicPINVOKE.Renderer_Property_BLEND_EQUATION_RGB_get();
- public static readonly int BLEND_EQUATION_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_EQUATION_ALPHA_get();
- public static readonly int BLEND_FACTOR_SRC_RGB = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_SRC_RGB_get();
- public static readonly int BLEND_FACTOR_DEST_RGB = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_DEST_RGB_get();
- public static readonly int BLEND_FACTOR_SRC_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_SRC_ALPHA_get();
- public static readonly int BLEND_FACTOR_DEST_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_DEST_ALPHA_get();
- public static readonly int BLEND_COLOR = NDalicPINVOKE.Renderer_Property_BLEND_COLOR_get();
- public static readonly int BLEND_PRE_MULTIPLIED_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_PRE_MULTIPLIED_ALPHA_get();
- public static readonly int INDEX_RANGE_FIRST = NDalicPINVOKE.Renderer_Property_INDEX_RANGE_FIRST_get();
- public static readonly int INDEX_RANGE_COUNT = NDalicPINVOKE.Renderer_Property_INDEX_RANGE_COUNT_get();
- public static readonly int DEPTH_WRITE_MODE = NDalicPINVOKE.Renderer_Property_DEPTH_WRITE_MODE_get();
- public static readonly int DEPTH_FUNCTION = NDalicPINVOKE.Renderer_Property_DEPTH_FUNCTION_get();
- public static readonly int DEPTH_TEST_MODE = NDalicPINVOKE.Renderer_Property_DEPTH_TEST_MODE_get();
- public static readonly int RENDER_MODE = NDalicPINVOKE.Renderer_Property_RENDER_MODE_get();
- public static readonly int STENCIL_FUNCTION = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_get();
- public static readonly int STENCIL_FUNCTION_MASK = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_MASK_get();
- public static readonly int STENCIL_FUNCTION_REFERENCE = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_REFERENCE_get();
- public static readonly int STENCIL_MASK = NDalicPINVOKE.Renderer_Property_STENCIL_MASK_get();
- public static readonly int STENCIL_OPERATION_ON_FAIL = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_FAIL_get();
- public static readonly int STENCIL_OPERATION_ON_Z_FAIL = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_Z_FAIL_get();
- public static readonly int STENCIL_OPERATION_ON_Z_PASS = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_Z_PASS_get();
-
- }
-
- public Renderer(Geometry geometry, Shader shader) : this(NDalicPINVOKE.Renderer_New(Geometry.getCPtr(geometry), Shader.getCPtr(shader)), true)
+ /// <summary>
+ /// Create an instance of Renderer.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ public Renderer(Geometry geometry, Shader shader) : this(Interop.Renderer.Renderer_New(Geometry.getCPtr(geometry), Shader.getCPtr(shader)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- public void SetGeometry(Geometry geometry)
- {
- NDalicPINVOKE.Renderer_SetGeometry(swigCPtr, Geometry.getCPtr(geometry));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Geometry GetGeometry()
- {
- System.IntPtr cPtr = NDalicPINVOKE.Renderer_GetGeometry(swigCPtr);
- Geometry ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Geometry;
-
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetIndexRange(int firstElement, int elementsCount)
- {
- NDalicPINVOKE.Renderer_SetIndexRange(swigCPtr, firstElement, elementsCount);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void SetTextures(TextureSet textureSet)
- {
- NDalicPINVOKE.Renderer_SetTextures(swigCPtr, TextureSet.getCPtr(textureSet));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public TextureSet GetTextures()
- {
- System.IntPtr cPtr = NDalicPINVOKE.Renderer_GetTextures(swigCPtr);
- TextureSet ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as TextureSet;
-
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetShader(Shader shader)
- {
- NDalicPINVOKE.Renderer_SetShader(swigCPtr, Shader.getCPtr(shader));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Shader GetShader()
- {
- System.IntPtr cPtr = NDalicPINVOKE.Renderer_GetShader(swigCPtr);
- Shader ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Shader;
-
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
+ /// <summary>
+ /// Gets and Sets DepthIndex property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int DepthIndex
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DEPTH_INDEX, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets FaceCullingMode.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int FaceCullingMode
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.FACE_CULLING_MODE, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendMode.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int BlendMode
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_MODE, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendEquationRgb.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int BlendEquationRgb
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_EQUATION_RGB, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendEquationAlpha.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int BlendEquationAlpha
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_EQUATION_ALPHA, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendFactorSrcRgb.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int BlendFactorSrcRgb
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_SRC_RGB, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendFactorDestRgb.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int BlendFactorDestRgb
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_DEST_RGB, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendFactorSrcAlpha.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int BlendFactorSrcAlpha
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_SRC_ALPHA, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendFactorDestAlpha.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int BlendFactorDestAlpha
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_DEST_ALPHA, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendColor.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Vector4 BlendColor
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_COLOR, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets BlendPreMultipliedAlpha.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public bool BlendPreMultipliedAlpha
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets IndexRangeFirst.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int IndexRangeFirst
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.INDEX_RANGE_FIRST, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets IndexRangeCount.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int IndexRangeCount
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.INDEX_RANGE_COUNT, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets DepthWriteMode.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int DepthWriteMode
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DEPTH_WRITE_MODE, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets DepthFunction.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int DepthFunction
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DEPTH_FUNCTION, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets DepthTestMode.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int DepthTestMode
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DEPTH_TEST_MODE, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets RenderMode.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int RenderMode
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.RENDER_MODE, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets StencilFunction.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int StencilFunction
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets StencilFunctionMask.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int StencilFunctionMask
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION_MASK, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets StencilFunctionReference.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int StencilFunctionReference
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION_REFERENCE, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets StencilMask.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int StencilMask
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_MASK, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets StencilOperationOnFail.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int StencilOperationOnFail
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_OPERATION_ON_FAIL, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets StencilOperationOnZFail.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int StencilOperationOnZFail
{
get
Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL, new Tizen.NUI.PropertyValue(value));
}
}
+
+ /// <summary>
+ /// Gets and Sets StencilOperationOnZPass property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
public int StencilOperationOnZPass
{
get
}
}
- }
+ /// <summary>
+ /// Sets the geometry to be used by this renderer.
+ /// </summary>
+ /// <param name="geometry">The geometry to be used by this renderer.</param>
+ /// <since_tizen> 3 </since_tizen>
+ public void SetGeometry(Geometry geometry)
+ {
+ Interop.Renderer.Renderer_SetGeometry(swigCPtr, Geometry.getCPtr(geometry));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the geometry used by this renderer.
+ /// </summary>
+ /// <returns>The geometry used by the renderer.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ public Geometry GetGeometry()
+ {
+ //to fix memory leak issue, match the handle count with native side.
+ System.IntPtr cPtr = Interop.Renderer.Renderer_GetGeometry(swigCPtr);
+ HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ Geometry ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Geometry;
+ Interop.BaseHandle.delete_BaseHandle(CPtr);
+ CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets effective range of indices to draw from bound index buffer.
+ /// </summary>
+ /// <param name="firstElement">The First element to draw.</param>
+ /// <param name="elementsCount">The number of elements to draw.</param>
+ /// <since_tizen> 3 </since_tizen>
+ public void SetIndexRange(int firstElement, int elementsCount)
+ {
+ Interop.Renderer.Renderer_SetIndexRange(swigCPtr, firstElement, elementsCount);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Sets the texture set to be used by this renderer.
+ /// </summary>
+ /// <param name="textureSet">The texture set to be used by this renderer.</param>
+ /// <since_tizen> 3 </since_tizen>
+ public void SetTextures(TextureSet textureSet)
+ {
+ Interop.Renderer.Renderer_SetTextures(swigCPtr, TextureSet.getCPtr(textureSet));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the texture set used by this renderer.
+ /// </summary>
+ /// <returns>The texture set used by the renderer.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ public TextureSet GetTextures()
+ {
+ //to fix memory leak issue, match the handle count with native side.
+ System.IntPtr cPtr = Interop.Renderer.Renderer_GetTextures(swigCPtr);
+ HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ TextureSet ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as TextureSet;
+ if (cPtr != null && ret == null)
+ {
+ ret = new TextureSet(cPtr, false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ Interop.BaseHandle.delete_BaseHandle(CPtr);
+ CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the shader used by this renderer.
+ /// </summary>
+ /// <param name="shader">The shader to be used by this renderer.</param>
+ /// <since_tizen> 3 </since_tizen>
+ public void SetShader(Shader shader)
+ {
+ Interop.Renderer.Renderer_SetShader(swigCPtr, Shader.getCPtr(shader));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the shader used by this renderer.
+ /// </summary>
+ /// <returns>The shader used by the renderer.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ public Shader GetShader()
+ {
+ //to fix memory leak issue, match the handle count with native side.
+ System.IntPtr cPtr = Interop.Renderer.Renderer_GetShader(swigCPtr);
+ HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ Shader ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Shader;
+ Interop.BaseHandle.delete_BaseHandle(CPtr);
+ CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Renderer obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+
+ internal Renderer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Renderer.Renderer_SWIGUpcast(cPtr), cMemoryOwn)
+ {
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ }
+
+ /// <summary>
+ /// Dispose.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ Interop.Renderer.delete_Renderer(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ base.Dispose(type);
+ }
+
+
+ /// <since_tizen> 6.0 </since_tizen>
+ /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class Ranges
+ {
+ /// <since_tizen> 6.0 </since_tizen>
+ /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int BACKGROUND_EFFECT = Interop.Renderer.Renderer_Ranges_BACKGROUND_EFFECT_get();
+
+ /// <since_tizen> 6.0 </since_tizen>
+ /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int BACKGROUND = Interop.Renderer.Renderer_Ranges_BACKGROUND_get();
+
+ /// <since_tizen> 6.0 </since_tizen>
+ /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int CONTENT = Interop.Renderer.Renderer_Ranges_CONTENT_get();
+
+ /// <since_tizen> 6.0 </since_tizen>
+ /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int DECORATION = Interop.Renderer.Renderer_Ranges_DECORATION_get();
+
+ /// <since_tizen> 6.0 </since_tizen>
+ /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int FOREGROUND_EFFECT = Interop.Renderer.Renderer_Ranges_FOREGROUND_EFFECT_get();
+ }
+
+ /// <summary>
+ /// Enumeration for instances of properties belonging to the Renderer class.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public class Property
+ {
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int DEPTH_INDEX = Interop.Renderer.Renderer_Property_DEPTH_INDEX_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int FACE_CULLING_MODE = Interop.Renderer.Renderer_Property_FACE_CULLING_MODE_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_MODE = Interop.Renderer.Renderer_Property_BLEND_MODE_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_EQUATION_RGB = Interop.Renderer.Renderer_Property_BLEND_EQUATION_RGB_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_EQUATION_ALPHA = Interop.Renderer.Renderer_Property_BLEND_EQUATION_ALPHA_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_FACTOR_SRC_RGB = Interop.Renderer.Renderer_Property_BLEND_FACTOR_SRC_RGB_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_FACTOR_DEST_RGB = Interop.Renderer.Renderer_Property_BLEND_FACTOR_DEST_RGB_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_FACTOR_SRC_ALPHA = Interop.Renderer.Renderer_Property_BLEND_FACTOR_SRC_ALPHA_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_FACTOR_DEST_ALPHA = Interop.Renderer.Renderer_Property_BLEND_FACTOR_DEST_ALPHA_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_COLOR = Interop.Renderer.Renderer_Property_BLEND_COLOR_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int BLEND_PRE_MULTIPLIED_ALPHA = Interop.Renderer.Renderer_Property_BLEND_PRE_MULTIPLIED_ALPHA_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int INDEX_RANGE_FIRST = Interop.Renderer.Renderer_Property_INDEX_RANGE_FIRST_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int INDEX_RANGE_COUNT = Interop.Renderer.Renderer_Property_INDEX_RANGE_COUNT_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int DEPTH_WRITE_MODE = Interop.Renderer.Renderer_Property_DEPTH_WRITE_MODE_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int DEPTH_FUNCTION = Interop.Renderer.Renderer_Property_DEPTH_FUNCTION_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int DEPTH_TEST_MODE = Interop.Renderer.Renderer_Property_DEPTH_TEST_MODE_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int RENDER_MODE = Interop.Renderer.Renderer_Property_RENDER_MODE_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int STENCIL_FUNCTION = Interop.Renderer.Renderer_Property_STENCIL_FUNCTION_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int STENCIL_FUNCTION_MASK = Interop.Renderer.Renderer_Property_STENCIL_FUNCTION_MASK_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int STENCIL_FUNCTION_REFERENCE = Interop.Renderer.Renderer_Property_STENCIL_FUNCTION_REFERENCE_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int STENCIL_MASK = Interop.Renderer.Renderer_Property_STENCIL_MASK_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int STENCIL_OPERATION_ON_FAIL = Interop.Renderer.Renderer_Property_STENCIL_OPERATION_ON_FAIL_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int STENCIL_OPERATION_ON_Z_FAIL = Interop.Renderer.Renderer_Property_STENCIL_OPERATION_ON_Z_FAIL_get();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("Deprecated in API6; Will be removed in API9.")]
+ public static readonly int STENCIL_OPERATION_ON_Z_PASS = Interop.Renderer.Renderer_Property_STENCIL_OPERATION_ON_Z_PASS_get();
+ }
+ }
}