Release 4.0.0-preview1-00301
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Renderer.cs
1 /*
2  * Copyright(c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 namespace Tizen.NUI
19 {
20     /// <summary>
21     /// Renderer is a handle to an object used to show content by combining a Geometry, a TextureSet and a shader.
22     /// </summary>
23     public class Renderer : Animatable
24     {
25         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
26
27         internal Renderer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Renderer_SWIGUpcast(cPtr), cMemoryOwn)
28         {
29             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
30         }
31
32         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Renderer obj)
33         {
34             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
35         }
36
37         /// <summary>
38         /// Dispose.
39         /// </summary>
40         /// <since_tizen> 3 </since_tizen>
41         protected override void Dispose(DisposeTypes type)
42         {
43             if (disposed)
44             {
45                 return;
46             }
47
48             if (type == DisposeTypes.Explicit)
49             {
50                 //Called by User
51                 //Release your own managed resources here.
52                 //You should release all of your own disposable objects here.
53
54             }
55
56             //Release your own unmanaged resources here.
57             //You should not access any managed member here except static instance.
58             //because the execution order of Finalizes is non-deterministic.
59
60
61             if (swigCPtr.Handle != global::System.IntPtr.Zero)
62             {
63                 if (swigCMemOwn)
64                 {
65                     swigCMemOwn = false;
66                     NDalicPINVOKE.delete_Renderer(swigCPtr);
67                 }
68                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
69             }
70
71             base.Dispose(type);
72         }
73
74         /// <summary>
75         /// Enumeration for instances of properties belonging to the Renderer class.
76         /// </summary>
77         /// <since_tizen> 3 </since_tizen>
78         public class Property
79         {
80             /// <summary>
81             /// This should be internal, please do not use.
82             /// </summary>
83             /// <since_tizen> 3 </since_tizen>
84             public static readonly int DEPTH_INDEX = NDalicPINVOKE.Renderer_Property_DEPTH_INDEX_get();
85             /// <summary>
86             /// This should be internal, please do not use.
87             /// </summary>
88             /// <since_tizen> 3 </since_tizen>
89             public static readonly int FACE_CULLING_MODE = NDalicPINVOKE.Renderer_Property_FACE_CULLING_MODE_get();
90             /// <summary>
91             /// This should be internal, please do not use.
92             /// </summary>
93             /// <since_tizen> 3 </since_tizen>
94             public static readonly int BLEND_MODE = NDalicPINVOKE.Renderer_Property_BLEND_MODE_get();
95             /// <summary>
96             /// This should be internal, please do not use.
97             /// </summary>
98             /// <since_tizen> 3 </since_tizen>
99             public static readonly int BLEND_EQUATION_RGB = NDalicPINVOKE.Renderer_Property_BLEND_EQUATION_RGB_get();
100             /// <summary>
101             /// This should be internal, please do not use.
102             /// </summary>
103             /// <since_tizen> 3 </since_tizen>
104             public static readonly int BLEND_EQUATION_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_EQUATION_ALPHA_get();
105             /// <summary>
106             /// This should be internal, please do not use.
107             /// </summary>
108             /// <since_tizen> 3 </since_tizen>
109             public static readonly int BLEND_FACTOR_SRC_RGB = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_SRC_RGB_get();
110             /// <summary>
111             /// This should be internal, please do not use.
112             /// </summary>
113             /// <since_tizen> 3 </since_tizen>
114             public static readonly int BLEND_FACTOR_DEST_RGB = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_DEST_RGB_get();
115             /// <summary>
116             /// This should be internal, please do not use.
117             /// </summary>
118             /// <since_tizen> 3 </since_tizen>
119             public static readonly int BLEND_FACTOR_SRC_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_SRC_ALPHA_get();
120             /// <summary>
121             /// This should be internal, please do not use.
122             /// </summary>
123             /// <since_tizen> 3 </since_tizen>
124             public static readonly int BLEND_FACTOR_DEST_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_FACTOR_DEST_ALPHA_get();
125             /// <summary>
126             /// This should be internal, please do not use.
127             /// </summary>
128             /// <since_tizen> 3 </since_tizen>
129             public static readonly int BLEND_COLOR = NDalicPINVOKE.Renderer_Property_BLEND_COLOR_get();
130             /// <summary>
131             /// This should be internal, please do not use.
132             /// </summary>
133             /// <since_tizen> 3 </since_tizen>
134             public static readonly int BLEND_PRE_MULTIPLIED_ALPHA = NDalicPINVOKE.Renderer_Property_BLEND_PRE_MULTIPLIED_ALPHA_get();
135             /// <summary>
136             /// This should be internal, please do not use.
137             /// </summary>
138             /// <since_tizen> 3 </since_tizen>
139             public static readonly int INDEX_RANGE_FIRST = NDalicPINVOKE.Renderer_Property_INDEX_RANGE_FIRST_get();
140             /// <summary>
141             /// This should be internal, please do not use.
142             /// </summary>
143             /// <since_tizen> 3 </since_tizen>
144             public static readonly int INDEX_RANGE_COUNT = NDalicPINVOKE.Renderer_Property_INDEX_RANGE_COUNT_get();
145             /// <summary>
146             /// This should be internal, please do not use.
147             /// </summary>
148             /// <since_tizen> 3 </since_tizen>
149             public static readonly int DEPTH_WRITE_MODE = NDalicPINVOKE.Renderer_Property_DEPTH_WRITE_MODE_get();
150             /// <summary>
151             /// This should be internal, please do not use.
152             /// </summary>
153             /// <since_tizen> 3 </since_tizen>
154             public static readonly int DEPTH_FUNCTION = NDalicPINVOKE.Renderer_Property_DEPTH_FUNCTION_get();
155             /// <summary>
156             /// This should be internal, please do not use.
157             /// </summary>
158             /// <since_tizen> 3 </since_tizen>
159             public static readonly int DEPTH_TEST_MODE = NDalicPINVOKE.Renderer_Property_DEPTH_TEST_MODE_get();
160             /// <summary>
161             /// This should be internal, please do not use.
162             /// </summary>
163             /// <since_tizen> 3 </since_tizen>
164             public static readonly int RENDER_MODE = NDalicPINVOKE.Renderer_Property_RENDER_MODE_get();
165             /// <summary>
166             /// This should be internal, please do not use.
167             /// </summary>
168             /// <since_tizen> 3 </since_tizen>
169             public static readonly int STENCIL_FUNCTION = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_get();
170             /// <summary>
171             /// This should be internal, please do not use.
172             /// </summary>
173             /// <since_tizen> 3 </since_tizen>
174             public static readonly int STENCIL_FUNCTION_MASK = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_MASK_get();
175             /// <summary>
176             /// This should be internal, please do not use.
177             /// </summary>
178             /// <since_tizen> 3 </since_tizen>
179             public static readonly int STENCIL_FUNCTION_REFERENCE = NDalicPINVOKE.Renderer_Property_STENCIL_FUNCTION_REFERENCE_get();
180             /// <summary>
181             /// This should be internal, please do not use.
182             /// </summary>
183             /// <since_tizen> 3 </since_tizen>
184             public static readonly int STENCIL_MASK = NDalicPINVOKE.Renderer_Property_STENCIL_MASK_get();
185             /// <summary>
186             /// This should be internal, please do not use.
187             /// </summary>
188             /// <since_tizen> 3 </since_tizen>
189             public static readonly int STENCIL_OPERATION_ON_FAIL = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_FAIL_get();
190             /// <summary>
191             /// This should be internal, please do not use.
192             /// </summary>
193             /// <since_tizen> 3 </since_tizen>
194             public static readonly int STENCIL_OPERATION_ON_Z_FAIL = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_Z_FAIL_get();
195             /// <summary>
196             /// This should be internal, please do not use.
197             /// </summary>
198             /// <since_tizen> 3 </since_tizen>
199             public static readonly int STENCIL_OPERATION_ON_Z_PASS = NDalicPINVOKE.Renderer_Property_STENCIL_OPERATION_ON_Z_PASS_get();
200
201         }
202
203         /// <summary>
204         /// Create an instance of Renderer.
205         /// </summary>
206         /// <since_tizen> 3 </since_tizen>
207         public Renderer(Geometry geometry, Shader shader) : this(NDalicPINVOKE.Renderer_New(Geometry.getCPtr(geometry), Shader.getCPtr(shader)), true)
208         {
209             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
210
211         }
212
213         /// <summary>
214         /// Sets the geometry to be used by this renderer.
215         /// </summary>
216         /// <param name="geometry">The geometry to be used by this renderer.</param>
217         /// <since_tizen> 3 </since_tizen>
218         public void SetGeometry(Geometry geometry)
219         {
220             NDalicPINVOKE.Renderer_SetGeometry(swigCPtr, Geometry.getCPtr(geometry));
221             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
222         }
223
224         /// <summary>
225         /// Gets the geometry used by this renderer.
226         /// </summary>
227         /// <returns>The geometry used by the renderer.</returns>
228         /// <since_tizen> 3 </since_tizen>
229         public Geometry GetGeometry()
230         {
231             System.IntPtr cPtr = NDalicPINVOKE.Renderer_GetGeometry(swigCPtr);
232             Geometry ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Geometry;
233
234             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
235             return ret;
236         }
237
238         /// <summary>
239         /// Sets effective range of indices to draw from bound index buffer.
240         /// </summary>
241         /// <param name="firstElement">The First element to draw.</param>
242         /// <param name="elementsCount">The number of elements to draw.</param>
243         /// <since_tizen> 3 </since_tizen>
244         public void SetIndexRange(int firstElement, int elementsCount)
245         {
246             NDalicPINVOKE.Renderer_SetIndexRange(swigCPtr, firstElement, elementsCount);
247             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
248         }
249
250         /// <summary>
251         /// Sets the texture set to be used by this renderer.
252         /// </summary>
253         /// <param name="textureSet">The texture set to be used by this renderer.</param>
254         /// <since_tizen> 3 </since_tizen>
255         public void SetTextures(TextureSet textureSet)
256         {
257             NDalicPINVOKE.Renderer_SetTextures(swigCPtr, TextureSet.getCPtr(textureSet));
258             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259         }
260
261         /// <summary>
262         /// Gets the texture set used by this renderer.
263         /// </summary>
264         /// <returns>The texture set used by the renderer.</returns>
265         /// <since_tizen> 3 </since_tizen>
266         public TextureSet GetTextures()
267         {
268             System.IntPtr cPtr = NDalicPINVOKE.Renderer_GetTextures(swigCPtr);
269             TextureSet ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as TextureSet;
270
271             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
272             return ret;
273         }
274
275         /// <summary>
276         /// Sets the shader used by this renderer.
277         /// </summary>
278         /// <param name="shader">The shader to be used by this renderer.</param>
279         /// <since_tizen> 3 </since_tizen>
280         public void SetShader(Shader shader)
281         {
282             NDalicPINVOKE.Renderer_SetShader(swigCPtr, Shader.getCPtr(shader));
283             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284         }
285
286         /// <summary>
287         /// Gets the shader used by this renderer.
288         /// </summary>
289         /// <returns>The shader used by the renderer.</returns>
290         /// <since_tizen> 3 </since_tizen>
291         public Shader GetShader()
292         {
293             System.IntPtr cPtr = NDalicPINVOKE.Renderer_GetShader(swigCPtr);
294             Shader ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Shader;
295
296             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
297             return ret;
298         }
299
300         /// <summary>
301         /// Gets and Sets DepthIndex property.
302         /// </summary>
303         /// <since_tizen> 3 </since_tizen>
304         public int DepthIndex
305         {
306             get
307             {
308                 int temp = 0;
309                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.DEPTH_INDEX).Get(out temp);
310                 return temp;
311             }
312             set
313             {
314                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DEPTH_INDEX, new Tizen.NUI.PropertyValue(value));
315             }
316         }
317
318         /// <summary>
319         /// Gets and Sets FaceCullingMode.
320         /// </summary>
321         /// <since_tizen> 3 </since_tizen>
322         public int FaceCullingMode
323         {
324             get
325             {
326                 int temp = 0;
327                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.FACE_CULLING_MODE).Get(out temp);
328                 return temp;
329             }
330             set
331             {
332                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.FACE_CULLING_MODE, new Tizen.NUI.PropertyValue(value));
333             }
334         }
335
336         /// <summary>
337         /// Gets and Sets BlendMode.
338         /// </summary>
339         /// <since_tizen> 3 </since_tizen>
340         public int BlendMode
341         {
342             get
343             {
344                 int temp = 0;
345                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_MODE).Get(out temp);
346                 return temp;
347             }
348             set
349             {
350                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_MODE, new Tizen.NUI.PropertyValue(value));
351             }
352         }
353
354         /// <summary>
355         /// Gets and Sets BlendEquationRgb.
356         /// </summary>
357         /// <since_tizen> 3 </since_tizen>
358         public int BlendEquationRgb
359         {
360             get
361             {
362                 int temp = 0;
363                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_EQUATION_RGB).Get(out temp);
364                 return temp;
365             }
366             set
367             {
368                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_EQUATION_RGB, new Tizen.NUI.PropertyValue(value));
369             }
370         }
371
372         /// <summary>
373         /// Gets and Sets BlendEquationAlpha.
374         /// </summary>
375         /// <since_tizen> 3 </since_tizen>
376         public int BlendEquationAlpha
377         {
378             get
379             {
380                 int temp = 0;
381                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_EQUATION_ALPHA).Get(out temp);
382                 return temp;
383             }
384             set
385             {
386                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_EQUATION_ALPHA, new Tizen.NUI.PropertyValue(value));
387             }
388         }
389
390         /// <summary>
391         /// Gets and Sets BlendFactorSrcRgb.
392         /// </summary>
393         /// <since_tizen> 3 </since_tizen>
394         public int BlendFactorSrcRgb
395         {
396             get
397             {
398                 int temp = 0;
399                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_SRC_RGB).Get(out temp);
400                 return temp;
401             }
402             set
403             {
404                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_SRC_RGB, new Tizen.NUI.PropertyValue(value));
405             }
406         }
407
408         /// <summary>
409         /// Gets and Sets BlendFactorDestRgb.
410         /// </summary>
411         /// <since_tizen> 3 </since_tizen>
412         public int BlendFactorDestRgb
413         {
414             get
415             {
416                 int temp = 0;
417                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_DEST_RGB).Get(out temp);
418                 return temp;
419             }
420             set
421             {
422                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_DEST_RGB, new Tizen.NUI.PropertyValue(value));
423             }
424         }
425
426         /// <summary>
427         /// Gets and Sets BlendFactorSrcAlpha.
428         /// </summary>
429         /// <since_tizen> 3 </since_tizen>
430         public int BlendFactorSrcAlpha
431         {
432             get
433             {
434                 int temp = 0;
435                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_SRC_ALPHA).Get(out temp);
436                 return temp;
437             }
438             set
439             {
440                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_SRC_ALPHA, new Tizen.NUI.PropertyValue(value));
441             }
442         }
443
444         /// <summary>
445         /// Gets and Sets BlendFactorDestAlpha.
446         /// </summary>
447         /// <since_tizen> 3 </since_tizen>
448         public int BlendFactorDestAlpha
449         {
450             get
451             {
452                 int temp = 0;
453                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_DEST_ALPHA).Get(out temp);
454                 return temp;
455             }
456             set
457             {
458                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_FACTOR_DEST_ALPHA, new Tizen.NUI.PropertyValue(value));
459             }
460         }
461
462         /// <summary>
463         /// Gets and Sets BlendColor.
464         /// </summary>
465         /// <since_tizen> 3 </since_tizen>
466         public Vector4 BlendColor
467         {
468             get
469             {
470                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
471                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_COLOR).Get(temp);
472                 return temp;
473             }
474             set
475             {
476                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_COLOR, new Tizen.NUI.PropertyValue(value));
477             }
478         }
479
480         /// <summary>
481         /// Gets and Sets BlendPreMultipliedAlpha.
482         /// </summary>
483         /// <since_tizen> 3 </since_tizen>
484         public bool BlendPreMultipliedAlpha
485         {
486             get
487             {
488                 bool temp = false;
489                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA).Get(out temp);
490                 return temp;
491             }
492             set
493             {
494                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA, new Tizen.NUI.PropertyValue(value));
495             }
496         }
497
498         /// <summary>
499         /// Gets and Sets IndexRangeFirst.
500         /// </summary>
501         /// <since_tizen> 3 </since_tizen>
502         public int IndexRangeFirst
503         {
504             get
505             {
506                 int temp = 0;
507                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.INDEX_RANGE_FIRST).Get(out temp);
508                 return temp;
509             }
510             set
511             {
512                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.INDEX_RANGE_FIRST, new Tizen.NUI.PropertyValue(value));
513             }
514         }
515
516         /// <summary>
517         /// Gets and Sets IndexRangeCount.
518         /// </summary>
519         /// <since_tizen> 3 </since_tizen>
520         public int IndexRangeCount
521         {
522             get
523             {
524                 int temp = 0;
525                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.INDEX_RANGE_COUNT).Get(out temp);
526                 return temp;
527             }
528             set
529             {
530                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.INDEX_RANGE_COUNT, new Tizen.NUI.PropertyValue(value));
531             }
532         }
533
534         /// <summary>
535         /// Gets and Sets DepthWriteMode.
536         /// </summary>
537         /// <since_tizen> 3 </since_tizen>
538         public int DepthWriteMode
539         {
540             get
541             {
542                 int temp = 0;
543                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.DEPTH_WRITE_MODE).Get(out temp);
544                 return temp;
545             }
546             set
547             {
548                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DEPTH_WRITE_MODE, new Tizen.NUI.PropertyValue(value));
549             }
550         }
551
552         /// <summary>
553         /// Gets and Sets DepthFunction.
554         /// </summary>
555         /// <since_tizen> 3 </since_tizen>
556         public int DepthFunction
557         {
558             get
559             {
560                 int temp = 0;
561                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.DEPTH_FUNCTION).Get(out temp);
562                 return temp;
563             }
564             set
565             {
566                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DEPTH_FUNCTION, new Tizen.NUI.PropertyValue(value));
567             }
568         }
569
570         /// <summary>
571         /// Gets and Sets DepthTestMode.
572         /// </summary>
573         /// <since_tizen> 3 </since_tizen>
574         public int DepthTestMode
575         {
576             get
577             {
578                 int temp = 0;
579                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.DEPTH_TEST_MODE).Get(out temp);
580                 return temp;
581             }
582             set
583             {
584                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DEPTH_TEST_MODE, new Tizen.NUI.PropertyValue(value));
585             }
586         }
587
588         /// <summary>
589         /// Gets and Sets RenderMode.
590         /// </summary>
591         /// <since_tizen> 3 </since_tizen>
592         public int RenderMode
593         {
594             get
595             {
596                 int temp = 0;
597                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.RENDER_MODE).Get(out temp);
598                 return temp;
599             }
600             set
601             {
602                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.RENDER_MODE, new Tizen.NUI.PropertyValue(value));
603             }
604         }
605
606         /// <summary>
607         /// Gets and Sets StencilFunction.
608         /// </summary>
609         /// <since_tizen> 3 </since_tizen>
610         public int StencilFunction
611         {
612             get
613             {
614                 int temp = 0;
615                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION).Get(out temp);
616                 return temp;
617             }
618             set
619             {
620                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION, new Tizen.NUI.PropertyValue(value));
621             }
622         }
623
624         /// <summary>
625         /// Gets and Sets StencilFunctionMask.
626         /// </summary>
627         /// <since_tizen> 3 </since_tizen>
628         public int StencilFunctionMask
629         {
630             get
631             {
632                 int temp = 0;
633                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION_MASK).Get(out temp);
634                 return temp;
635             }
636             set
637             {
638                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION_MASK, new Tizen.NUI.PropertyValue(value));
639             }
640         }
641
642         /// <summary>
643         /// Gets and Sets StencilFunctionReference.
644         /// </summary>
645         /// <since_tizen> 3 </since_tizen>
646         public int StencilFunctionReference
647         {
648             get
649             {
650                 int temp = 0;
651                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION_REFERENCE).Get(out temp);
652                 return temp;
653             }
654             set
655             {
656                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_FUNCTION_REFERENCE, new Tizen.NUI.PropertyValue(value));
657             }
658         }
659
660         /// <summary>
661         /// Gets and Sets StencilMask.
662         /// </summary>
663         /// <since_tizen> 3 </since_tizen>
664         public int StencilMask
665         {
666             get
667             {
668                 int temp = 0;
669                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.STENCIL_MASK).Get(out temp);
670                 return temp;
671             }
672             set
673             {
674                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_MASK, new Tizen.NUI.PropertyValue(value));
675             }
676         }
677
678         /// <summary>
679         /// Gets and Sets StencilOperationOnFail.
680         /// </summary>
681         /// <since_tizen> 3 </since_tizen>
682         public int StencilOperationOnFail
683         {
684             get
685             {
686                 int temp = 0;
687                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.STENCIL_OPERATION_ON_FAIL).Get(out temp);
688                 return temp;
689             }
690             set
691             {
692                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_OPERATION_ON_FAIL, new Tizen.NUI.PropertyValue(value));
693             }
694         }
695
696         /// <summary>
697         /// Gets and Sets StencilOperationOnZFail.
698         /// </summary>
699         /// <since_tizen> 3 </since_tizen>
700         public int StencilOperationOnZFail
701         {
702             get
703             {
704                 int temp = 0;
705                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL).Get(out temp);
706                 return temp;
707             }
708             set
709             {
710                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL, new Tizen.NUI.PropertyValue(value));
711             }
712         }
713
714         /// <summary>
715         /// Gets and Sets StencilOperationOnZPass property.
716         /// </summary>
717         /// <since_tizen> 3 </since_tizen>
718         public int StencilOperationOnZPass
719         {
720             get
721             {
722                 int temp = 0;
723                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.STENCIL_OPERATION_ON_Z_PASS).Get(out temp);
724                 return temp;
725             }
726             set
727             {
728                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.STENCIL_OPERATION_ON_Z_PASS, new Tizen.NUI.PropertyValue(value));
729             }
730         }
731
732     }
733
734 }