-void BuilderApi::GetShaderEffect( const v8::FunctionCallbackInfo< v8::Value >& args )
-{
- v8::Isolate* isolate = args.GetIsolate();
- v8::HandleScope handleScope( isolate );
- Dali::Toolkit::Builder builder = GetBuilder( isolate, args );
-
- bool found(false);
- std::string str = V8Utils::GetStringParameter( 0, found, isolate, args );
- if( found )
- {
- ShaderEffect handle = builder.GetShaderEffect( str );
- v8::Local<v8::Object> shader = ShaderEffectWrapper::WrapShaderEffect(isolate, handle);
- args.GetReturnValue().Set( shader );
- }
- else
- {
- DALI_SCRIPT_EXCEPTION( isolate, "missing shader name");
- }
-}
-