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