#define __DALI_NATIVE_IMAGE_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.
}
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief NativeImage represents a platform specific image resource.
*
* Its data is provided by native resources, such as shared bitmap memory or pixmap.
* @SINCE_1_0.0
*/
-class DALI_IMPORT_API NativeImage : public Image
+class DALI_CORE_API NativeImage : public Image
{
public:
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief Constructor with creates an uninitialized NativeImage object.
*
* Use NativeImage::New(...) to create an initialised object.
* @SINCE_1_0.0
*/
- NativeImage();
+ NativeImage() DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief Destructor.
*
* This is non-virtual since derived Handle types must not contain data or virtual methods.
* @SINCE_1_0.0
*/
- ~NativeImage();
+ ~NativeImage() DALI_DEPRECATED_API;
- /**
- * @brief This copy constructor is required for (smart) pointer semantics.
- *
- * @SINCE_1_0.0
- * @param[in] handle A reference to the copied handle
- */
- NativeImage( const NativeImage& handle );
+ /**
+ * @DEPRECATED_1_2.41
+ *
+ * @brief This copy constructor is required for (smart) pointer semantics.
+ *
+ * @SINCE_1_0.0
+ * @param[in] handle A reference to the copied handle
+ */
+ NativeImage( const NativeImage& handle ) DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief This assignment operator is required for (smart) pointer semantics.
*
* @SINCE_1_0.0
* @param[in] rhs A reference to the copied handle
* @return A reference to this
*/
- NativeImage& operator=( const NativeImage& rhs );
+ NativeImage& operator=( const NativeImage& rhs ) DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief Triggers asynchronous creation of backing GL texture immediately.
*
* The normal policy is for a GL texture to created lazily when needed.
* GL textures. This function can be called again after context regain to force
* the creation of the GL texture if still needed.
*/
- void CreateGlTexture();
+ void CreateGlTexture() DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief Creates a new NativeImage, which used native resources.
*
* The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE
* @param[in] nativeImageInterface An reference to the object of the interface implementation
* @return A handle to a newly allocated object
*/
- static NativeImage New( NativeImageInterface& nativeImageInterface );
+ static NativeImage New( NativeImageInterface& nativeImageInterface ) DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief Downcasts a handle to NativeImage handle.
*
* If handle points to a NativeImage object, the downcast produces valid handle.
* @param[in] handle Handle to an object
* @return handle to a NativeImage or an uninitialized handle
*/
- static NativeImage DownCast( BaseHandle handle );
+ static NativeImage DownCast( BaseHandle handle ) DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief Gets custom fragment prefix for rendering a native image.
*
* @return String for custom fragment prefix
*/
- const char* GetCustomFragmentPreFix();
+ const char* GetCustomFragmentPreFix() DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief Gets custom sampler type name for rendering a native image.
*
* @return String for custom sampler type name
*/
- const char* GetCustomSamplerTypename();
+ const char* GetCustomSamplerTypename() DALI_DEPRECATED_API;
public: // Not intended for application developers
- explicit DALI_INTERNAL NativeImage( Internal::NativeImage* );
+ explicit DALI_INTERNAL NativeImage( Internal::NativeImage* ) DALI_DEPRECATED_API;
};