*/
// EXTERNAL INCLUDES
+#include <dali/public-api/actors/renderable-actor.h>
+#include <dali/public-api/shader-effects/shader-effect.h>
-// INTERNAL INCLUDES
-#include <dali/dali.h>
-
-namespace Dali DALI_IMPORT_API
+namespace Dali
{
namespace Toolkit
* Actor.SetShaderEffect( MotionBlurEffect );
*
*/
-class MotionBlurEffect : public ShaderEffect
+class DALI_IMPORT_API MotionBlurEffect : public ShaderEffect
{
public:
MotionBlurEffect();
/**
- * Virtual destructor.
+ * @brief Destructor
+ *
+ * This is non-virtual since derived Handle types must not contain data or virtual methods.
*/
- virtual ~MotionBlurEffect();
+ ~MotionBlurEffect();
/**
* Create an initialized MotionBlurEffect
* Create a MotionBlurEffect and attach it to the specified actor
* The number of texture samples taken along the motion velocity vector of the
* actor, producing the blur, is set to a default of 8.
+ * @param renderable actor to apply the effect to
* @return A handle to a newly allocated Dali resource.
*/
- static MotionBlurEffect Apply( Actor handle );
+ static MotionBlurEffect Apply( RenderableActor renderable );
/**
* Create an initialized MotionBlurEffect
* @param numBlurSamples The number of texture samples taken along the motion
* velocity vector of the actor, producing the blur. A higher number gives a
* smoother blur but costs more in terms of performance.
+ * @param numBlurSamples to have
* @return A handle to a newly allocated Dali resource.
*/
- static MotionBlurEffect New( const unsigned int numBlurSamples );
+ static MotionBlurEffect New( unsigned int numBlurSamples );
/**
* Set texcoord scale property. This scales the offset for texture samples
private:
// Not intended for application developers
- MotionBlurEffect( ShaderEffect handle );
+ DALI_INTERNAL MotionBlurEffect( ShaderEffect handle );
};
}