#define __DALI_FRAME_BUFFER_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.
namespace Dali
{
/**
- * @addtogroup dali-core-images
+ * @addtogroup dali_core_images
* @{
*/
namespace RenderBuffer
{
/**
- * @brief Render Buffer formats
+ * @brief Enumeration for rendering buffer formats.
+ *
* The default format for framebuffer creation is COLOR, so If a depth buffer for 3D rendering is required use
- * COLOR_DEPTH instead
+ * COLOR_DEPTH instead.
+ * @SINCE_1_0.0
*/
-enum Format ///< Framebuffer format, default color depth is RGBA 32 bit with alpha
+enum Format ///< Framebuffer format, default color depth is RGBA 32 bit with alpha @SINCE_1_0.0
{
- COLOR, ///< Framebuffer will be created with color buffer.
- COLOR_DEPTH, ///< Framebuffer will be created with color and depth buffer
- COLOR_STENCIL, ///< Framebuffer will be created with color and stencil buffer
- COLOR_DEPTH_STENCIL ///< Framebuffer will be created with color, depth and stencil buffer. NOTE: May be not supported in all devices
+ COLOR, ///< Framebuffer will be created with color buffer. @SINCE_1_0.0
+ COLOR_DEPTH, ///< Framebuffer will be created with color and depth buffer @SINCE_1_0.0
+ COLOR_STENCIL, ///< Framebuffer will be created with color and stencil buffer @SINCE_1_0.0
+ COLOR_DEPTH_STENCIL ///< Framebuffer will be created with color, depth and stencil buffer. @note May be not supported in all devices @SINCE_1_0.0
};
}
/**
- * @brief FrameBufferImage represents a Open GL ES Frame Buffer Object
- * It contains the result of an 'off screen' render pass of a RenderTask.
+ * @DEPRECATED_1_2.41
+ *
+ * @brief FrameBufferImage represents an Open GL ES Frame Buffer Object and contains the result
+ * of an 'off screen' render pass of a RenderTask.
+ *
* The FrameBufferImage can then be used for rendering to the screen.
+ * @SINCE_1_0.0
*/
-class DALI_IMPORT_API FrameBufferImage : public Image
+class DALI_CORE_API FrameBufferImage : public Image
{
public:
- /**
- * @brief Constructor which creates an uninitialized FrameBufferImage object.
- *
- * Use Image::New(...) to create an initialised object.
- */
- FrameBufferImage();
/**
- * @brief Create a new FrameBufferImage.
+ * @DEPRECATED_1_2.41
*
- * The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE.
+ * @brief Constructor which creates an uninitialized FrameBufferImage object.
*
- * @param [in] width The width in pixels. Setting to zero will use the width of the stage.
- * @param [in] height The height in pixels. Setting to zero will use the height of the stage.
- * @param [in] pixelFormat The pixel format (rgba 32 bit by default)
- * @param [in] bufferFormat The format of the buffers that are going to be created for the FBO, (COLOR and DEPTH buffer as default)
- * @post When the FrameBufferImage is first used as a render target, an exception may be thrown if pixelFormat is not supported on the hardware platform.
- * @return A handle to a new instance of a FrameBufferImage.
+ * Use @ref FrameBufferImage::New to create an initialized object.
+ * @SINCE_1_0.0
*/
- static FrameBufferImage New(unsigned int width = 0, unsigned int height = 0, Pixel::Format pixelFormat = Pixel::RGBA8888,
- RenderBuffer::Format bufferFormat = RenderBuffer::COLOR);
+ FrameBufferImage() DALI_DEPRECATED_API;
/**
- * @brief Create a new FrameBufferImage.
+ * @DEPRECATED_1_2.41
*
- * @deprecated DALi 1.1.3 use New() instead.
+ * @brief Creates a new FrameBufferImage.
*
* The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE.
- * @param [in] width The width in pixels. Setting to zero will use the width of the stage.
- * @param [in] height The height in pixels. Setting to zero will use the height of the stage.
- * @param [in] pixelFormat The pixel format.
- * @param [in] releasePolicy The ReleasePolicy to apply to the FrameBufferImage.
- * @param [in] bufferFormat The format of the buffers that are going to be created for the FBO, (COLOR and DEPTH buffer as default)
*
+ * @SINCE_1_0.0
+ * @param[in] width The width in pixels. Setting to zero will use the width of the stage
+ * @param[in] height The height in pixels. Setting to zero will use the height of the stage
+ * @param[in] pixelFormat The pixel format (rgba 32 bit by default)
+ * @param[in] bufferFormat The format of the buffers that are going to be created for the FBO, (COLOR and DEPTH buffer as default)
+ * @return A handle to a new instance of a FrameBufferImage
* @post When the FrameBufferImage is first used as a render target, an exception may be thrown if pixelFormat is not supported on the hardware platform.
- * @return A handle to a new instance of a FrameBufferImage.
*/
- static FrameBufferImage New(unsigned int width, unsigned int height, Pixel::Format pixelFormat, ReleasePolicy releasePolicy,
- RenderBuffer::Format bufferFormat = RenderBuffer::COLOR);
+ static FrameBufferImage New(uint32_t width = 0, uint32_t height = 0, Pixel::Format pixelFormat = Pixel::RGBA8888,
+ RenderBuffer::Format bufferFormat = RenderBuffer::COLOR) DALI_DEPRECATED_API;
/**
- * @brief Create a new FrameBufferImage.
+ * @DEPRECATED_1_2.41
+ *
+ * @brief Creates a new FrameBufferImage.
*
* The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE.
- * @param [in] image The native image.
+ * @SINCE_1_0.0
+ * @param[in] image The native image
*
+ * @return A handle to a new instance of a FrameBufferImage
* @post When the FrameBufferImage is first used as a render target, an exception may be thrown if the NativeImage cannot be mapped to a texture.
- * @return A handle to a new instance of a FrameBufferImage.
*/
- static FrameBufferImage New(NativeImageInterface& image);
+ static FrameBufferImage New(NativeImageInterface& image) DALI_DEPRECATED_API;
/**
- * @brief Create a new FrameBufferImage.
- *
- * @deprecated DALi 1.1.3 use New( NativeImageInterface& ) instead.
+ * @DEPRECATED_1_2.41
*
- * The maximum size of the image is limited by GL_MAX_TEXTURE_SIZE.
- * @param [in] image The native image.
- * @param [in] releasePolicy The ReleasePolicy to apply to the FrameBufferImage.
+ * @brief Downcasts a handle to FrameBufferImage handle.
*
- * @post When the FrameBufferImage is first used as a render target, an exception may be thrown if the NativeImage cannot be mapped to a texture.
- * @return A handle to a new instance of a FrameBufferImage.
+ * If handle points to a FrameBufferImage object, the
+ * downcast produces valid handle. If not, the returned handle is left uninitialized.
+ * @SINCE_1_0.0
+ * @param[in] handle Handle to an object
+ * @return Handle to a FrameBufferImage object or an uninitialized handle
*/
- static FrameBufferImage New(NativeImageInterface& image, ReleasePolicy releasePolicy);
+ static FrameBufferImage DownCast( BaseHandle handle ) DALI_DEPRECATED_API;
/**
- * @brief Downcast an Object handle to FrameBufferImage handle.
+ * @DEPRECATED_1_2.41
*
- * If handle points to a FrameBufferImage object the
- * downcast produces valid handle. If not the returned handle is left uninitialized.
- * @param[in] handle to An object
- * @return handle to a FrameBufferImage object or an uninitialized handle
- */
- static FrameBufferImage DownCast( BaseHandle handle );
-
- /**
- * @brief Destructor
+ * @brief Destructor.
*
* This is non-virtual since derived Handle types must not contain data or virtual methods.
+ * @SINCE_1_0.0
*/
- ~FrameBufferImage();
+ ~FrameBufferImage() DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief This copy constructor is required for (smart) pointer semantics.
*
- * @param [in] handle A reference to the copied handle
+ * @SINCE_1_0.0
+ * @param[in] handle A reference to the copied handle
*/
- FrameBufferImage(const FrameBufferImage& handle);
+ FrameBufferImage(const FrameBufferImage& handle) DALI_DEPRECATED_API;
/**
+ * @DEPRECATED_1_2.41
+ *
* @brief This assignment operator is required for (smart) pointer semantics.
*
- * @param [in] rhs A reference to the copied handle
+ * @SINCE_1_0.0
+ * @param[in] rhs A reference to the copied handle
* @return A reference to this
*/
- FrameBufferImage& operator=(const FrameBufferImage& rhs);
+ FrameBufferImage& operator=(const FrameBufferImage& rhs) DALI_DEPRECATED_API;
public: // Not intended for application developers