*
*/
+// EXTERNAL INCLUDES
+#include <dali/public-api/common/vector-wrapper.h>
#include <dali/public-api/actors/actor.h>
-#include <dali/public-api/actors/renderer.h>
-#include <dali/public-api/object/property-buffer.h>
#include <dali/public-api/object/property-map.h>
-#include <dali/public-api/shader-effects/material.h>
+#include <dali/devel-api/rendering/renderer.h>
namespace Dali
{
* Ideally use one group of uniform to control one bubble.
* If the num of patches in the MeshActor is more than groups of uniforms,
* the uniform values will be shared by multiple bubbles. Allow up to 9 times.
- * @param[in] movementArea The size of the bubble moving area, usually the same size as the background image actor.
+ * @param[in] movementArea The size of the bubble moving area, usually the same size as the background.
* @return A newly allocated object.
*/
BubbleActor( unsigned int numberOfBubble,
/**
* Prepare for the rendering: create and add renderer, and register properties
* @param[in] geometry The geometry to be used by the renderer
- * @param[in] material The material to be used by the renderer
+ * @param[in] textureSet The texture set to be used by the renderer
+ * @param[in] textureSet The shader set to be used by the renderer
*/
- void MakeRenderable( Geometry geometry, Material material );
+ void MakeRenderable( Geometry geometry, TextureSet textureSet, Shader shader );
/**
* Return the mesh actor which is used to display the bubbles
Actor mActor;
Renderer mRenderer;
- Vector2 mMovementArea; ///< The size of the bubble moving area, usually the same size as the background image actor.
+ Vector2 mMovementArea; ///< The size of the bubble moving area, usually the same size as the background.
//properties mapped as uniforms
std::vector<Property::Index> mIndicesOffset; ///< Indices of the properties mapping to uniform array 'uOffset'
Property::Index mIndexInvertedMovementArea; ///< Index of the property mapping to uniform 'uInvertedMovementArea'
unsigned int mNumBubble; ///< How many groups of uniforms are used to control the bubble movement.
+ unsigned int mRandomSeed; ///< Seed to generate random number.
};
} // namespace Internal