X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Factors%2Fmesh-actor-api.cpp;h=a22ccae5f79144b7cd798e0268b057f411f0e472;hb=6b7d48695715c6f2292338fccbeeb02873d1f89d;hp=f7447583a390cf10a4b233dd52d737121b1f1a5d;hpb=e8efa9549ccedae5b8377c9eb331aa8392895879;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/src/actors/mesh-actor-api.cpp b/plugins/dali-script-v8/src/actors/mesh-actor-api.cpp index f744758..a22ccae 100644 --- a/plugins/dali-script-v8/src/actors/mesh-actor-api.cpp +++ b/plugins/dali-script-v8/src/actors/mesh-actor-api.cpp @@ -54,43 +54,6 @@ Actor MeshActorApi::New( const v8::FunctionCallbackInfo< v8::Value >& args ) { return MeshActor::New(); } -/** - * - * @for MeshActor - * @method SetAffectedByLighting - * @param {Boolean} true = yes affected by lighting - */ -void MeshActorApi::SetAffectedByLighting( const v8::FunctionCallbackInfo< v8::Value >& args ) -{ - v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope handleScope( isolate ); - MeshActor actor = GetMeshActor( isolate, args ); - - bool parameterFound( false ); - bool afftedByLight = V8Utils::GetBooleanParameter( PARAMETER_0, parameterFound, isolate, args ); - if( !parameterFound ) - { - DALI_SCRIPT_EXCEPTION( isolate, "bad parameter"); - return; - } - actor.SetAffectedByLighting( afftedByLight ); -} -/** - * - * @for MeshActor - * @method IsAffectedByLighting - * @return {Boolean} true = yes affected by lighting - */ -void MeshActorApi::IsAffectedByLighting( const v8::FunctionCallbackInfo< v8::Value >& args ) -{ - v8::Isolate* isolate = args.GetIsolate(); - v8::HandleScope handleScope( isolate ); - MeshActor actor = GetMeshActor( isolate, args ); - - args.GetReturnValue().Set( v8::Boolean::New( isolate, actor.IsAffectedByLighting() ) ); - -} - } // namespace V8Plugin