/** Copyright (c) 2016 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. * */ // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts //------------------------------------------------------------------------------ // // // This file was automatically generated by SWIG (http://www.swig.org). // Version 3.0.9 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ namespace Dali { public class Renderer : Handle { 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; } ~Renderer() { Dispose(); } public override void Dispose() { lock(this) { 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); } global::System.GC.SuppressFinalize(this); base.Dispose(); } } 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; } ~Property() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; NDalicPINVOKE.delete_Renderer_Property(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } global::System.GC.SuppressFinalize(this); } } public Property() : this(NDalicPINVOKE.new_Renderer_Property(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } 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 static readonly int BATCHING_ENABLED = NDalicPINVOKE.Renderer_Property_BATCHING_ENABLED_get(); } public Renderer (Geometry geometry, Shader shader) : this (NDalicPINVOKE.Renderer_New(Geometry.getCPtr(geometry), Shader.getCPtr(shader)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public Renderer(Renderer handle) : this(NDalicPINVOKE.new_Renderer__SWIG_1(Renderer.getCPtr(handle)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public new static Renderer DownCast(BaseHandle handle) { Renderer ret = new Renderer(NDalicPINVOKE.Renderer_DownCast(BaseHandle.getCPtr(handle)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public Renderer Assign(Renderer handle) { Renderer ret = new Renderer(NDalicPINVOKE.Renderer_Assign(swigCPtr, Renderer.getCPtr(handle)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public void SetGeometry(Geometry geometry) { NDalicPINVOKE.Renderer_SetGeometry(swigCPtr, Geometry.getCPtr(geometry)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } public Geometry GetGeometry() { Geometry ret = new Geometry(NDalicPINVOKE.Renderer_GetGeometry(swigCPtr), true); 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() { TextureSet ret = new TextureSet(NDalicPINVOKE.Renderer_GetTextures(swigCPtr), true); 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() { Shader ret = new Shader(NDalicPINVOKE.Renderer_GetShader(swigCPtr), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } public int DepthIndex { get { int temp = 0; GetProperty( Renderer.Property.DEPTH_INDEX).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.DEPTH_INDEX, new Dali.Property.Value( value ) ); } } public int FaceCullingMode { get { int temp = 0; GetProperty( Renderer.Property.FACE_CULLING_MODE).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.FACE_CULLING_MODE, new Dali.Property.Value( value ) ); } } public int BlendMode { get { int temp = 0; GetProperty( Renderer.Property.BLEND_MODE).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_MODE, new Dali.Property.Value( value ) ); } } public int BlendEquationRgb { get { int temp = 0; GetProperty( Renderer.Property.BLEND_EQUATION_RGB).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_EQUATION_RGB, new Dali.Property.Value( value ) ); } } public int BlendEquationAlpha { get { int temp = 0; GetProperty( Renderer.Property.BLEND_EQUATION_ALPHA).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_EQUATION_ALPHA, new Dali.Property.Value( value ) ); } } public int BlendFactorSrcRgb { get { int temp = 0; GetProperty( Renderer.Property.BLEND_FACTOR_SRC_RGB).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_FACTOR_SRC_RGB, new Dali.Property.Value( value ) ); } } public int BlendFactorDestRgb { get { int temp = 0; GetProperty( Renderer.Property.BLEND_FACTOR_DEST_RGB).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_FACTOR_DEST_RGB, new Dali.Property.Value( value ) ); } } public int BlendFactorSrcAlpha { get { int temp = 0; GetProperty( Renderer.Property.BLEND_FACTOR_SRC_ALPHA).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_FACTOR_SRC_ALPHA, new Dali.Property.Value( value ) ); } } public int BlendFactorDestAlpha { get { int temp = 0; GetProperty( Renderer.Property.BLEND_FACTOR_DEST_ALPHA).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_FACTOR_DEST_ALPHA, new Dali.Property.Value( value ) ); } } public Vector4 BlendColor { get { Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f); GetProperty( Renderer.Property.BLEND_COLOR).Get( temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_COLOR, new Dali.Property.Value( value ) ); } } public bool BlendPreMultipliedAlpha { get { bool temp = false; GetProperty( Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA, new Dali.Property.Value( value ) ); } } public int IndexRangeFirst { get { int temp = 0; GetProperty( Renderer.Property.INDEX_RANGE_FIRST).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.INDEX_RANGE_FIRST, new Dali.Property.Value( value ) ); } } public int IndexRangeCount { get { int temp = 0; GetProperty( Renderer.Property.INDEX_RANGE_COUNT).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.INDEX_RANGE_COUNT, new Dali.Property.Value( value ) ); } } public int DepthWriteMode { get { int temp = 0; GetProperty( Renderer.Property.DEPTH_WRITE_MODE).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.DEPTH_WRITE_MODE, new Dali.Property.Value( value ) ); } } public int DepthFunction { get { int temp = 0; GetProperty( Renderer.Property.DEPTH_FUNCTION).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.DEPTH_FUNCTION, new Dali.Property.Value( value ) ); } } public int DepthTestMode { get { int temp = 0; GetProperty( Renderer.Property.DEPTH_TEST_MODE).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.DEPTH_TEST_MODE, new Dali.Property.Value( value ) ); } } public int RenderMode { get { int temp = 0; GetProperty( Renderer.Property.RENDER_MODE).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.RENDER_MODE, new Dali.Property.Value( value ) ); } } public int StencilFunction { get { int temp = 0; GetProperty( Renderer.Property.STENCIL_FUNCTION).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.STENCIL_FUNCTION, new Dali.Property.Value( value ) ); } } public int StencilFunctionMask { get { int temp = 0; GetProperty( Renderer.Property.STENCIL_FUNCTION_MASK).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.STENCIL_FUNCTION_MASK, new Dali.Property.Value( value ) ); } } public int StencilFunctionReference { get { int temp = 0; GetProperty( Renderer.Property.STENCIL_FUNCTION_REFERENCE).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.STENCIL_FUNCTION_REFERENCE, new Dali.Property.Value( value ) ); } } public int StencilMask { get { int temp = 0; GetProperty( Renderer.Property.STENCIL_MASK).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.STENCIL_MASK, new Dali.Property.Value( value ) ); } } public int StencilOperationOnFail { get { int temp = 0; GetProperty( Renderer.Property.STENCIL_OPERATION_ON_FAIL).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.STENCIL_OPERATION_ON_FAIL, new Dali.Property.Value( value ) ); } } public int StencilOperationOnZFail { get { int temp = 0; GetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL, new Dali.Property.Value( value ) ); } } public int StencilOperationOnZPass { get { int temp = 0; GetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_PASS).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_PASS, new Dali.Property.Value( value ) ); } } public bool BatchingEnabled { get { bool temp = false; GetProperty( Renderer.Property.BATCHING_ENABLED).Get( ref temp ); return temp; } set { SetProperty( Renderer.Property.BATCHING_ENABLED, new Dali.Property.Value( value ) ); } } } }