X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Frendering%2Ftexture-set-api.cpp;h=d89807fe2b2fb47264199af11833154828b18843;hb=05d9f7a25bd9f4320a0e1fece8ec0ede819afe7d;hp=1c5ad3987fdf0579f86074200341ee7e6e71f20b;hpb=49f9e8d43442bd3539a6a358b9147b95748f8140;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/src/rendering/texture-set-api.cpp b/plugins/dali-script-v8/src/rendering/texture-set-api.cpp index 1c5ad39..d89807f 100644 --- a/plugins/dali-script-v8/src/rendering/texture-set-api.cpp +++ b/plugins/dali-script-v8/src/rendering/texture-set-api.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -92,41 +92,6 @@ TextureSet TextureSetApi::New( const v8::FunctionCallbackInfo< v8::Value >& args return TextureSet::New(); } - -/** - * Sets the image to be used by a given texture - * @method setImage - * @for TextureSet - * @param {integer} index The index of the texture in the array of textures - * @param {Object} image The image used by this sampler - */ -void TextureSetApi::SetImage( const v8::FunctionCallbackInfo< v8::Value >& args ) -{ - v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope handleScope( isolate ); - - TextureSet textureSet = GetTextureSet( 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; - Image image = V8Utils::GetImageParameter( PARAMETER_1, found, isolate, args ); - if( !found ) - { - DALI_SCRIPT_EXCEPTION( isolate, "missing image from param 1" ); - } - else - { - textureSet.SetImage(index, image); - } -} - /** * Set the sampler used by a given texture * @method setSampler