X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Frender%2Fdata-providers%2Frender-data-provider.h;h=478718e66eee82cd454f77a4632a199899561239;hb=0643c768fd100bd7ffb522e3358b88d075bc1d2e;hp=2d628ab8adba2e2d9c4c53f21c2d86c78fbb08fc;hpb=6e055775829d43797b4e6935f0be4d1d5b501b32;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/render/data-providers/render-data-provider.h b/dali/internal/render/data-providers/render-data-provider.h index 2d628ab..478718e 100644 --- a/dali/internal/render/data-providers/render-data-provider.h +++ b/dali/internal/render/data-providers/render-data-provider.h @@ -2,7 +2,7 @@ #define __DALI_INTERNAL_SCENE_GRAPH_RENDER_DATA_PROVIDER_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,15 +18,22 @@ * */ -#include +#include +#include #include #include #include +#include #include +#include + namespace Dali { namespace Internal { + +struct BlendingOptions; + namespace SceneGraph { class PropertyBuffer; @@ -38,21 +45,19 @@ class Shader; * the current render. It essentially provides double buffering of the * provider accessor through the message system. It does not take ownership * of any objects. - * - * @todo - Add set of bools to state what changed (For improving performance) */ class RenderDataProvider { public: typedef Dali::Vector< const PropertyBufferDataProvider* > VertexBuffers; - typedef std::vector< Render::Texture > Textures; + typedef std::vector< Render::Sampler* > Samplers; /** * Constructor. * The RendererAttachment that creates this object will initialize the members * directly. */ - RenderDataProvider(); + RenderDataProvider( AnimatableProperty< float >& opacity ); /** * Destructor @@ -62,18 +67,6 @@ public: public: /** - * Set the material data provider - * @param[in] materialDataProvider The material data provider - */ - void SetMaterial( const MaterialDataProvider& materialDataProvider ); - - /** - * Get the material data provider - * @return the material data provider - */ - const MaterialDataProvider& GetMaterial() const; - - /** * Set the uniform map data provider * @param[in] uniformMapDataProvider The uniform map data provider */ @@ -97,18 +90,32 @@ public: Shader& GetShader() const; /** - * Returns the list of textures - * @return The list of textures + * Returns the list of samplers + * @return The list of samplers + */ + Samplers& GetSamplers(); + + /** + * Returns the list of Textures + * @return The list of Textures */ - Textures& GetTextures(); + std::vector& GetTextures(); + + /** + * Get the opacity + * @return The opacity + */ + float GetOpacity( BufferIndex bufferIndex ); private: - const MaterialDataProvider* mMaterialDataProvider; - const UniformMapDataProvider* mUniformMapDataProvider; - Shader* mShader; - Textures mTextures; -// Give Renderer access to our private data to reduce copying vectors on construction. + const UniformMapDataProvider* mUniformMapDataProvider; + Shader* mShader; + std::vector mTextures; + Samplers mSamplers; + AnimatableProperty< float >& mOpacity; + + // Give Renderer access to our private data to reduce copying vectors on construction. friend class Renderer; };