X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Frendering%2Fmaterial-api.cpp;h=cb173fa54aef09acf067452fb90e52346176db09;hp=8b2d0f9c16a886a752c31c03515a937a3d29ae63;hb=a23ba360cc88e815f0db1118236e082c7391005b;hpb=62fdadefe148bf9a5bc7557be6ab001ea1e0a453 diff --git a/plugins/dali-script-v8/src/rendering/material-api.cpp b/plugins/dali-script-v8/src/rendering/material-api.cpp index 8b2d0f9..cb173fa 100644 --- a/plugins/dali-script-v8/src/rendering/material-api.cpp +++ b/plugins/dali-script-v8/src/rendering/material-api.cpp @@ -326,40 +326,6 @@ void MaterialApi::SetTextureUniformName( const v8::FunctionCallbackInfo< v8::Val } /** - * Establish if a given texture will affect the transparency of the material ( true by default ) - * @method setTextureAffectsTransparency - * @for Material - * @param {integer} index The index of the texture in the array of textures - * @param {string} affectsTransparency True if the texture affects transparency, false otherwise - */ -void MaterialApi::SetTextureAffectsTransparency( const v8::FunctionCallbackInfo< v8::Value >& args ) -{ - v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope handleScope( isolate ); - - Material material = GetMaterial( isolate, args ); - - bool found( false ); - int index = V8Utils::GetIntegerParameter( PARAMETER_0, found, isolate, args, 0 /* default */); - if( !found ) - { - DALI_SCRIPT_EXCEPTION( isolate, "invalid index parameter" ); - return; - } - - found = false; - bool affectsTransparency = V8Utils::GetBooleanParameter( PARAMETER_1, found, isolate, args ); - if( !found ) - { - DALI_SCRIPT_EXCEPTION( isolate, "invalid affectsTransparency parameter" ); - } - else - { - material.SetTextureAffectsTransparency(index, affectsTransparency); - } -} - -/** * Retrive the index of a texture given its uniform name * @method getTextureIndex * @for Material