X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fdali-script-v8%2Fsrc%2Frendering%2Ftexture-set-api.cpp;h=d89807fe2b2fb47264199af11833154828b18843;hb=d8a62ef92f9ddecc199eb88ed7698194bc539662;hp=30d8d473be777cdb15f86c3557ea62cf9769e5af;hpb=eb52cb9cbb74e37ebdc1c18619af597e2b595b08;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 30d8d47..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. @@ -89,44 +89,7 @@ TextureSet TextureSetApi::GetTextureSetFromParams( int paramIndex, */ TextureSet TextureSetApi::New( const v8::FunctionCallbackInfo< v8::Value >& args ) { - v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope handleScope( isolate ); - return TextureSet(); -} - - -/** - * 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); - } + return TextureSet::New(); } /**