dbefaee27e62b25fca92c750e1a314f0e1b555e5
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Renderer.cs
1 /*
2  * Copyright(c) 2019 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 using System;
18 using System.ComponentModel;
19 using System.Diagnostics.CodeAnalysis;
20 using System.Runtime.InteropServices;
21
22 namespace Tizen.NUI
23 {
24     /// <summary>
25     /// Renderer is a handle to an object used to show content by combining a Geometry, a TextureSet and a shader.
26     /// </summary>
27     /// <since_tizen> 3 </since_tizen>
28     public class Renderer : Animatable
29     {
30
31         /// <summary>
32         /// Create an instance of Renderer.
33         /// </summary>
34         /// <since_tizen> 3 </since_tizen>
35         public Renderer(Geometry geometry, Shader shader) : this(Interop.Renderer.New(Geometry.getCPtr(geometry), Shader.getCPtr(shader)), true)
36         {
37             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
38
39         }
40
41         /// <summary>
42         /// Gets and Sets DepthIndex property.
43         /// </summary>
44         /// <since_tizen> 3 </since_tizen>
45         public int DepthIndex
46         {
47             get
48             {
49                 int temp = 0;
50                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.DepthIndex).Get(out temp);
51                 return temp;
52             }
53             set
54             {
55                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DepthIndex, new Tizen.NUI.PropertyValue(value));
56             }
57         }
58
59         /// <summary>
60         /// Gets and Sets FaceCullingMode.
61         /// </summary>
62         /// <since_tizen> 3 </since_tizen>
63         public int FaceCullingMode
64         {
65             get
66             {
67                 int temp = 0;
68                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.FaceCullingMode).Get(out temp);
69                 return temp;
70             }
71             set
72             {
73                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.FaceCullingMode, new Tizen.NUI.PropertyValue(value));
74             }
75         }
76
77         /// <summary>
78         /// Gets and Sets BlendMode.
79         /// </summary>
80         /// <since_tizen> 3 </since_tizen>
81         public int BlendMode
82         {
83             get
84             {
85                 int temp = 0;
86                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendMode).Get(out temp);
87                 return temp;
88             }
89             set
90             {
91                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendMode, new Tizen.NUI.PropertyValue(value));
92             }
93         }
94
95         /// <summary>
96         /// Gets and Sets BlendEquationRgb.
97         /// </summary>
98         /// <since_tizen> 3 </since_tizen>
99         public int BlendEquationRgb
100         {
101             get
102             {
103                 int temp = 0;
104                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendEquationRgb).Get(out temp);
105                 return temp;
106             }
107             set
108             {
109                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendEquationRgb, new Tizen.NUI.PropertyValue(value));
110             }
111         }
112
113         /// <summary>
114         /// Gets and Sets BlendEquationAlpha.
115         /// </summary>
116         /// <since_tizen> 3 </since_tizen>
117         public int BlendEquationAlpha
118         {
119             get
120             {
121                 int temp = 0;
122                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendEquationAlpha).Get(out temp);
123                 return temp;
124             }
125             set
126             {
127                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendEquationAlpha, new Tizen.NUI.PropertyValue(value));
128             }
129         }
130
131         /// <summary>
132         /// Gets and Sets BlendFactorSrcRgb.
133         /// </summary>
134         /// <since_tizen> 3 </since_tizen>
135         public int BlendFactorSrcRgb
136         {
137             get
138             {
139                 int temp = 0;
140                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendFactorSrcRgb).Get(out temp);
141                 return temp;
142             }
143             set
144             {
145                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendFactorSrcRgb, new Tizen.NUI.PropertyValue(value));
146             }
147         }
148
149         /// <summary>
150         /// Gets and Sets BlendFactorDestRgb.
151         /// </summary>
152         /// <since_tizen> 3 </since_tizen>
153         public int BlendFactorDestRgb
154         {
155             get
156             {
157                 int temp = 0;
158                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendFactorDestRgb).Get(out temp);
159                 return temp;
160             }
161             set
162             {
163                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendFactorDestRgb, new Tizen.NUI.PropertyValue(value));
164             }
165         }
166
167         /// <summary>
168         /// Gets and Sets BlendFactorSrcAlpha.
169         /// </summary>
170         /// <since_tizen> 3 </since_tizen>
171         public int BlendFactorSrcAlpha
172         {
173             get
174             {
175                 int temp = 0;
176                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendFactorSrcAlpha).Get(out temp);
177                 return temp;
178             }
179             set
180             {
181                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendFactorSrcAlpha, new Tizen.NUI.PropertyValue(value));
182             }
183         }
184
185         /// <summary>
186         /// Gets and Sets BlendFactorDestAlpha.
187         /// </summary>
188         /// <since_tizen> 3 </since_tizen>
189         public int BlendFactorDestAlpha
190         {
191             get
192             {
193                 int temp = 0;
194                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendFactorDestAlpha).Get(out temp);
195                 return temp;
196             }
197             set
198             {
199                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendFactorDestAlpha, new Tizen.NUI.PropertyValue(value));
200             }
201         }
202
203         /// <summary>
204         /// Gets and Sets BlendColor.
205         /// </summary>
206         /// <since_tizen> 3 </since_tizen>
207         public Vector4 BlendColor
208         {
209             get
210             {
211                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
212                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendColor).Get(temp);
213                 return temp;
214             }
215             set
216             {
217                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendColor, new Tizen.NUI.PropertyValue(value));
218             }
219         }
220
221         /// <summary>
222         /// Gets and Sets BlendPreMultipliedAlpha.
223         /// </summary>
224         /// <since_tizen> 3 </since_tizen>
225         public bool BlendPreMultipliedAlpha
226         {
227             get
228             {
229                 bool temp = false;
230                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.BlendPreMultipliedAlpha).Get(out temp);
231                 return temp;
232             }
233             set
234             {
235                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.BlendPreMultipliedAlpha, new Tizen.NUI.PropertyValue(value));
236             }
237         }
238
239         /// <summary>
240         /// Gets and Sets IndexRangeFirst.
241         /// </summary>
242         /// <since_tizen> 3 </since_tizen>
243         public int IndexRangeFirst
244         {
245             get
246             {
247                 int temp = 0;
248                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.IndexRangeFirst).Get(out temp);
249                 return temp;
250             }
251             set
252             {
253                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.IndexRangeFirst, new Tizen.NUI.PropertyValue(value));
254             }
255         }
256
257         /// <summary>
258         /// Gets and Sets IndexRangeCount.
259         /// </summary>
260         /// <since_tizen> 3 </since_tizen>
261         public int IndexRangeCount
262         {
263             get
264             {
265                 int temp = 0;
266                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.IndexRangeCount).Get(out temp);
267                 return temp;
268             }
269             set
270             {
271                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.IndexRangeCount, new Tizen.NUI.PropertyValue(value));
272             }
273         }
274
275         /// <summary>
276         /// Gets and Sets DepthWriteMode.
277         /// </summary>
278         /// <since_tizen> 3 </since_tizen>
279         public int DepthWriteMode
280         {
281             get
282             {
283                 int temp = 0;
284                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.DepthWriteMode).Get(out temp);
285                 return temp;
286             }
287             set
288             {
289                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DepthWriteMode, new Tizen.NUI.PropertyValue(value));
290             }
291         }
292
293         /// <summary>
294         /// Gets and Sets DepthFunction.
295         /// </summary>
296         /// <since_tizen> 3 </since_tizen>
297         public int DepthFunction
298         {
299             get
300             {
301                 int temp = 0;
302                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.DepthFunction).Get(out temp);
303                 return temp;
304             }
305             set
306             {
307                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DepthFunction, new Tizen.NUI.PropertyValue(value));
308             }
309         }
310
311         /// <summary>
312         /// Gets and Sets DepthTestMode.
313         /// </summary>
314         /// <since_tizen> 3 </since_tizen>
315         public int DepthTestMode
316         {
317             get
318             {
319                 int temp = 0;
320                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.DepthTestMode).Get(out temp);
321                 return temp;
322             }
323             set
324             {
325                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.DepthTestMode, new Tizen.NUI.PropertyValue(value));
326             }
327         }
328
329         /// <summary>
330         /// Gets and Sets RenderMode.
331         /// </summary>
332         /// <since_tizen> 3 </since_tizen>
333         public int RenderMode
334         {
335             get
336             {
337                 int temp = 0;
338                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.RenderMode).Get(out temp);
339                 return temp;
340             }
341             set
342             {
343                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.RenderMode, new Tizen.NUI.PropertyValue(value));
344             }
345         }
346
347         /// <summary>
348         /// Gets and Sets StencilFunction.
349         /// </summary>
350         /// <since_tizen> 3 </since_tizen>
351         public int StencilFunction
352         {
353             get
354             {
355                 int temp = 0;
356                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.StencilFunction).Get(out temp);
357                 return temp;
358             }
359             set
360             {
361                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.StencilFunction, new Tizen.NUI.PropertyValue(value));
362             }
363         }
364
365         /// <summary>
366         /// Gets and Sets StencilFunctionMask.
367         /// </summary>
368         /// <since_tizen> 3 </since_tizen>
369         public int StencilFunctionMask
370         {
371             get
372             {
373                 int temp = 0;
374                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.StencilFunctionMask).Get(out temp);
375                 return temp;
376             }
377             set
378             {
379                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.StencilFunctionMask, new Tizen.NUI.PropertyValue(value));
380             }
381         }
382
383         /// <summary>
384         /// Gets and Sets StencilFunctionReference.
385         /// </summary>
386         /// <since_tizen> 3 </since_tizen>
387         public int StencilFunctionReference
388         {
389             get
390             {
391                 int temp = 0;
392                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.StencilFunctionReference).Get(out temp);
393                 return temp;
394             }
395             set
396             {
397                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.StencilFunctionReference, new Tizen.NUI.PropertyValue(value));
398             }
399         }
400
401         /// <summary>
402         /// Gets and Sets StencilMask.
403         /// </summary>
404         /// <since_tizen> 3 </since_tizen>
405         public int StencilMask
406         {
407             get
408             {
409                 int temp = 0;
410                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.StencilMask).Get(out temp);
411                 return temp;
412             }
413             set
414             {
415                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.StencilMask, new Tizen.NUI.PropertyValue(value));
416             }
417         }
418
419         /// <summary>
420         /// Gets and Sets StencilOperationOnFail.
421         /// </summary>
422         /// <since_tizen> 3 </since_tizen>
423         public int StencilOperationOnFail
424         {
425             get
426             {
427                 int temp = 0;
428                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.StencilOperationOnFail).Get(out temp);
429                 return temp;
430             }
431             set
432             {
433                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.StencilOperationOnFail, new Tizen.NUI.PropertyValue(value));
434             }
435         }
436
437         /// <summary>
438         /// Gets and Sets StencilOperationOnZFail.
439         /// </summary>
440         /// <since_tizen> 3 </since_tizen>
441         public int StencilOperationOnZFail
442         {
443             get
444             {
445                 int temp = 0;
446                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.StencilOperationOnZFail).Get(out temp);
447                 return temp;
448             }
449             set
450             {
451                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.StencilOperationOnZFail, new Tizen.NUI.PropertyValue(value));
452             }
453         }
454
455         /// <summary>
456         /// Gets and Sets StencilOperationOnZPass property.
457         /// </summary>
458         /// <since_tizen> 3 </since_tizen>
459         public int StencilOperationOnZPass
460         {
461             get
462             {
463                 int temp = 0;
464                 Tizen.NUI.Object.GetProperty(swigCPtr, Renderer.Property.StencilOperationOnZPass).Get(out temp);
465                 return temp;
466             }
467             set
468             {
469                 Tizen.NUI.Object.SetProperty(swigCPtr, Renderer.Property.StencilOperationOnZPass, new Tizen.NUI.PropertyValue(value));
470             }
471         }
472
473         /// <summary>
474         /// Sets the geometry to be used by this renderer.
475         /// </summary>
476         /// <param name="geometry">The geometry to be used by this renderer.</param>
477         /// <since_tizen> 3 </since_tizen>
478         public void SetGeometry(Geometry geometry)
479         {
480             Interop.Renderer.SetGeometry(swigCPtr, Geometry.getCPtr(geometry));
481             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
482         }
483
484         /// <summary>
485         /// Gets the geometry used by this renderer.
486         /// </summary>
487         /// <returns>The geometry used by the renderer.</returns>
488         /// <since_tizen> 3 </since_tizen>
489         public Geometry GetGeometry()
490         {
491             //to fix memory leak issue, match the handle count with native side.
492             System.IntPtr cPtr = Interop.Renderer.GetGeometry(swigCPtr);
493             Geometry ret = this.GetInstanceSafely<Geometry>(cPtr);
494             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
495             return ret;
496         }
497
498         /// <summary>
499         /// Sets effective range of indices to draw from bound index buffer.
500         /// </summary>
501         /// <param name="firstElement">The First element to draw.</param>
502         /// <param name="elementsCount">The number of elements to draw.</param>
503         /// <since_tizen> 3 </since_tizen>
504         public void SetIndexRange(int firstElement, int elementsCount)
505         {
506             Interop.Renderer.SetIndexRange(swigCPtr, firstElement, elementsCount);
507             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
508         }
509
510         /// <summary>
511         /// Sets the texture set to be used by this renderer.
512         /// </summary>
513         /// <param name="textureSet">The texture set to be used by this renderer.</param>
514         /// <since_tizen> 3 </since_tizen>
515         public void SetTextures(TextureSet textureSet)
516         {
517             Interop.Renderer.SetTextures(swigCPtr, TextureSet.getCPtr(textureSet));
518             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519         }
520
521         /// <summary>
522         /// Gets the texture set used by this renderer.
523         /// </summary>
524         /// <returns>The texture set used by the renderer.</returns>
525         /// <since_tizen> 3 </since_tizen>
526         public TextureSet GetTextures()
527         {
528             //to fix memory leak issue, match the handle count with native side.
529             System.IntPtr cPtr = Interop.Renderer.GetTextures(swigCPtr);
530             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
531             TextureSet ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as TextureSet;
532             if (cPtr != null && ret == null)
533             {
534                 ret = new TextureSet(cPtr, false);
535                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
536                 return ret;
537             }
538             Interop.BaseHandle.DeleteBaseHandle(CPtr);
539             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
540
541             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
542             return ret;
543         }
544
545         /// <summary>
546         /// Sets the shader used by this renderer.
547         /// </summary>
548         /// <param name="shader">The shader to be used by this renderer.</param>
549         /// <since_tizen> 3 </since_tizen>
550         public void SetShader(Shader shader)
551         {
552             Interop.Renderer.SetShader(swigCPtr, Shader.getCPtr(shader));
553             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
554         }
555
556         /// <summary>
557         /// Gets the shader used by this renderer.
558         /// </summary>
559         /// <returns>The shader used by the renderer.</returns>
560         /// <since_tizen> 3 </since_tizen>
561         public Shader GetShader()
562         {
563             //to fix memory leak issue, match the handle count with native side.
564             System.IntPtr cPtr = Interop.Renderer.GetShader(swigCPtr);
565             Shader ret = this.GetInstanceSafely<Shader>(cPtr);
566             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
567             return ret;
568         }
569
570         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Renderer obj)
571         {
572             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
573         }
574
575         internal Renderer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Renderer.Upcast(cPtr), cMemoryOwn)
576         {
577         }
578
579         /// This will not be public opened.
580         [EditorBrowsable(EditorBrowsableState.Never)]
581         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
582         {
583             Interop.Renderer.DeleteRenderer(swigCPtr);
584         }
585
586         /// <since_tizen> 6.0 </since_tizen>
587         /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
588         [EditorBrowsable(EditorBrowsableState.Never)]
589         public sealed class Ranges
590         {
591             /// <since_tizen> 6.0 </since_tizen>
592             /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
593             [EditorBrowsable(EditorBrowsableState.Never)]
594             public static readonly int BackgroundEffect = Interop.Renderer.RangesBackgroundEffectGet();
595
596             /// <since_tizen> 6.0 </since_tizen>
597             /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
598             [EditorBrowsable(EditorBrowsableState.Never)]
599             public static readonly int BACKGROUND = Interop.Renderer.RangesBackgroundGet();
600
601             /// <since_tizen> 6.0 </since_tizen>
602             /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
603             [EditorBrowsable(EditorBrowsableState.Never)]
604             public static readonly int CONTENT = Interop.Renderer.RangesContentGet();
605
606             /// <since_tizen> 6.0 </since_tizen>
607             /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
608             [EditorBrowsable(EditorBrowsableState.Never)]
609             public static readonly int DECORATION = Interop.Renderer.RangesDecorationGet();
610
611             /// <since_tizen> 6.0 </since_tizen>
612             /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
613             [EditorBrowsable(EditorBrowsableState.Never)]
614             public static readonly int ForegroundEffect = Interop.Renderer.RangesForegroundEffectGet();
615         }
616
617         /// <summary>
618         /// Enumeration for instances of properties belonging to the Renderer class.
619         /// </summary>
620         /// <since_tizen> 3 </since_tizen>
621         [SuppressMessage("Microsoft.Design", "CA1052:StaticHolderTypesShouldBeStaticOrNotInheritable")]
622         [EditorBrowsable(EditorBrowsableState.Never)]
623         [Obsolete("Deprecated in API6; Will be removed in API9.")]
624         public class Property
625         {
626             /// <summary>
627             /// This should be internal, please do not use.
628             /// </summary>
629             /// <since_tizen> 3 </since_tizen>
630             [EditorBrowsable(EditorBrowsableState.Never)]
631             [Obsolete("Deprecated in API6; Will be removed in API9.")]
632             public static readonly int DepthIndex = Interop.Renderer.DepthIndexGet();
633             /// <summary>
634             /// This should be internal, please do not use.
635             /// </summary>
636             /// <since_tizen> 3 </since_tizen>
637             [EditorBrowsable(EditorBrowsableState.Never)]
638             [Obsolete("Deprecated in API6; Will be removed in API9.")]
639             public static readonly int FaceCullingMode = Interop.Renderer.FaceCullingModeGet();
640             /// <summary>
641             /// This should be internal, please do not use.
642             /// </summary>
643             /// <since_tizen> 3 </since_tizen>
644             [EditorBrowsable(EditorBrowsableState.Never)]
645             [Obsolete("Deprecated in API6; Will be removed in API9.")]
646             public static readonly int BlendMode = Interop.Renderer.BlendModeGet();
647             /// <summary>
648             /// This should be internal, please do not use.
649             /// </summary>
650             /// <since_tizen> 3 </since_tizen>
651             [EditorBrowsable(EditorBrowsableState.Never)]
652             [Obsolete("Deprecated in API6; Will be removed in API9.")]
653             public static readonly int BlendEquationRgb = Interop.Renderer.BlendEquationRgbGet();
654             /// <summary>
655             /// This should be internal, please do not use.
656             /// </summary>
657             /// <since_tizen> 3 </since_tizen>
658             [EditorBrowsable(EditorBrowsableState.Never)]
659             [Obsolete("Deprecated in API6; Will be removed in API9.")]
660             public static readonly int BlendEquationAlpha = Interop.Renderer.BlendEquationAlphaGet();
661             /// <summary>
662             /// This should be internal, please do not use.
663             /// </summary>
664             /// <since_tizen> 3 </since_tizen>
665             [EditorBrowsable(EditorBrowsableState.Never)]
666             [Obsolete("Deprecated in API6; Will be removed in API9.")]
667             public static readonly int BlendFactorSrcRgb = Interop.Renderer.BlendFactorSrcRgbGet();
668             /// <summary>
669             /// This should be internal, please do not use.
670             /// </summary>
671             /// <since_tizen> 3 </since_tizen>
672             [EditorBrowsable(EditorBrowsableState.Never)]
673             [Obsolete("Deprecated in API6; Will be removed in API9.")]
674             public static readonly int BlendFactorDestRgb = Interop.Renderer.BlendFactorDestRgbGet();
675             /// <summary>
676             /// This should be internal, please do not use.
677             /// </summary>
678             /// <since_tizen> 3 </since_tizen>
679             [EditorBrowsable(EditorBrowsableState.Never)]
680             [Obsolete("Deprecated in API6; Will be removed in API9.")]
681             public static readonly int BlendFactorSrcAlpha = Interop.Renderer.BlendFactorSrcAlphaGet();
682             /// <summary>
683             /// This should be internal, please do not use.
684             /// </summary>
685             /// <since_tizen> 3 </since_tizen>
686             [EditorBrowsable(EditorBrowsableState.Never)]
687             [Obsolete("Deprecated in API6; Will be removed in API9.")]
688             public static readonly int BlendFactorDestAlpha = Interop.Renderer.BlendFactorDestAlphaGet();
689             /// <summary>
690             /// This should be internal, please do not use.
691             /// </summary>
692             /// <since_tizen> 3 </since_tizen>
693             [EditorBrowsable(EditorBrowsableState.Never)]
694             [Obsolete("Deprecated in API6; Will be removed in API9.")]
695             public static readonly int BlendColor = Interop.Renderer.BlendColorGet();
696             /// <summary>
697             /// This should be internal, please do not use.
698             /// </summary>
699             /// <since_tizen> 3 </since_tizen>
700             [EditorBrowsable(EditorBrowsableState.Never)]
701             [Obsolete("Deprecated in API6; Will be removed in API9.")]
702             public static readonly int BlendPreMultipliedAlpha = Interop.Renderer.BlendPreMultipliedAlphaGet();
703             /// <summary>
704             /// This should be internal, please do not use.
705             /// </summary>
706             /// <since_tizen> 3 </since_tizen>
707             [EditorBrowsable(EditorBrowsableState.Never)]
708             [Obsolete("Deprecated in API6; Will be removed in API9.")]
709             public static readonly int IndexRangeFirst = Interop.Renderer.IndexRangeFirstGet();
710             /// <summary>
711             /// This should be internal, please do not use.
712             /// </summary>
713             /// <since_tizen> 3 </since_tizen>
714             [EditorBrowsable(EditorBrowsableState.Never)]
715             [Obsolete("Deprecated in API6; Will be removed in API9.")]
716             public static readonly int IndexRangeCount = Interop.Renderer.IndexRangeCountGet();
717             /// <summary>
718             /// This should be internal, please do not use.
719             /// </summary>
720             /// <since_tizen> 3 </since_tizen>
721             [EditorBrowsable(EditorBrowsableState.Never)]
722             [Obsolete("Deprecated in API6; Will be removed in API9.")]
723             public static readonly int DepthWriteMode = Interop.Renderer.DepthWriteModeGet();
724             /// <summary>
725             /// This should be internal, please do not use.
726             /// </summary>
727             /// <since_tizen> 3 </since_tizen>
728             [EditorBrowsable(EditorBrowsableState.Never)]
729             [Obsolete("Deprecated in API6; Will be removed in API9.")]
730             public static readonly int DepthFunction = Interop.Renderer.DepthFunctionGet();
731             /// <summary>
732             /// This should be internal, please do not use.
733             /// </summary>
734             /// <since_tizen> 3 </since_tizen>
735             [EditorBrowsable(EditorBrowsableState.Never)]
736             [Obsolete("Deprecated in API6; Will be removed in API9.")]
737             public static readonly int DepthTestMode = Interop.Renderer.DepthTestModeGet();
738             /// <summary>
739             /// This should be internal, please do not use.
740             /// </summary>
741             /// <since_tizen> 3 </since_tizen>
742             [EditorBrowsable(EditorBrowsableState.Never)]
743             [Obsolete("Deprecated in API6; Will be removed in API9.")]
744             public static readonly int RenderMode = Interop.Renderer.RenderModeGet();
745             /// <summary>
746             /// This should be internal, please do not use.
747             /// </summary>
748             /// <since_tizen> 3 </since_tizen>
749             [EditorBrowsable(EditorBrowsableState.Never)]
750             [Obsolete("Deprecated in API6; Will be removed in API9.")]
751             public static readonly int StencilFunction = Interop.Renderer.StencilFunctionGet();
752             /// <summary>
753             /// This should be internal, please do not use.
754             /// </summary>
755             /// <since_tizen> 3 </since_tizen>
756             [EditorBrowsable(EditorBrowsableState.Never)]
757             [Obsolete("Deprecated in API6; Will be removed in API9.")]
758             public static readonly int StencilFunctionMask = Interop.Renderer.StencilFunctionMaskGet();
759             /// <summary>
760             /// This should be internal, please do not use.
761             /// </summary>
762             /// <since_tizen> 3 </since_tizen>
763             [EditorBrowsable(EditorBrowsableState.Never)]
764             [Obsolete("Deprecated in API6; Will be removed in API9.")]
765             public static readonly int StencilFunctionReference = Interop.Renderer.StencilFunctionReferenceGet();
766             /// <summary>
767             /// This should be internal, please do not use.
768             /// </summary>
769             /// <since_tizen> 3 </since_tizen>
770             [EditorBrowsable(EditorBrowsableState.Never)]
771             [Obsolete("Deprecated in API6; Will be removed in API9.")]
772             public static readonly int StencilMask = Interop.Renderer.StencilMaskGet();
773             /// <summary>
774             /// This should be internal, please do not use.
775             /// </summary>
776             /// <since_tizen> 3 </since_tizen>
777             [EditorBrowsable(EditorBrowsableState.Never)]
778             [Obsolete("Deprecated in API6; Will be removed in API9.")]
779             public static readonly int StencilOperationOnFail = Interop.Renderer.StencilOperationOnFailGet();
780             /// <summary>
781             /// This should be internal, please do not use.
782             /// </summary>
783             /// <since_tizen> 3 </since_tizen>
784             [EditorBrowsable(EditorBrowsableState.Never)]
785             [Obsolete("Deprecated in API6; Will be removed in API9.")]
786             public static readonly int StencilOperationOnZFail = Interop.Renderer.StencilOperationOnZFailGet();
787             /// <summary>
788             /// This should be internal, please do not use.
789             /// </summary>
790             /// <since_tizen> 3 </since_tizen>
791             [EditorBrowsable(EditorBrowsableState.Never)]
792             [Obsolete("Deprecated in API6; Will be removed in API9.")]
793             public static readonly int StencilOperationOnZPass = Interop.Renderer.StencilOperationOnZPassGet();
794         }
795     }
796 }