2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 %define Renderer_PROPERTIES_HELPER(NameSpace, ClassName)
19 %typemap(cscode) NameSpace::ClassName %{
21 /* Properties earlier added by Ruby Script */
28 GetProperty( Renderer.Property.DEPTH_INDEX).Get( ref temp );
33 SetProperty( Renderer.Property.DEPTH_INDEX, new Dali.Property.Value( value ) );
36 public int FaceCullingMode
41 GetProperty( Renderer.Property.FACE_CULLING_MODE).Get( ref temp );
46 SetProperty( Renderer.Property.FACE_CULLING_MODE, new Dali.Property.Value( value ) );
54 GetProperty( Renderer.Property.BLEND_MODE).Get( ref temp );
59 SetProperty( Renderer.Property.BLEND_MODE, new Dali.Property.Value( value ) );
62 public int BlendEquationRgb
67 GetProperty( Renderer.Property.BLEND_EQUATION_RGB).Get( ref temp );
72 SetProperty( Renderer.Property.BLEND_EQUATION_RGB, new Dali.Property.Value( value ) );
75 public int BlendEquationAlpha
80 GetProperty( Renderer.Property.BLEND_EQUATION_ALPHA).Get( ref temp );
85 SetProperty( Renderer.Property.BLEND_EQUATION_ALPHA, new Dali.Property.Value( value ) );
88 public int BlendFactorSrcRgb
93 GetProperty( Renderer.Property.BLEND_FACTOR_SRC_RGB).Get( ref temp );
98 SetProperty( Renderer.Property.BLEND_FACTOR_SRC_RGB, new Dali.Property.Value( value ) );
101 public int BlendFactorDestRgb
106 GetProperty( Renderer.Property.BLEND_FACTOR_DEST_RGB).Get( ref temp );
111 SetProperty( Renderer.Property.BLEND_FACTOR_DEST_RGB, new Dali.Property.Value( value ) );
114 public int BlendFactorSrcAlpha
119 GetProperty( Renderer.Property.BLEND_FACTOR_SRC_ALPHA).Get( ref temp );
124 SetProperty( Renderer.Property.BLEND_FACTOR_SRC_ALPHA, new Dali.Property.Value( value ) );
127 public int BlendFactorDestAlpha
132 GetProperty( Renderer.Property.BLEND_FACTOR_DEST_ALPHA).Get( ref temp );
137 SetProperty( Renderer.Property.BLEND_FACTOR_DEST_ALPHA, new Dali.Property.Value( value ) );
140 public Dali.CSharp.Color BlendColor
144 Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
145 GetProperty( Renderer.Property.BLEND_COLOR).Get( temp );
146 Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
151 SetProperty( Renderer.Property.BLEND_COLOR, new Dali.Property.Value( value ) );
154 public bool BlendPreMultipliedAlpha
159 GetProperty( Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA).Get( ref temp );
164 SetProperty( Renderer.Property.BLEND_PRE_MULTIPLIED_ALPHA, new Dali.Property.Value( value ) );
167 public int IndexRangeFirst
172 GetProperty( Renderer.Property.INDEX_RANGE_FIRST).Get( ref temp );
177 SetProperty( Renderer.Property.INDEX_RANGE_FIRST, new Dali.Property.Value( value ) );
180 public int IndexRangeCount
185 GetProperty( Renderer.Property.INDEX_RANGE_COUNT).Get( ref temp );
190 SetProperty( Renderer.Property.INDEX_RANGE_COUNT, new Dali.Property.Value( value ) );
193 public int DepthWriteMode
198 GetProperty( Renderer.Property.DEPTH_WRITE_MODE).Get( ref temp );
203 SetProperty( Renderer.Property.DEPTH_WRITE_MODE, new Dali.Property.Value( value ) );
206 public int DepthFunction
211 GetProperty( Renderer.Property.DEPTH_FUNCTION).Get( ref temp );
216 SetProperty( Renderer.Property.DEPTH_FUNCTION, new Dali.Property.Value( value ) );
219 public int DepthTestMode
224 GetProperty( Renderer.Property.DEPTH_TEST_MODE).Get( ref temp );
229 SetProperty( Renderer.Property.DEPTH_TEST_MODE, new Dali.Property.Value( value ) );
232 public int RenderMode
237 GetProperty( Renderer.Property.RENDER_MODE).Get( ref temp );
242 SetProperty( Renderer.Property.RENDER_MODE, new Dali.Property.Value( value ) );
245 public int StencilFunction
250 GetProperty( Renderer.Property.STENCIL_FUNCTION).Get( ref temp );
255 SetProperty( Renderer.Property.STENCIL_FUNCTION, new Dali.Property.Value( value ) );
258 public int StencilFunctionMask
263 GetProperty( Renderer.Property.STENCIL_FUNCTION_MASK).Get( ref temp );
268 SetProperty( Renderer.Property.STENCIL_FUNCTION_MASK, new Dali.Property.Value( value ) );
271 public int StencilFunctionReference
276 GetProperty( Renderer.Property.STENCIL_FUNCTION_REFERENCE).Get( ref temp );
281 SetProperty( Renderer.Property.STENCIL_FUNCTION_REFERENCE, new Dali.Property.Value( value ) );
284 public int StencilMask
289 GetProperty( Renderer.Property.STENCIL_MASK).Get( ref temp );
294 SetProperty( Renderer.Property.STENCIL_MASK, new Dali.Property.Value( value ) );
297 public int StencilOperationOnFail
302 GetProperty( Renderer.Property.STENCIL_OPERATION_ON_FAIL).Get( ref temp );
307 SetProperty( Renderer.Property.STENCIL_OPERATION_ON_FAIL, new Dali.Property.Value( value ) );
310 public int StencilOperationOnZFail
315 GetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL).Get( ref temp );
320 SetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_FAIL, new Dali.Property.Value( value ) );
323 public int StencilOperationOnZPass
328 GetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_PASS).Get( ref temp );
333 SetProperty( Renderer.Property.STENCIL_OPERATION_ON_Z_PASS, new Dali.Property.Value( value ) );
336 public bool BatchingEnabled
341 GetProperty( Renderer.Property.BATCHING_ENABLED).Get( ref temp );
346 SetProperty( Renderer.Property.BATCHING_ENABLED, new Dali.Property.Value( value ) );
351 /* Properties ends */
358 Renderer_PROPERTIES_HELPER(Dali, Renderer);