+ Internal::FrameBufferPtr frameBuffer = Internal::FrameBuffer::New(width, height, attachments);
+ if(attachments & FrameBuffer::Attachment::COLOR)
+ {
+ Internal::TexturePtr texture = Internal::Texture::New(Dali::TextureType::TEXTURE_2D, Pixel::RGB888, width, height);
+ frameBuffer->AttachColorTexture(texture, 0u, 0u);
+ }
+ return FrameBuffer(frameBuffer.Get());