projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rendering API clean-up
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
renderers
/
image
/
image-renderer.h
diff --git
a/dali-toolkit/internal/controls/renderers/image/image-renderer.h
b/dali-toolkit/internal/controls/renderers/image/image-renderer.h
index
c11c6b0
..
1ae3e50
100644
(file)
--- a/
dali-toolkit/internal/controls/renderers/image/image-renderer.h
+++ b/
dali-toolkit/internal/controls/renderers/image/image-renderer.h
@@
-30,6
+30,8
@@
namespace Dali
{
namespace Dali
{
+class NativeImage;
+
namespace Toolkit
{
namespace Toolkit
{
@@
-165,9
+167,9
@@
public:
private:
/**
private:
/**
- * @brief Applies the image to the
material
used for this renderer
+ * @brief Applies the image to the
texture set
used for this renderer
*
*
- * @param[in] image The Image to apply to the
material
used for this renderer
+ * @param[in] image The Image to apply to the
texture set
used for this renderer
*/
void ApplyImageToSampler( const Image& image );
*/
void ApplyImageToSampler( const Image& image );
@@
-193,6
+195,13
@@
private:
Renderer CreateRenderer() const;
/**
Renderer CreateRenderer() const;
/**
+ * @brief Creates the Dali::Renderer for NativeImage with custom sampler type and prefix, initializing it
+ *
+ * @return Returns the created Dali::Renderer
+ */
+ Renderer CreateNativeImageRenderer() const;
+
+ /**
* Callback function of image resource loading succeed
* @param[in] image The Image content that we attempted to load from mImageUrl
*/
* Callback function of image resource loading succeed
* @param[in] image The Image content that we attempted to load from mImageUrl
*/
@@
-209,16
+218,22
@@
private:
*/
void CleanCache(const std::string& url);
*/
void CleanCache(const std::string& url);
+ /**
+ * Set shader code for nativeimage if it exists
+ */
+ void SetNativeFragmentShaderCode( Dali::NativeImage& nativeImage );
+
private:
Image mImage;
ImageAtlasManager& mAtlasManager;
private:
Image mImage;
ImageAtlasManager& mAtlasManager;
- Vector4 mTextureRect;
std::string mImageUrl;
Dali::ImageDimensions mDesiredSize;
Dali::FittingMode::Type mFittingMode;
Dali::SamplingMode::Type mSamplingMode;
std::string mImageUrl;
Dali::ImageDimensions mDesiredSize;
Dali::FittingMode::Type mFittingMode;
Dali::SamplingMode::Type mSamplingMode;
+ std::string mNativeFragmentShaderCode;
+ bool mNativeImageFlag;
};
} // namespace Internal
};
} // namespace Internal