{
public:
- typedef Dali::FrameBuffer::Format Format;
-
/**
* @brief Create a new FrameBuffer
*
- * @param[in] width The width of the FrameBuffer
- * @param[in] height The height of the FrameBuffer
- * @param[in] format The format of the FrameBuffer
+ * @param[in] width The width of the FrameBuffer
+ * @param[in] height The height of the FrameBuffer
+ * @param[in] attachments The attachments comprising the format of the FrameBuffer (bit-mask)
* @return A smart-pointer to the newly allocated Texture.
*/
- static FrameBufferPtr New( unsigned int width, unsigned int height, Format format );
+ static FrameBufferPtr New( unsigned int width, unsigned int height, unsigned int attachments );
/**
* @brief Get the FrameBuffer render object
/**
* @copydoc Dali::FrameBuffer::AttachColorTexture()
*/
- void AttachColorTexture( NewTexturePtr texture, unsigned int mipmapLevel, unsigned int layer );
+ void AttachColorTexture( TexturePtr texture, unsigned int mipmapLevel, unsigned int layer );
/**
* @copydoc Dali::FrameBuffer::GetColorTexture()
*/
- NewTexture* GetColorTexture();
+ Texture* GetColorTexture();
private: // implementation
/**
* Constructor
- * @param[in] width The width of the FrameBuffer
- * @param[in] height The height of the FrameBuffer
- * @param[in] format The format of the FrameBuffer
+ * @param[in] width The width of the FrameBuffer
+ * @param[in] height The height of the FrameBuffer
+ * @param[in] attachments The attachments comprising the format of the FrameBuffer (bit-mask)
*/
- FrameBuffer( unsigned int width, unsigned int height, Format format );
+ FrameBuffer( unsigned int width, unsigned int height, unsigned int attachments );
/**
* Second stage initialization of the Texture
private: // data
- Internal::EventThreadServices& mEventThreadServices; ///<Used to send messages to the render thread via update thread
- Internal::Render::FrameBuffer* mRenderObject; ///<The Render::Texture associated to this texture
+ Internal::EventThreadServices& mEventThreadServices; ///< Used to send messages to the render thread via update thread
+ Internal::Render::FrameBuffer* mRenderObject; ///< The Render::Texture associated to this texture
- NewTexturePtr mColor;
+ TexturePtr mColor;
unsigned int mWidth;
unsigned int mHeight;
- Format mFormat;
+ unsigned int mAttachments; ///< Bit-mask of type FrameBuffer::Attachment::Mask
};