X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Frenderers%2Fcontrol-renderer-impl.h;h=70ffb35d726a26747444379393211af365624747;hb=bfdf7a73a4d50dfb60d0f7fa5b214f61c920bf9c;hp=7258e294b7d1558f214a7c450ae4dd903f4bf2b5;hpb=8991dd870badfb20693aa0eb1acf0aedbe88f99f;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/renderers/control-renderer-impl.h b/dali-toolkit/internal/controls/renderers/control-renderer-impl.h index 7258e29..70ffb35 100644 --- a/dali-toolkit/internal/controls/renderers/control-renderer-impl.h +++ b/dali-toolkit/internal/controls/renderers/control-renderer-impl.h @@ -45,18 +45,18 @@ namespace Internal * * The following properties are optional * - * | %Property Name | Type | - * |---------------------------|------------------| - * | custom-shader | MAP | + * | %Property Name | Type | + * |-------------------------|------------------| + * | customShader | MAP | * * where custom-shader is a map with the following properties: - * | %Property Name | Type | - * |---------------------------|------------------| - * | vertex-shader | STRING | - * | fragment-shader | STRING | - * | subdivide-grid-x | INT | - * | subdivide-grid-y | INT | - * | shader-hints | INT | + * | %Property Name | Type | + * |-------------------------|------------------| + * | vertexShader | STRING | + * | fragmentShader | STRING | + * | subdivideGridX | INT | + * | subdivideGridY | INT | + * | shaderHints | INT | */ class ControlRenderer : public BaseObject { @@ -132,6 +132,20 @@ public: */ void CreatePropertyMap( Property::Map& map ) const; + /** + * @brief Set whether the Pre-multiplied Alpha Blending is required + * + * @param[in] preMultipled whether alpha is pre-multiplied. + */ + void EnablePreMultipliedAlpha( bool preMultipled ); + + /** + * @brief Query whether alpha is pre-multiplied. + * + * @return True is alpha is pre-multiplied, false otherwise. + */ + bool IsPreMultipliedAlphaEnabled() const; + protected: /** @@ -160,7 +174,7 @@ protected: * @param[in] actor The Actor the renderer is applied to if, empty if the renderer has not been applied to any Actor * @param[in] propertyMap The properties for the requested ControlRenderer object. */ - virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ) = 0; + virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ) {}; protected: